Skip to main content

Member State

The getMemberState function is used to fetch the member state of the current user. It provides information about the user's status, creation timestamp, edit requirements, and more.

Steps to Get Member State

  1. Call getMemberState() function using the instance of LMFeedClient.
  2. Process the response (LMResponse<GetMemberStateResponse>) as per your requirement.
CoroutineScope(Dispatchers.IO).launch {
// get response (LMResponse<InitiateUserResponse>)
val response = LMFeedClient.getInstance().getMemberState()
if (response.success) {
// your function to process the response data
processMemberStateResponse(response.data)
} else {
// your function to process error message
processError(response.errorMessage)
}
}

Models

GetMemberStateResponse

VARIABLETYPEDESCRIPTIONOPTIONAL
idIntID of the user in community.
stateIntMember State of the user in community.
userUniqueIdStringUnique ID of user.
customTitleStringCustom title of the user in the community.
imageUrlStringDownload url of user image.
isGuestBooleantrue if the user is a guest, false otherwise.
isOwnerBooleantrue if the user is the owner of the community, false otherwise.
nameStringName of the user.
organisationNameStringName of the organisation.
managerRightsList<ManagementRightPermissionData>Manager Rights that are given to the user in the community.
memberRightsList<ManagementRightPermissionData>Member Rights that are given to the user in the community.
updatedAtLongTimestamp when the user was last updated.
uuidStringuuid of the user in community.