public static enum NexmoConnectionListener.ConnectionStatus extends java.lang.Enum<NexmoConnectionListener.ConnectionStatus>
NexmoConnectionListener.| Enum Constant and Description |
|---|
CONNECTED
Connected to the server.
|
CONNECTING
Connecting to the server.
|
DISCONNECTED
Disconnected from the server.
|
UNKNOWN
Unknown status.
|
| Modifier and Type | Method and Description |
|---|---|
static NexmoConnectionListener.ConnectionStatus |
fromCoreConnectionStatus(ILoginStateListener.eConnectionStatus coreStatus)
Converts
ILoginStateListener.eConnectionStatus to NexmoConnectionListener |
static NexmoConnectionListener.ConnectionStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NexmoConnectionListener.ConnectionStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NexmoConnectionListener.ConnectionStatus DISCONNECTED
public static final NexmoConnectionListener.ConnectionStatus CONNECTING
public static final NexmoConnectionListener.ConnectionStatus CONNECTED
public static final NexmoConnectionListener.ConnectionStatus UNKNOWN
public static NexmoConnectionListener.ConnectionStatus[] values()
for (NexmoConnectionListener.ConnectionStatus c : NexmoConnectionListener.ConnectionStatus.values()) System.out.println(c);
public static NexmoConnectionListener.ConnectionStatus 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 NexmoConnectionListener.ConnectionStatus fromCoreConnectionStatus(ILoginStateListener.eConnectionStatus coreStatus)
ILoginStateListener.eConnectionStatus to NexmoConnectionListenercoreStatus - status to be converted.