public enum PostEmbedType extends Enum<PostEmbedType> implements HasCode<PostEmbedType>
| Modifier and Type | Class and Description |
|---|---|
static class |
PostEmbedType.PostEmbedTypeDeserializer |
| Enum Constant and Description |
|---|
IMAGE |
MESSAGE_ATTACHMENT |
OPENGRAPH |
| Modifier and Type | Method and Description |
|---|---|
String |
getCode() |
static PostEmbedType |
of(String type) |
static PostEmbedType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PostEmbedType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PostEmbedType IMAGE
public static final PostEmbedType MESSAGE_ATTACHMENT
public static final PostEmbedType OPENGRAPH
public static PostEmbedType[] values()
for (PostEmbedType c : PostEmbedType.values()) System.out.println(c);
public static PostEmbedType 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 nullpublic static PostEmbedType of(String type)
public String getCode()
getCode in interface HasCode<PostEmbedType>Copyright © 2019. All rights reserved.