Enum MessageFlag
- All Implemented Interfaces:
Serializable
,Comparable<MessageFlag>
Defines a flag associated with a message.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionWhether the message is collapsed.Whether the message contains one of the user alert words.Messages that are part of the users history.Whether the user was mentioned by this message.Whether the message has been read by the user.Whether the message has been starred.Whether this message contained either a stream wildcard mention.Whether this message contained a topic wildcard mention.Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic MessageFlag
fromString
(String flag) toString()
static MessageFlag
Returns the enum constant of this type with the specified name.static MessageFlag[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
COLLAPSED
Whether the message is collapsed. -
HAS_ALERT_WORD
Whether the message contains one of the user alert words. -
HISTORICAL
Messages that are part of the users history. -
MENTIONED
Whether the user was mentioned by this message. -
READ
Whether the message has been read by the user. -
STARRED
Whether the message has been starred. -
STREAM_WILDCARD_MENTIONED
Whether this message contained either a stream wildcard mention. -
TOPIC_WILDCARD_MENTIONED
Whether this message contained a topic wildcard mention. -
WILDCARD_MENTIONED
Deprecated.useMessageFlag.STREAM_WILDCARD_MENTIONED
orMessageFlag.TOPIC_WILDCARD_MENTIONED
.Whether the message contained a wildcard mention such as @all.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
fromString
-
toString
- Overrides:
toString
in classEnum<MessageFlag>
-
MessageFlag.STREAM_WILDCARD_MENTIONED
orMessageFlag.TOPIC_WILDCARD_MENTIONED
.