static enum Constants.ClientRoleType extends java.lang.Enum<Constants.ClientRoleType>
| Enum Constant and Description |
|---|
CLIENT_ROLE_AUDIENCE
2: Audience.
|
CLIENT_ROLE_BROADCASTER
1: Broadcaster.
|
| Modifier and Type | Field and Description |
|---|---|
private int |
value |
| Modifier and Type | Method and Description |
|---|---|
static Constants.ClientRoleType |
fromInt(int value)
Converts an integer value to its corresponding ClientRoleType enum constant.
|
int |
getValue()
Gets the integer value of the client role type.
|
static Constants.ClientRoleType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Constants.ClientRoleType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Constants.ClientRoleType CLIENT_ROLE_BROADCASTER
public static final Constants.ClientRoleType CLIENT_ROLE_AUDIENCE
public static Constants.ClientRoleType[] values()
for (Constants.ClientRoleType c : Constants.ClientRoleType.values()) System.out.println(c);
public static Constants.ClientRoleType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic int getValue()
public static Constants.ClientRoleType fromInt(int value)
value - The integer value.