ChatRoomMessage class

聊天室消息

Constructors

ChatRoomMessage({String oId = '', int userOId = 0, String userName = '', String nickname = '', String avatarURL = '', MetalList sysMetal = const [], ChatSource? via, String content = '', String md = '', RedPacketMessage? redpacket, WeatherMsg? weather, MusicMsg? music, String time = '', String type = ChatRoomMessageType.msg})
ChatRoomMessage.from(Map<String, dynamic> data)

Properties

allName String
no setter
avatarURL String
用户头像
getter/setter pair
client String
消息来源
no setter
content String
消息内容
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isMusic bool
是否为音乐消息
no setter
isRedpacket bool
是否为红包消息
no setter
isWeather bool
是否为天气消息
no setter
md String
消息内容 Markdown
getter/setter pair
music MusicMsg?
音乐消息内容
getter/setter pair
nickname String
用户昵称
getter/setter pair
oId String
消息 Id
getter/setter pair
redpacket RedPacketMessage?
红包消息内容
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sysMetal MetalList
用户徽章
getter/setter pair
time String
发送时间
getter/setter pair
type String
消息类型
getter/setter pair
unknown ↔ dynamic
未知消息内容
getter/setter pair
userName String
发送者用户名
getter/setter pair
userOId int
发送者用户 Id
getter/setter pair
via ChatSource
消息来源结构
getter/setter pair
weather WeatherMsg?
天气消息内容
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → dynamic
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited