Package im.getsocial.sdk.communities
Enum CommunitiesEntityType
- java.lang.Object
-
- java.lang.Enum<CommunitiesEntityType>
-
- im.getsocial.sdk.communities.CommunitiesEntityType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CommunitiesEntityType>
public enum CommunitiesEntityType extends java.lang.Enum<CommunitiesEntityType>
Type of community.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CommunitiesEntityType
findByValue(int value)
int
getValue()
static CommunitiesEntityType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CommunitiesEntityType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final CommunitiesEntityType UNKNOWN
Unknown community type. Probably it's something not supported by current SDK version.
-
APP
public static final CommunitiesEntityType APP
Application community. Announcements could be posted for entire application.
-
TOPIC
public static final CommunitiesEntityType TOPIC
Topic.
-
GROUP
public static final CommunitiesEntityType GROUP
Group
-
USER
public static final CommunitiesEntityType USER
User.
-
ACTIVITY
public static final CommunitiesEntityType ACTIVITY
Activity comments.
-
COMMENT
public static final CommunitiesEntityType COMMENT
Comment
-
HASHTAG
public static final CommunitiesEntityType HASHTAG
HASHTAG
-
LABEL
public static final CommunitiesEntityType LABEL
LABEL
-
-
Method Detail
-
values
public static CommunitiesEntityType[] 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 (CommunitiesEntityType c : CommunitiesEntityType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CommunitiesEntityType valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
findByValue
public static CommunitiesEntityType findByValue(int value)
-
getValue
public int getValue()
-
-