Get Member State
To retrieve the current state of a member in the LikeMinds Feed, use the getMemberState()
function.
Steps to Get Member State
Call the
getMemberState()
function using the instance of theLMFeedClient
class.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
Variable | Type | Description | Optional |
---|---|---|---|
success | bool | API success status | |
errorMessage | String | Error message in case of failure | ✔ |
createdAt | String | Date and time when the member was created | ✔ |
editRequired | bool | Indicates if member edit is required | ✔ |
member | User | Details of the member | ✔ |
memberRights | List<MemberRight > | List of member rights | ✔ |
state | int | Current state of the member | ✔ |