Tagging
The getTaggingList function is used to fetch the tagging list, including group tags and user tags.
Steps to get tagging list
- Create a GetTaggingListRequest object using
GetTaggingListRequest.builder()
class by passing all the required parameters. - Call
getTaggingList()
function using the instance ofLMFeedClient
. - Process the response LMResponse<GetTaggingListResponse> as per your requirement.
// object of GetTaggingListRequest
let request = GetTaggingListRequest.builder()
.searchName("Thor") // text to search the user
.page(1) // page number for paginated data
.pageSize(20) // page size for paginated data
.build()
LMFeedClient.shared.getTaggingList(request) { response in
// response (LMResponse<GetTaggingListResponse>)
if (response.success) {
// your function to process the response data
processResponse(response.data)
} else {
// your function to process error message
processError(response.errorMessage)
}
}
tip
Use a debounce operator on search input to reduce unnecessary or duplicate search requests triggered by rapidly changing input.
Models
GetTaggingListRequest
VARIABLE | TYPE | DESCRIPTION | OPTIONAL |
---|---|---|---|
searchName | String | Input text to search a member. | ✔ |
page | Int | Page number of paginated search data. | |
pageSize | Int | Page size for paginated search data. |
GetTaggingListResponse
VARIABLE | TYPE | DESCRIPTION | OPTIONAL |
---|---|---|---|
members | User[] | List of the members. |