Message class
Constructors
- Message({String? clientMsgID, String? serverMsgID, int? createTime, int? sendTime, int? sessionType, String? sendID, String? recvID, int? msgFrom, int? contentType, int? platformID, String? senderNickname, String? senderFaceUrl, String? groupID, String? content, int? seq, bool? isRead, int? hasReadTime, int? status, OfflinePushInfo? offlinePush, String? attachedInfo, String? ex, dynamic ext, PictureElem? pictureElem, SoundElem? soundElem, VideoElem? videoElem, FileElem? fileElem, AtElem? atElem, LocationElem? locationElem, CustomElem? customElem, QuoteElem? quoteElem, MergeElem? mergeElem, NotificationElem? notificationElem, FaceElem? faceElem, AttachedInfoElem? attachedInfoElem})
-
Message.fromJson(Map<
String, dynamic> json)
Properties
- atElem ↔ AtElem?
-
@信息
getter/setter pair
- attachedInfo ↔ String?
-
附加信息
getter/setter pair
- attachedInfoElem ↔ AttachedInfoElem?
-
附加信息
getter/setter pair
- clientMsgID ↔ String?
-
消息id,唯一标识
getter/setter pair
- content ↔ String?
-
消息内容
getter/setter pair
- contentType ↔ int?
-
消息类型MessageType
getter/setter pair
- createTime ↔ int?
-
创建时间
getter/setter pair
- customElem ↔ CustomElem?
-
自定义
getter/setter pair
- ex ↔ String?
-
扩展信息
getter/setter pair
- ext ↔ dynamic
-
自定义扩展信息,目前用于客服端处理消息时间分段
getter/setter pair
- faceElem ↔ FaceElem?
-
自定义表情
getter/setter pair
- fileElem ↔ FileElem?
-
文件
getter/setter pair
- groupID ↔ String?
-
群ID
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- hasReadTime ↔ int?
-
已读时间
getter/setter pair
- isGroupChat → bool
-
群聊消息
no setter
- isRead ↔ bool?
-
是否已读
getter/setter pair
- isSingleChat → bool
-
单聊消息
no setter
- locationElem ↔ LocationElem?
-
位置
getter/setter pair
- mergeElem ↔ MergeElem?
-
合并
getter/setter pair
- msgFrom ↔ int?
-
来源
getter/setter pair
- notificationElem ↔ NotificationElem?
-
通知
getter/setter pair
- offlinePush ↔ OfflinePushInfo?
-
离线显示内容
getter/setter pair
- pictureElem ↔ PictureElem?
-
图片
getter/setter pair
- platformID ↔ int?
-
平台Platform
getter/setter pair
- quoteElem ↔ QuoteElem?
-
引用
getter/setter pair
- recvID ↔ String?
-
接收者id
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- senderFaceUrl ↔ String?
-
发送者头像
getter/setter pair
- senderNickname ↔ String?
-
发送者昵称
getter/setter pair
- sendID ↔ String?
-
发送者id
getter/setter pair
- sendTime ↔ int?
-
发送时间
getter/setter pair
- seq ↔ int?
-
消息的seq
getter/setter pair
- serverMsgID ↔ String?
-
服务端生成的id
getter/setter pair
- sessionType ↔ int?
-
会话类型ConversationType
getter/setter pair
- soundElem ↔ SoundElem?
-
语音
getter/setter pair
- status ↔ int?
-
消息发送状态MessageStatus
getter/setter pair
- videoElem ↔ VideoElem?
-
视频
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
-
update(
Message message) → void
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override