Data

Constructors

Link copied to clipboard
constructor(id: String, author: C2CMessageCreate.Author, content: String, timestamp: String, attachments: List<Message.Attachment> = emptyList())

Properties

Link copied to clipboard

富媒体文件附件,文件类型:"图片,语音,视频,文件" {"content_type": "", "filename": "", "height": "", "width": "", "size": "", "url": ""}

Link copied to clipboard
Link copied to clipboard

文本消息内容

Link copied to clipboard
val id: String

平台方消息ID,可以用于被动消息发送

Link copied to clipboard

消息场景信息。

Link copied to clipboard
@SerialName(value = "message_type")
val messageType: C2CMessageType?

消息类型。

Link copied to clipboard

消息生产时间(RFC3339)

Functions

Link copied to clipboard
operator fun component1(): String
Link copied to clipboard
Link copied to clipboard
operator fun component3(): String
Link copied to clipboard
operator fun component4(): String
Link copied to clipboard
Link copied to clipboard
fun copy(id: String = this.id, author: C2CMessageCreate.Author = this.author, content: String = this.content, timestamp: String = this.timestamp, attachments: List<Message.Attachment> = this.attachments): C2CMessageCreate.Data
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String