MsgData constructor
MsgData({
- String? sendID,
- String? recvID,
- String? groupID,
- String? clientMsgID,
- String? serverMsgID,
- int? senderPlatformID,
- String? senderNickname,
- String? senderFaceURL,
- int? sessionType,
- int? msgFrom,
- int? contentType,
- List<
int> ? content, - Int64? seq,
- Int64? sendTime,
- Int64? createTime,
- int? status,
- bool? isRead,
- Iterable<
MapEntry< ? options,String, bool> > - OfflinePushInfo? offlinePushInfo,
- Iterable<
String> ? atUserIDList, - String? attachedInfo,
- String? ex,
Implementation
factory MsgData({
$core.String? sendID,
$core.String? recvID,
$core.String? groupID,
$core.String? clientMsgID,
$core.String? serverMsgID,
$core.int? senderPlatformID,
$core.String? senderNickname,
$core.String? senderFaceURL,
$core.int? sessionType,
$core.int? msgFrom,
$core.int? contentType,
$core.List<$core.int>? content,
$fixnum.Int64? seq,
$fixnum.Int64? sendTime,
$fixnum.Int64? createTime,
$core.int? status,
$core.bool? isRead,
$core.Iterable<$core.MapEntry<$core.String, $core.bool>>? options,
OfflinePushInfo? offlinePushInfo,
$core.Iterable<$core.String>? atUserIDList,
$core.String? attachedInfo,
$core.String? ex,
}) {
final result = create();
if (sendID != null) result.sendID = sendID;
if (recvID != null) result.recvID = recvID;
if (groupID != null) result.groupID = groupID;
if (clientMsgID != null) result.clientMsgID = clientMsgID;
if (serverMsgID != null) result.serverMsgID = serverMsgID;
if (senderPlatformID != null) result.senderPlatformID = senderPlatformID;
if (senderNickname != null) result.senderNickname = senderNickname;
if (senderFaceURL != null) result.senderFaceURL = senderFaceURL;
if (sessionType != null) result.sessionType = sessionType;
if (msgFrom != null) result.msgFrom = msgFrom;
if (contentType != null) result.contentType = contentType;
if (content != null) result.content = content;
if (seq != null) result.seq = seq;
if (sendTime != null) result.sendTime = sendTime;
if (createTime != null) result.createTime = createTime;
if (status != null) result.status = status;
if (isRead != null) result.isRead = isRead;
if (options != null) result.options.addEntries(options);
if (offlinePushInfo != null) result.offlinePushInfo = offlinePushInfo;
if (atUserIDList != null) result.atUserIDList.addAll(atUserIDList);
if (attachedInfo != null) result.attachedInfo = attachedInfo;
if (ex != null) result.ex = ex;
return result;
}