Get Tagging Member List
You can get the list of all the tags present in the community by calling the getTaggingList()
method present in LMChatClient
class and passing the request object.
Steps to Tag Member in a Conversation
- Create a
TagRequestModel
object using theTagRequestModelBuilder
class. - Call
getTaggingList()
function using the instance ofLMChatClient
class, using your request object. - Process the response LMResponse<
TagResponseModel
> as per your requirement.
TagRequestModel request = (TagRequestModelBuilder()
..chatroomId("ENTER_CHATROOM_ID"))
.build();
LMResponse<TagResponseModel> response = await lmClient.getTaggingList(request);
if (response.success) {
debugPrint("Tagging list fetched");
} else {
debugPrint("Failed to fetch tagging list");
}
Models
TagRequestModel
List of parameters for the TagRequestModel
class
Variable | Type | Description | Nullable |
---|---|---|---|
chatroomId | int? | Chatroom ID | ✔️ |
page | int? | Page number | ✔️ |
pageSize | int? | Page size | ✔️ |
searchQuery | String? | Search string | ✔️ |
TagResponseModel
List of parameters for the TagResponseModel
class
Variable | Type | Description | Nullable |
---|---|---|---|
members | List<UserTag>? | List of member tags | ✔️ |
groupTags | List<GroupTag>? | List of group tags | ✔️ |
UserTag
List of parameters used in UserTag
Variable | Type | Description | Optional |
---|---|---|---|
name | String | name of the user | ✔️ |
imageUrl | String | url of the image | ✔️ |
customTitle | String | custom title of the user | ✔️ |
id | int | unique id of the user | ✔️ |
isGuest | bool | is user guest | ✔️ |
userUniqueId | String | unique id of the user | ✔️ |
uuid | String | unique identifier for the user | ✔️ |
sdkClientInfo | SDKClientInfo | sdk client info | ✔️ |
GroupTag
List of parameters used in GroupTag
Variable | Type | Description | Optional |
---|---|---|---|
description | String | description of the group | ✔️ |
imageUrl | String | url of the image | ✔️ |
name | String | name of the group | ✔️ |
route | String | route of the group | ✔️ |
tag | String | tag associated with the group | ✔️ |