ChatMessage constructor
ChatMessage({
- Int64? date,
- String? tradeId,
- int? traderId,
- bool? senderIsTrader,
- String? message,
- Iterable<
Attachment> ? attachments, - bool? arrived,
- bool? storedInMailbox,
- bool? isSystemMessage,
- NodeAddress? senderNodeAddress,
- String? uid,
- String? sendMessageError,
- bool? acknowledged,
- String? ackError,
- SupportType? type,
- bool? wasDisplayed,
Implementation
factory ChatMessage({
$fixnum.Int64? date,
$core.String? tradeId,
$core.int? traderId,
$core.bool? senderIsTrader,
$core.String? message,
$core.Iterable<Attachment>? attachments,
$core.bool? arrived,
$core.bool? storedInMailbox,
$core.bool? isSystemMessage,
NodeAddress? senderNodeAddress,
$core.String? uid,
$core.String? sendMessageError,
$core.bool? acknowledged,
$core.String? ackError,
SupportType? type,
$core.bool? wasDisplayed,
}) {
final $result = create();
if (date != null) {
$result.date = date;
}
if (tradeId != null) {
$result.tradeId = tradeId;
}
if (traderId != null) {
$result.traderId = traderId;
}
if (senderIsTrader != null) {
$result.senderIsTrader = senderIsTrader;
}
if (message != null) {
$result.message = message;
}
if (attachments != null) {
$result.attachments.addAll(attachments);
}
if (arrived != null) {
$result.arrived = arrived;
}
if (storedInMailbox != null) {
$result.storedInMailbox = storedInMailbox;
}
if (isSystemMessage != null) {
$result.isSystemMessage = isSystemMessage;
}
if (senderNodeAddress != null) {
$result.senderNodeAddress = senderNodeAddress;
}
if (uid != null) {
$result.uid = uid;
}
if (sendMessageError != null) {
$result.sendMessageError = sendMessageError;
}
if (acknowledged != null) {
$result.acknowledged = acknowledged;
}
if (ackError != null) {
$result.ackError = ackError;
}
if (type != null) {
$result.type = type;
}
if (wasDisplayed != null) {
$result.wasDisplayed = wasDisplayed;
}
return $result;
}