Skip to main content

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​

  1. Call getExploreTabCount() function using the instance of LMChatClient.
  2. 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​

VARIABLETYPEDESCRIPTIONOPTIONAL
unseenChatroomCountIntNumber of unseen chatrooms in explore tab✔️
totalChatroomCountIntTotal number of chatrooms in explore tab✔️