- java.lang.Object
-
- java.lang.Enum<PostType>
-
- net.bis5.mattermost.model.PostType
-
- All Implemented Interfaces:
Serializable,Comparable<PostType>,HasCode<PostType>
public enum PostType extends Enum<PostType> implements HasCode<PostType>
The type ofPost.- Author:
- Takayuki Maruyama
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADD_REMOVEDeprecated.useADD_TO_CHANNELorREMOVE_FROM_CHANNELinstead.ADD_TO_CHANNELADD_TO_TEAMAUTO_RESPONDERCHANGE_CHANNEL_PRIVACYCHANNEL_DELETEDCONVERT_CHANNELDEFAULTDISPLAYNAME_CHANGEEPHEMERALHEADER_CHANGEJOIN_CHANNELJOIN_LEAVEDeprecated.useJOIN_CHANNELorLEAVE_CHANNELinstead.JOIN_TEAMLEAVE_CHANNELLEAVE_TEAMMOVE_CHANNELPURPOSE_CHANGEREMOVE_FROM_CHANNELREMOVE_FROM_TEAMSLACK_ATTACHMENTSYSTEM_GENERIC
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCode()static PostTypeof(String code)static PostTypevalueOf(String name)Returns the enum constant of this type with the specified name.static PostType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEFAULT
public static final PostType DEFAULT
-
SLACK_ATTACHMENT
public static final PostType SLACK_ATTACHMENT
-
SYSTEM_GENERIC
public static final PostType SYSTEM_GENERIC
-
JOIN_LEAVE
@Deprecated public static final PostType JOIN_LEAVE
Deprecated.useJOIN_CHANNELorLEAVE_CHANNELinstead.This post type is not used currently.
-
JOIN_CHANNEL
public static final PostType JOIN_CHANNEL
-
LEAVE_CHANNEL
public static final PostType LEAVE_CHANNEL
-
ADD_REMOVE
@Deprecated public static final PostType ADD_REMOVE
Deprecated.useADD_TO_CHANNELorREMOVE_FROM_CHANNELinstead.This post type is not used currently.
-
ADD_TO_CHANNEL
public static final PostType ADD_TO_CHANNEL
-
REMOVE_FROM_CHANNEL
public static final PostType REMOVE_FROM_CHANNEL
-
HEADER_CHANGE
public static final PostType HEADER_CHANGE
-
DISPLAYNAME_CHANGE
public static final PostType DISPLAYNAME_CHANGE
-
PURPOSE_CHANGE
public static final PostType PURPOSE_CHANGE
-
CHANNEL_DELETED
public static final PostType CHANNEL_DELETED
-
EPHEMERAL
public static final PostType EPHEMERAL
-
JOIN_TEAM
public static final PostType JOIN_TEAM
-
LEAVE_TEAM
public static final PostType LEAVE_TEAM
-
AUTO_RESPONDER
public static final PostType AUTO_RESPONDER
-
MOVE_CHANNEL
public static final PostType MOVE_CHANNEL
-
ADD_TO_TEAM
public static final PostType ADD_TO_TEAM
-
REMOVE_FROM_TEAM
public static final PostType REMOVE_FROM_TEAM
-
CONVERT_CHANNEL
public static final PostType CONVERT_CHANNEL
-
CHANGE_CHANNEL_PRIVACY
public static final PostType CHANGE_CHANNEL_PRIVACY
-
-
Method Detail
-
values
public static PostType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PostType c : PostType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PostType valueOf(String name)
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
-
-