ScheduledUserMessage constructor
ScheduledUserMessage({
- String? apnsBundleId,
- String? dedupId,
- AppleCriticalAlertOptions? appleCriticalAlertOptions,
- required int scheduledMessageId,
- required ScheduledUserMessageStatus scheduledStatus,
- required MessageType? type,
- required int scheduledAt,
- bool? markAsRead,
- required ChannelType channelType,
- bool sendPush = true,
- PushNotificationDeliveryOption pushOption = PushNotificationDeliveryOption.normal,
- List<
String> translationTargetLanguages = const [], - String? reqId,
- ScheduledInfo? scheduledInfo,
- required String message,
- required String? senderId,
- required String channelUrl,
- List<
User> mentionedUsers = const [], - MentionType? mentionType,
- int createdAt = 0,
- int sentAt = 0,
- List<
MessageMetaArray> ? metaArrays, - String? customType,
- bool isSilent = false,
- String? data,
- MessageSendingStatus? sendingStatus,
- 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,
);