SyMessage class

content : "111" msgId : "7155793691347525633_P_05b3dcc21d934283b2c493b8fbf88a7b_d95ee550bf624d38adb8cef891f1bb34_38_05b3dcc21d934283b2c493b8fbf88a7b" msgTimeStamp : 1709874665838 read : false receiveUserInfo : {"avatar":"https://xhyimage.oss-cn-shenzhen.aliyuncs.com/system/sex/sex1.png","birthday":"0","email":null,"extension":{"extension":"{"userId":907885191889035264}","userId":907885191889035264},"gender":"1","label":null,"mobile":"13333333333","nickName":"笔直的乡村","remark":null,"status":0,"type":0,"userId":"05b3dcc21d934283b2c493b8fbf88a7b"} requestId : "7155793691347525633_P_05b3dcc21d934283b2c493b8fbf88a7b_d95ee550bf624d38adb8cef891f1bb34_38" send : false sendListener : null sendUserInfo : {"avatar":"https://xiaomai-images.oss-cn-shanghai.aliyuncs.com/user/910380166729428992/1706491068cropImage.jpeg","birthday":null,"email":null,"extension":{"extension":"{"userId":910380166729428992}","userId":910380166729428992},"gender":"1","label":null,"mobile":null,"nickName":"平和的","remark":null,"status":0,"type":0,"userId":"d95ee550bf624d38adb8cef891f1bb34"} sessionId : "7155793691347525633_P_05b3dcc21d934283b2c493b8fbf88a7b_d95ee550bf624d38adb8cef891f1bb34" sessionType : 1 status : 1 type : 0 uri : data/image/xxxx.png

Constructors

SyMessage({String? content, String? msgId, int? msgTimeStamp, bool? read, SyContact? receiveUserInfo, String? requestId, bool? send, SyContact? sendUserInfo, String? sessionId, SessionTypeEnum? sessionType, MsgStatusEnum? status, MsgTypeEnum? type, Uri? uri, int? messageSeq, String? pushContent, Map<String, dynamic>? pushPayload, Map<String, dynamic>? localExtension, String? intentUrl})
SyMessage.fromJson(dynamic json)

Properties

content String?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
intentUrl String?
no getter
localExtension Map<String, dynamic>?
getter/setter pair
messageSeq int?
getter/setter pair
msgId String?
getter/setter pair
msgTimeStamp int?
getter/setter pair
pushContent String?
getter/setter pair
pushPayload Map<String, dynamic>?
getter/setter pair
read bool?
getter/setter pair
receiveUserInfo SyContact?
getter/setter pair
requestId String?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
send bool?
getter/setter pair
sendUserInfo SyContact?
getter/setter pair
sessionId String?
getter/setter pair
sessionType SessionTypeEnum?
getter/setter pair
status MsgStatusEnum?
getter/setter pair
type MsgTypeEnum?
getter/setter pair
uri Uri?
getter/setter pair

Methods

copyWith({String? content, String? msgId, int? msgTimeStamp, bool? read, SyContact? receiveUserInfo, String? requestId, bool? send, SyContact? sendUserInfo, String? sessionId, SessionTypeEnum? sessionType, MsgStatusEnum? status, MsgTypeEnum? type, Uri? uri, int? messageSeq, String? pushContent, Map<String, dynamic>? pushPayload, Map<String, dynamic>? localExtension, dynamic intentUrl}) SyMessage
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

Operators

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

Static Methods

buildCustomMsg(SyContact receiveUserInfo, String sessionId) SyMessage
创建自定义消息
buildCustomMsgByUserInfo(SyContact receiveUserInfo) SyMessage
创建语音消息
buildImgMsg(SyContact receiveUserInfo, String sessionId) SyMessage
创建图片消息
buildImgMsgByUserInfo(SyContact receiveUserInfo) SyMessage
创建图片消息
buildTxtMsg(SyContact receiveUserInfo, String sessionId) SyMessage
创建文本消息
buildTxtMsgByUserInfo(SyContact receiveUserInfo) SyMessage
创建文本消息
buildVideoMsg(SyContact receiveUserInfo, String sessionId) SyMessage
创建视频消息
buildVideoMsgByUserInfo(SyContact receiveUserInfo) SyMessage
创建视频消息
buildVoiceMsg(SyContact receiveUserInfo, String sessionId) SyMessage
创建语音消息
buildVoiceMsgMsgByUserInfo(SyContact receiveUserInfo) SyMessage
创建语音消息