LMChatReplyPrivatelyExtra
Overview
LMChatReplyPrivatelyExtra
is a data model used to provide additional context when replying privately to a message in LikeMinds Chat. It contains information about the source chatroom and the original conversation being replied to.
Properties
VARIABLE | TYPE | DESCRIPTION |
---|---|---|
sourceChatroomName | String | Name of the source chatroom |
sourceChatroomId | String | ID of the source chatroom |
sourceConversation | ConversationViewData | The original conversation being replied to |
Initialization
let extra = LMChatReplyPrivatelyExtra(
sourceChatroomName: "General Chat",
sourceChatroomId: "12345",
sourceConversation: conversationViewData
)
Example
This model is typically used as part of the ContentModel
for LMChatMessageReplyPrivatelyPreview
to display the context of a private reply.
let contentModel = LMChatMessageReplyPrivatelyPreview.ContentModel(replyPrivatelyExtra: extra)
replyPrivatelyPreview.setData(contentModel)