Get Community Configurations
The getCommunityConfigurations()
function is used to fetch configurations related to the community.
Steps to Get Community Configurations
Call the
getCommunityConfigurations()
function using the instance of theLMFeedClient
class.Use the response as per your requirement.
// Get the response from calling the function
final GetCommunityConfigurationsResponse response = await lmFeedClient.getCommunityConfigurations();
// Process the response, as per requirement
if(response.success){
// your function to handle successful retrieval of community configurations
handleCommunityConfigurations(response.communityConfigurations);
}else{
// your function to handle error message
handleCommunityConfigurationsError(response.errorMessage);
}
tip
Fetching community configurations provides essential information about the community settings, enabling you to tailor the user experience accordingly.
Models
GetCommunityConfigurationsResponse
List of parameters for the GetCommunityConfigurationsResponse
class
Variable | Type | Description | Optional |
---|---|---|---|
success | bool | API success status | |
errorMessage | String | Error message in case of failure | ✔ |
communityConfigurations | List<CommunityConfigurations > | List of community configuration models | ✔ |