-
public class ScheduledUserMessageParams extends UserMessageParams
Represents a scheduled user message params. registerScheduledUserMessage
-
-
Constructor Summary
Constructors Constructor Description ScheduledUserMessageParams(String message, int year, int month, int day, int hour, int min, String timezone)
ScheduledUserMessageParams constructor.The scheduled time must be set at least 6 minutes afterward from the current time.
-
Method Summary
Modifier and Type Method Description void
setSchedule(int year, int month, int day, int hour, int min, String timezone)
Sets schedule.The scheduled time must be set at least 6 minutes afterward from the current time. Date
getScheduledDateTime()
Returns scheduled message date time. String
getScheduledTimezone()
Returns scheduled message timezone. ScheduledUserMessageParams
setAppleCriticalAlertOptions(@NonNull() AppleCriticalAlertOptions appleCriticalAlertOptions)
set apple critical alert options for this instance. ScheduledUserMessageParams
setPollId(@Nullable() Long pollId)
Sets pollId for this user message. String
toString()
-
Methods inherited from class com.sendbird.android.UserMessageParams
getMentionedMessageTemplate, getMessage, getPollId, getTranslationTargetLanguages, setAppleCriticalAlertOptions, setCustomType, setData, setMentionType, setMentionedMessageTemplate, setMentionedUserIds, setMentionedUsers, setMessage, setMetaArrayKeys, setMetaArrays, setParentMessageId, setPollId, setPushNotificationDeliveryOption, setReplyToChannel, setTargetLanguages, setTranslationTargetLanguages
-
Methods inherited from class com.sendbird.android.BaseMessageParams
getAppleCriticalAlertOptions, getCustomType, getData, getMentionType, getMentionedUserIds, getMentionedUsers, getMetaArrays, getParentMessageId, getPushNotificationDeliveryOption, getReplyToChannel, getRootMessageId, setAppleCriticalAlertOptions, setReplyToChannel
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
ScheduledUserMessageParams
ScheduledUserMessageParams(String message, int year, int month, int day, int hour, int min, String timezone)
ScheduledUserMessageParams constructor.The scheduled time must be set at least 6 minutes afterward from the current time.- Parameters:
message
- Message.year
- Year (YYYY), e.g.month
- Month (1~12).day
- Day (1~31).hour
- Hour (0~23).min
- Min (0~59).timezone
- Timezone.
-
-
Method Detail
-
setSchedule
void setSchedule(int year, int month, int day, int hour, int min, String timezone)
Sets schedule.The scheduled time must be set at least 6 minutes afterward from the current time. Otherwise, the scheduling will fail.
- Parameters:
year
- Year.month
- Month.day
- Day.hour
- Hour.min
- Min.timezone
- Timezone.
-
getScheduledDateTime
Date getScheduledDateTime()
Returns scheduled message date time.
-
getScheduledTimezone
String getScheduledTimezone()
Returns scheduled message timezone.
-
setAppleCriticalAlertOptions
@NonNull() ScheduledUserMessageParams setAppleCriticalAlertOptions(@NonNull() AppleCriticalAlertOptions appleCriticalAlertOptions)
set apple critical alert options for this instance.
- Parameters:
appleCriticalAlertOptions
- an instance of AppleCriticalAlertOptions
-
setPollId
@NonNull() ScheduledUserMessageParams setPollId(@Nullable() Long pollId)
Sets pollId for this user message. Explicitly pass null to remove poll from this message.
- Parameters:
pollId
- id of the poll to link
-
-
-
-