- All Implemented Interfaces:
Serializable
,Comparable<ChatEphemeralTimer>
,Constable
Enum representing the ChatEphemeralTimer period. Each constant is associated with a specific
duration period.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionChatEphemeralTimer with duration of 0 days.ChatEphemeralTimer with duration of 1 day.ChatEphemeralTimer with duration of 7 days.ChatEphemeralTimer with duration of 90 days. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ChatEphemeralTimer
of
(long value) Factory method for creating a ChatEphemeralTimer instance based on the specified value.static ChatEphemeralTimer
ofProtobuf
(int value) period()
Getter for the duration periodint
static ChatEphemeralTimer
Returns the enum constant of this class with the specified name.static ChatEphemeralTimer[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OFF
ChatEphemeralTimer with duration of 0 days. -
ONE_DAY
ChatEphemeralTimer with duration of 1 day. -
ONE_WEEK
ChatEphemeralTimer with duration of 7 days. -
THREE_MONTHS
ChatEphemeralTimer with duration of 90 days.
-
-
Field Details
-
period
Getter for the duration period
-
-
Constructor Details
-
ChatEphemeralTimer
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
ofProtobuf
-
of
Factory method for creating a ChatEphemeralTimer instance based on the specified value.- Parameters:
value
- the value to use for creating the ChatEphemeralTimer- Returns:
- the ChatEphemeralTimer instance that matches the specified value
-
periodSeconds
public int periodSeconds() -
period
Getter for the duration period
-