AdminMessage constructor

AdminMessage(
  1. {required int messageId,
  2. required String message,
  3. required String channelUrl,
  4. required ChannelType channelType,
  5. SendingStatus? sendingStatus,
  6. String? requestId,
  7. List<User> mentionedUsers = const [],
  8. MentionType? mentionType,
  9. List<String>? requestedMentionUserIds,
  10. int createdAt = 0,
  11. int updatedAt = 0,
  12. int? parentMessageId,
  13. String? parentMessageText,
  14. Map<String, dynamic>? parentMessage,
  15. ThreadInfo? threadInfo,
  16. List<MessageMetaArray>? metaArrays,
  17. String? customType,
  18. int? messageSurvivalSeconds,
  19. bool forceUpdateLastMessage = false,
  20. bool isSilent = false,
  21. bool isOperatorMessage = false,
  22. String? data,
  23. OGMetaData? ogMetaData,
  24. List<Reaction>? reactions,
  25. bool replyToChannel = false,
  26. Map<String, dynamic>? extendedMessage}
)

Implementation

AdminMessage({
  required int messageId,
  required String message,
  required String channelUrl,
  required ChannelType channelType,
  SendingStatus? sendingStatus,
  String? requestId,
  List<User> mentionedUsers = const [],
  MentionType? mentionType,
  List<String>? requestedMentionUserIds,
  int createdAt = 0,
  int updatedAt = 0,
  int? parentMessageId,
  String? parentMessageText,
  Map<String, dynamic>? parentMessage,
  ThreadInfo? threadInfo,
  List<MessageMetaArray>? metaArrays,
  String? customType,
  int? messageSurvivalSeconds,
  bool forceUpdateLastMessage = false,
  bool isSilent = false,
  bool isOperatorMessage = false,
  String? data,
  OGMetaData? ogMetaData,
  List<Reaction>? reactions,
  bool replyToChannel = false,
  Map<String, dynamic>? extendedMessage,
}) : super(
        isReplyToChannel: replyToChannel,
        requestId: requestId,
        messageId: messageId,
        message: message,
        sendingStatus: sendingStatus,
        channelType: channelType,
        channelUrl: channelUrl,
        mentionedUsers: mentionedUsers,
        mentionType: mentionType,
        createdAt: createdAt,
        updatedAt: updatedAt,
        parentMessageId: parentMessageId,
        parentMessage: parentMessage,
        threadInfo: threadInfo,
        allMetaArrays: metaArrays,
        customType: customType,
        messageSurvivalSeconds: messageSurvivalSeconds,
        forceUpdateLastMessage: forceUpdateLastMessage,
        isSilent: isSilent,
        isOperatorMessage: isOperatorMessage,
        data: data,
        ogMetaData: ogMetaData,
        reactions: reactions,
        extendedMessage: extendedMessage ?? {},
      );