ChannelMessage constructor
ChannelMessage({})
Implementation
factory ChannelMessage({
$core.String? channelId,
$core.String? messageId,
$1.Int32Value? code,
$core.String? senderId,
$core.String? username,
$core.String? content,
$0.Timestamp? createTime,
$0.Timestamp? updateTime,
$1.BoolValue? persistent,
$core.String? roomName,
$core.String? groupId,
$core.String? userIdOne,
$core.String? userIdTwo,
}) {
final _result = create();
if (channelId != null) {
_result.channelId = channelId;
}
if (messageId != null) {
_result.messageId = messageId;
}
if (code != null) {
_result.code = code;
}
if (senderId != null) {
_result.senderId = senderId;
}
if (username != null) {
_result.username = username;
}
if (content != null) {
_result.content = content;
}
if (createTime != null) {
_result.createTime = createTime;
}
if (updateTime != null) {
_result.updateTime = updateTime;
}
if (persistent != null) {
_result.persistent = persistent;
}
if (roomName != null) {
_result.roomName = roomName;
}
if (groupId != null) {
_result.groupId = groupId;
}
if (userIdOne != null) {
_result.userIdOne = userIdOne;
}
if (userIdTwo != null) {
_result.userIdTwo = userIdTwo;
}
return _result;
}