Skip to main content

Get Explore Feed

The Explore Feed is used to explore new chatrooms. You can follow the given steps to integrate this to your chat community. The getExploreFeed() function is used to fetch the explore feed.

Steps to Get Explore Feed

  1. Create an object of the GetExploreFeedRequest class.
  2. Call the getExploreFeed() function using the instance of the LMChatClient class.
  3. Process the response LMResponse<GetExploreFeedResponse> as per your requirement.
GetExploreFeedRequest request = (GetExploreFeedRequestBuilder()
..page(1)
..orderType(1)
..pinned(false))
.build();

LMResponse<GetExploreFeedResponse> response = await lmChatClient.getExploreFeed(request);

if (response.success) {
// your function to process the response data
processResponse(response);
} else {
// your function to process error message
processError(response);
}

Models

GetExploreFeedRequest

List of parameters for the GetExploreFeedRequest class

VariableTypeDescriptionOptional
pageintPage number for paginated response
orderTypeintType of ordering for chatrooms
pinnedboolFlag to filter pinned chatrooms

GetExploreFeedResponse

List of parameters for the GetExploreFeedResponse class

VariableTypeDescriptionOptional
chatroomsList<ChatRoom>?List of chatrooms✔️
pinnedChatroomCountint?Count of pinned chatrooms✔️