KookUserChat

KOOK 的 user-chat 私聊会话

KOOK 组件会将 私聊会话 视为 Contact 处理,同时实现 Contact 来提供可交流的联系人能力。

可删除的

KOOK 中的聊天会话是可以通过 DeleteUserChatApi 进行删除的。因此 KookUserChat 实现了 DeleteSupport 来支持 删除操作

Author

ForteScarlet

Properties

Link copied to clipboard
open override val avatar: String
Link copied to clipboard
open val chatCode: String

私聊会话的会话 code , 同 source.code

Link copied to clipboard
open override val id: ID

私聊会话对应用户的用户ID,同 source.targetInfo.id

Link copied to clipboard
open override val name: String
Link copied to clipboard
abstract val source: UserChatView

用户会话源信息对象。

Inherited properties

Link copied to clipboard

Functions

Link copied to clipboard
abstract suspend override fun delete(vararg options: DeleteOption)

删除当前 聊天会话.

Link copied to clipboard
abstract suspend override fun send(text: String): KookMessageCreatedReceipt
abstract suspend override fun send(message: Message): KookMessageReceipt
abstract suspend override fun send(messageContent: MessageContent): KookMessageReceipt

向当前好友(私聊会话)发送消息。