Get Explore Tab Count
Retrieve the count of unseen and total chatrooms for the explore tab using the designated API.
Steps to fetch explore tab count
- Call
getExploreTabCount()
function using the instance ofLMChatClient
. - Process the response LMResponse<GetExploreTabCountResponse> as per your requirement.
LMChatClient.shared.getExploreTabCount { response in
// response (LMResponse<GetExploreTabCountResponse>)
if let data = response.data {
// your function to process the response data
processExploreTabCount(data)
} else if let error = response.error {
// your function to process error
handleError(error)
}
}
Models
GetExploreTabCountResponse
VARIABLE | TYPE | DESCRIPTION | OPTIONAL |
---|---|---|---|
unseenChatroomCount | Int | Number of unseen chatrooms in explore tab | ✔️ |
totalChatroomCount | Int | Total number of chatrooms in explore tab | ✔️ |