public enum PostType extends Enum<PostType> implements HasCode<PostType>
Post| Enum Constant and Description |
|---|
ADD_REMOVE
Deprecated.
use
POST_ADD_TO_CHANNEL or
POST_REMOVE_FROM_CHANNEL instead. |
ADD_TO_CHANNEL |
CHANNEL_DELETED |
DEFAULT |
DISPLAYNAME_CHANGE |
EPHEMERAL |
HEADER_CHANGE |
JOIN_CHANNEL |
JOIN_LEAVE
Deprecated.
use
POST_JOIN_CHANNEL or POST_LEAVE_CHANNEL
instead. |
LEAVE_CHANNEL |
PURPOSE_CHANGE |
REMOVE_FROM_CHANNEL |
SLACK_ATTACHMENT |
SYSTEM_GENERIC |
| Modifier and Type | Method and Description |
|---|---|
static PostType |
of(String code) |
static PostType |
valueOf(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.
|
public static final PostType DEFAULT
public static final PostType SLACK_ATTACHMENT
public static final PostType SYSTEM_GENERIC
@Deprecated public static final PostType JOIN_LEAVE
POST_JOIN_CHANNEL or POST_LEAVE_CHANNEL
instead.public static final PostType JOIN_CHANNEL
public static final PostType LEAVE_CHANNEL
@Deprecated public static final PostType ADD_REMOVE
POST_ADD_TO_CHANNEL or
POST_REMOVE_FROM_CHANNEL instead.public static final PostType ADD_TO_CHANNEL
public static final PostType REMOVE_FROM_CHANNEL
public static final PostType HEADER_CHANGE
public static final PostType DISPLAYNAME_CHANGE
public static final PostType PURPOSE_CHANGE
public static final PostType CHANNEL_DELETED
public static final PostType EPHEMERAL
public static PostType[] values()
for (PostType c : PostType.values()) System.out.println(c);
public static PostType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2018. All rights reserved.