UserMessage constructor
UserMessage({
- required Map<
String, String> translations, - required int messageId,
- required String message,
- required String channelUrl,
- required ChannelType channelType,
- Sender? sender,
- MessageSendingStatus? sendingStatus,
- String? requestId,
- List<
User> mentionedUsers = const [], - MentionType? mentionType,
- List<
String> ? requestedMentionUserIds, - List<
String> ? mentionedUserIds, - int createdAt = 0,
- int updatedAt = 0,
- int? parentMessageId,
- String? parentMessageText,
- ThreadInfo? threadInfo,
- List<
MessageMetaArray> ? metaArrays, - String? customType,
- int? messageSurvivalSeconds,
- bool forceUpdateLastMessage = false,
- bool isSilent = false,
- int? errorCode,
- bool isOperatorMessage = false,
- String? data,
- OGMetaData? ogMetaData,
- List<
Reaction> ? reactions, - Map<
String, dynamic> ? parentMessage, - bool replyToChannel = false,
- Poll? poll,
- List<
String> ? translationTargetLanguages, - bool isPinnedMessage = false,
Implementation
UserMessage({
required this.translations,
required int messageId,
required String message,
required String channelUrl,
required ChannelType channelType,
Sender? sender,
MessageSendingStatus? sendingStatus,
String? requestId,
List<User> mentionedUsers = const [],
MentionType? mentionType,
List<String>? requestedMentionUserIds,
List<String>? mentionedUserIds,
int createdAt = 0,
int updatedAt = 0,
int? parentMessageId,
String? parentMessageText,
ThreadInfo? threadInfo,
List<MessageMetaArray>? metaArrays,
String? customType,
int? messageSurvivalSeconds,
bool forceUpdateLastMessage = false,
bool isSilent = false,
int? errorCode,
bool isOperatorMessage = false,
String? data,
OGMetaData? ogMetaData,
List<Reaction>? reactions,
Map<String, dynamic>? parentMessage,
bool replyToChannel = false,
this.poll,
this.translationTargetLanguages,
bool isPinnedMessage = false,
}) : super(
isPinnedMessage: isPinnedMessage,
replyToChannel: replyToChannel,
requestId: requestId,
messageId: messageId,
message: message,
sendingStatus: sendingStatus,
sender: sender,
channelType: channelType,
channelUrl: channelUrl,
mentionedUsers: mentionedUsers,
mentionedUserIds: mentionedUserIds,
mentionType: mentionType,
requestedMentionUserIds: requestedMentionUserIds,
createdAt: createdAt,
updatedAt: updatedAt,
parentMessageId: parentMessageId,
parentMessageText: parentMessageText,
parentMessage: parentMessage,
threadInfo: threadInfo,
metaArrays: metaArrays,
customType: customType,
messageSurvivalSeconds: messageSurvivalSeconds,
forceUpdateLastMessage: forceUpdateLastMessage,
isSilent: isSilent,
errorCode: errorCode,
isOperatorMessage: isOperatorMessage,
data: data,
ogMetaData: ogMetaData,
reactions: reactions,
);