Package im.getsocial.sdk.communities
Enum PollStatus
- java.lang.Object
-
- java.lang.Enum<PollStatus>
-
- im.getsocial.sdk.communities.PollStatus
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PollStatus>
public enum PollStatus extends java.lang.Enum<PollStatus>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALL
All activities, with and without pollWITH_POLL
All activities with pollWITH_POLL_NOT_VOTED_BY_ME
Not voted by current userWITH_POLL_VOTED_BY_ME
Voted by current userWITHOUT_POLL
All activities without poll
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PollStatus
findByValue(int rawValue)
int
getValue()
static PollStatus
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PollStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALL
public static final PollStatus ALL
All activities, with and without poll
-
WITH_POLL
public static final PollStatus WITH_POLL
All activities with poll
-
WITH_POLL_VOTED_BY_ME
public static final PollStatus WITH_POLL_VOTED_BY_ME
Voted by current user
-
WITH_POLL_NOT_VOTED_BY_ME
public static final PollStatus WITH_POLL_NOT_VOTED_BY_ME
Not voted by current user
-
WITHOUT_POLL
public static final PollStatus WITHOUT_POLL
All activities without poll
-
-
Method Detail
-
values
public static PollStatus[] 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 (PollStatus c : PollStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PollStatus 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 PollStatus findByValue(int rawValue)
-
getValue
public int getValue()
-
-