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
- Create an object of the
GetExploreFeedRequest
class. - Call the
getExploreFeed()
function using the instance of theLMChatClient
class. - 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
Variable | Type | Description | Optional |
---|---|---|---|
page | int | Page number for paginated response | |
orderType | int | Type of ordering for chatrooms | |
pinned | bool | Flag to filter pinned chatrooms |
GetExploreFeedResponse
List of parameters for the GetExploreFeedResponse
class
Variable | Type | Description | Optional |
---|---|---|---|
chatrooms | List<ChatRoom>? | List of chatrooms | ✔️ |
pinnedChatroomCount | int? | Count of pinned chatrooms | ✔️ |