ScheduledUserMessage constructor

ScheduledUserMessage({
  1. String? apnsBundleId,
  2. String? dedupId,
  3. AppleCriticalAlertOptions? appleCriticalAlertOptions,
  4. required int scheduledMessageId,
  5. required ScheduledUserMessageStatus scheduledStatus,
  6. required MessageType? type,
  7. required int scheduledAt,
  8. bool? markAsRead,
  9. required ChannelType channelType,
  10. bool sendPush = true,
  11. PushNotificationDeliveryOption pushOption = PushNotificationDeliveryOption.normal,
  12. List<String> translationTargetLanguages = const [],
  13. String? reqId,
  14. ScheduledInfo? scheduledInfo,
  15. required String message,
  16. required String? senderId,
  17. required String channelUrl,
  18. List<User> mentionedUsers = const [],
  19. MentionType? mentionType,
  20. int createdAt = 0,
  21. int sentAt = 0,
  22. List<MessageMetaArray>? metaArrays,
  23. String? customType,
  24. bool isSilent = false,
  25. String? data,
  26. MessageSendingStatus? sendingStatus,
  27. bool isPinnedMessage = false,
})

Implementation

ScheduledUserMessage({
  this.apnsBundleId,
  this.dedupId,
  this.appleCriticalAlertOptions,
  required this.scheduledMessageId,
  required this.scheduledStatus,
  required this.type,
  required this.scheduledAt,
  this.markAsRead,
  required ChannelType channelType,
  this.sendPush = true,
  PushNotificationDeliveryOption pushOption =
      PushNotificationDeliveryOption.normal,
  List<String> translationTargetLanguages = const [],
  String? reqId,
  ScheduledInfo? scheduledInfo,
  required String message,
  required this.senderId,
  required String channelUrl,
  List<User> mentionedUsers = const [],
  MentionType? mentionType,
  int createdAt = 0,
  this.sentAt = 0,
  List<MessageMetaArray>? metaArrays,
  String? customType,
  bool isSilent = false,
  String? data,
  MessageSendingStatus? sendingStatus,
  bool isPinnedMessage = false,
})  : _translationTargetLanguages = translationTargetLanguages,
      _pushOption = pushOption,
      _reqId = reqId,
      super(
        isPinnedMessage: isPinnedMessage,
        messageId: scheduledMessageId,
        message: message,
        sendingStatus: sendingStatus,
        channelUrl: channelUrl,
        channelType: channelType,
        mentionedUsers: mentionedUsers,
        mentionType: mentionType,
        createdAt: createdAt,
        customType: customType,
        isSilent: isSilent,
        data: data,
        scheduledInfo: scheduledInfo,
        metaArrays: metaArrays,
      );