AdminMessage constructor

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

Implementation

AdminMessage({
  required int messageId,
  required String message,
  required String channelUrl,
  required ChannelType channelType,
  MessageSendingStatus? sendingStatus,
  String? requestId,
  List<User> mentionedUsers = const [],
  List<String>? mentionedUserIds,
  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,
  int? errorCode,
  bool isOperatorMessage = false,
  String? data,
  OGMetaData? ogMetaData,
  List<Reaction>? reactions,
  bool replyToChannel = false,
  Map<String, dynamic>? extendedMessage,
  bool isPinnedMessage = false,
}) : super(
        isPinnedMessage: isPinnedMessage,
        replyToChannel: replyToChannel,
        requestId: requestId,
        messageId: messageId,
        message: message,
        sendingStatus: sendingStatus,
        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,
        extendedMessage: extendedMessage ?? {},
      );