Properties
Readonly targetId
targetId: string
Readonly type
Constructors
constructor
Parameters
_context: default
logger: ILogger
Methods
destory
Returns Promise<void>
read
Returns Promise<void>
getUnreadCount
- getUnreadCount(): Promise<number>
Returns Promise<number>
send
Parameters
setStatus
- setStatus(status: { notificationStatus?: NotificationStatus; isTop?: boolean }): Promise<void>
Parameters
Returns Promise<void>
getMessages
Parameters
recall
Parameters
options: { messageUId: string; sentTime: number; user?: IUserProfile; disableNotification?: boolean; pushConfig?: IPushConfig; extra?: string }
messageUId: string
sentTime: number
Optional disableNotification?: boolean
Optional extra?: string
deleteMessages
- deleteMessages(messages: { messageUId: string; sentTime: number; messageDirection: MessageDirection }[]): Promise<void>
Parameters
messages: { messageUId: string; sentTime: number; messageDirection: MessageDirection }[]
Returns Promise<void>
clearMessages
- clearMessages(options: { timestamp: number }): Promise<void>
Parameters
options: { timestamp: number }
Returns Promise<void>
updateMessageExpansion
Parameters
Returns Promise<void>
removeMessageExpansion
Parameters
Returns Promise<void>
setDraft
- setDraft(draft: string): Promise<void>
Parameters
Returns Promise<void>
getDraft
- getDraft(): Promise<string>
Returns Promise<string>
deleteDraft
- deleteDraft(): Promise<void>
Returns Promise<void>
sendReadReceiptMessage
- sendReadReceiptMessage(messageUIds: string[]): Promise<void>
Parameters
Returns Promise<void>
sendTypingStatusMessage
Parameters
typingContentType: string
getMessageReader
Parameters
getInfo
removeTags
- removeTags(tagIds: string[]): Promise<number>
Parameters
Returns Promise<number>
getTags
会话 id