Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ChatroomMessage

Hierarchy

  • ChatroomMessage

Index

Properties

attach?: StrAnyObj

附加内容,自定义,文件,geo 等类型都会附带这个

body: string

消息的文本内容

callbackExt?: string

服务器第三方回调的扩展字段

chatroomId: string

聊天室的 id

env?: string

环境变量,用于指向不同的抄送、第三方回调等配置

ext?: string

扩展字段

flow: "in" | "out"

消息的流向 'in'表示此消息是收到的消息 'out'表示此消息是发出的消息

from: string

消息发送方, 帐号

fromAvatar?: string

消息发送方的头像

fromClientType?: "Android" | "iOS" | "PC" | "WindowsPhone" | "Web" | "Server" | "Mac"

发送方的设备类型

fromExt?: string

消息发送方的扩展字段

fromNick?: string

消息发送方的昵称

idClient: string

SDK端生成的消息id

resend?: boolean

是否为重发的消息

skipHistory: boolean

是否跳过存云端历史, false:不跳过,true:跳过存历史,默认false

status: "success" | "fail" | "sending"
subType?: string

开发者自定义的消息子类型,格式为大于0的整数

time: number

消息时间戳

type: "text" | "image" | "audio" | "video" | "geo" | "notification" | "file" | "tip" | "robot" | "g2" | "custom"

消息类型

yidunAntiSpamRes?: string

若有开启易盾反垃圾,并且反垃圾结果命中,通过这个参数返回