public enum NexmoMediaState extends java.lang.Enum<NexmoMediaState>
Enum representing media state for NexmoMemberEvent
.
These states can be retrieved from NexmoMediaEvent.getMediaState()
.
Enum Constant and Description |
---|
DISABLE
Disable state.
|
ENABLE
Enable state.
|
UNKNOWN
Unknown state.
|
Modifier and Type | Method and Description |
---|---|
static NexmoMediaState |
fromCoreState(EMediaState mediaState)
Converts state
EMediaState to NexmoMediaActionType . |
static NexmoMediaState |
fromString(java.lang.String id) |
static NexmoMediaState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NexmoMediaState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NexmoMediaState ENABLE
public static final NexmoMediaState DISABLE
public static final NexmoMediaState UNKNOWN
public static NexmoMediaState[] values()
for (NexmoMediaState c : NexmoMediaState.values()) System.out.println(c);
public static NexmoMediaState 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 static NexmoMediaState fromString(java.lang.String id)
public static NexmoMediaState fromCoreState(EMediaState mediaState)
EMediaState
to NexmoMediaActionType
.mediaState
- EMediaState
to be converted.NexmoMediaState
.