Skip to main content

Get Community Configurations

The getCommunityConfigurations() function is used to fetch configurations related to the community.

Steps to Get Community Configurations

  1. Call the getCommunityConfigurations() function using the instance of the LMFeedClient class.

  2. 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

VariableTypeDescriptionOptional
successboolAPI success status
errorMessageStringError message in case of failure
communityConfigurationsList<CommunityConfigurations>List of community configuration models