ScheduledUserMessage class
Represents scheduled user message
- Inheritance
-
- Object
- BaseMessage
- ScheduledUserMessage
- Available extensions
- Annotations
-
- @JsonSerializable()
Constructors
-
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}) -
ScheduledUserMessage.fromJson(Map<
String, dynamic> json) -
factory
Properties
- apnsBundleId ↔ String?
-
The bundle ID of the client app in order to send a push notification to iOS devices.
getter/setter pair
- appleCriticalAlertOptions ↔ AppleCriticalAlertOptions?
-
Options that support Apple critical alerts and checks whether the message is a critical alert.
getter/setter pair
- channelType ↔ ChannelType
-
Channel type of this message
getter/setter pairinherited
- channelUrl → String
-
Channel url of this message.
finalinherited
- createdAt → int
-
Message creation time in millisecond(UTC)
finalinherited
- customType → String?
-
Custom message type
finalinherited
- data ↔ String?
-
data for this message
returns null if data is not a string
getter/setter pairinherited
- dedupId ↔ String?
-
The unique message ID created by other system.
getter/setter pair
- errorCode ↔ int?
-
The error code of this message. This value generated only when message send fails.
getter/setter pairinherited
-
extendedMessage
↔ Map<
String, dynamic> -
Only featured in GroupChannel
Message Template used for Sendbird UI KIT
getter/setter pairinherited
- forceUpdateLastMessage → bool
-
True if this message should update last message of its channel
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isOperatorMessage → bool
-
True if this message was created by an operator.
finalinherited
- isPinnedMessage ↔ bool
-
Pinned Message
getter/setter pairinherited
- isSilent → bool
-
True if this message won't affect unread message count / mention count
finalinherited
- markAsRead ↔ bool?
-
Determines whether to mark the message as read for the sender.
getter/setter pair
-
mentionedUserIds
→ List<
String> ? -
Mention to specific users. If sends a message with this field,
the message will be arrived to mentioned users.
finalinherited
-
mentionedUsers
↔ List<
User> -
The list of users who was mentioned together with this message.
getter/setter pairinherited
- mentionType → MentionType?
-
Mention type that this message uses
finalinherited
- message → String
-
Message text.
finalinherited
- messageId → int
-
Unique message ID.
finalinherited
- messageSurvivalSeconds → int?
-
Message disappear in seconds, default is -1 and won't disappear
finalinherited
-
metaArrays
↔ List<
MessageMetaArray> ? -
Gets an array of meta arrays sorted by chronological order.
current does not support backward compatibility
getter/setter pairinherited
- ogMetaData → OGMetaData?
-
Open graph information in this message. Nullable
finalinherited
- parentMessage ↔ BaseMessage?
-
Retrieve current message's parent information
getter/setter pairinherited
- parentMessageId → int?
-
The unique ID of the parent message. If the message object is a parent message
or a single message without any reply, the value of this property is
0
. If the object is a reply, the value is the unique ID of its parent message.finalinherited - parentMessageText → String?
-
The written text of the message object’s parent message. If the message object
is a parent message, the value of this property is null. If the object is a reply
to a parent message and the type of the parent message is UserMessage, the value
is
message
. If it is FileMessage, the value is thename
of the uploaded file.finalinherited -
reactions
↔ List<
Reaction> ? -
reactions for this message
getter/setter pairinherited
- replyToChannel ↔ bool
-
Option to reply to channel. The default is
false
getter/setter pairinherited -
requestedMentionUserIds
→ List<
String> ? -
Represents target user ids to mention when success to send this
message. This value is valid only when the message is a pending
message or failed message. If the message is a succeeded message,
see
mentionedUserIds
finalinherited - requestId → String?
-
Request ID for checking ACK.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scheduledAt → int
-
The time to send the message, in Unix milliseconds format.
The messages are scheduled in minutes
The term between current time and scheduledAt should be between 5 minutes
(depending on the app attribute
minimum_interval_for_scheduling
) and 30 daysfinal - scheduledInfo ↔ ScheduledInfo?
-
Scheduled message information
getter/setter pairinherited
- scheduledMessageId → int
-
Scheduled message ID
final
- scheduledStatus → ScheduledUserMessageStatus
-
Scheduled message status.
final
- sender ↔ Sender?
-
Sender of this message
getter/setter pairinherited
- senderId ↔ String?
-
Sender’s ID.
getter/setter pair
- sendingStatus ↔ MessageSendingStatus?
-
Represents the dispatch state of this message. If this message
is not dispatched completely to the Sendbird server, the value
is
pending
. If failed to send the message, the value isfailed
. And if success to send the message, the value issucceeded
.getter/setter pairinherited - sendPush → bool
-
final
- sentAt ↔ int
-
The sent time of the scheduled message, in Unix milliseconds format. If it is not sent yet, the value is 0.
getter/setter pair
- threadInfo ↔ ThreadInfo?
-
The thread info that belongs to this message object.
getter/setter pairinherited
- type → MessageType?
-
The type of the message.
final
- updatedAt → int
-
Message update time in millisecond(UTC).
finalinherited
Methods
-
applyReactionEvent(
ReactionEvent event) → bool -
Applies ReactionEvent to this message.
inherited
-
applyThreadInfoUpdateEvent(
ThreadInfoUpdateEvent event) → bool -
Applies ThreadInfoUpdateEvent event to this message.
inherited
-
containsMentionedUser(
User? user) → bool -
Available on BaseMessage, provided by the BaseMessageInternal extension
-
getMetaArrays(
List< String> keys) → List<MessageMetaArray> -
Retreives list of MessageMetaArray with given
keys
inherited -
getThreadedMessagesByTimestamp(
int timestamp, ThreadedMessageListParams params) → Future< ThreadedMessageResponse> -
Retrieves threaded messages (replies) on this message with
timestamp
andparams
.inherited -
hasCreatedLaterThan(
int time) → bool -
Available on BaseMessage, provided by the BaseMessageInternal extension
-
hasUpdatedLaterThan(
int time) → bool -
Available on BaseMessage, provided by the BaseMessageInternal extension
-
isResendable(
) → bool -
Returns
true
if this message can be resend.inherited -
mentioned(
{User? user, User? byOtherUser}) → bool -
Available on BaseMessage, provided by the BaseMessageInternal extension
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited