Skip to main content

Get Member State

To retrieve the current state of a member in the LikeMinds Feed, use the getMemberState() function.

Steps to Get Member State

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

  2. Use the response as per your requirement.

     // Get the response from calling the function
    final MemberStateResponse response = await lmFeedClient.getMemberState();

    // Process the response, as per requirement
    if(response.success){
    // your function to process member state
    processMemberState(response);
    }else{
    // your function to process error message
    processError(response.errorMessage);
    }
tip

Fetching member state provides information about the current state of a member in the LikeMinds Feed.

Models

MemberStateResponse

List of parameters for the MemberStateResponse class

VariableTypeDescriptionOptional
successboolAPI success status
errorMessageStringError message in case of failure
createdAtStringDate and time when the member was created
editRequiredboolIndicates if member edit is required
memberUserDetails of the member
memberRightsList<MemberRight>List of member rights
stateintCurrent state of the member