SMSLib 3.5.3

org.smslib
Enum USSDSessionStatus

java.lang.Object
  extended by java.lang.Enum<USSDSessionStatus>
      extended by org.smslib.USSDSessionStatus
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<USSDSessionStatus>

public enum USSDSessionStatus
extends java.lang.Enum<USSDSessionStatus>

Enum representing the status of a GSM Unstructured Supplemental Service Data (USSD) session.


Enum Constant Summary
FURTHER_ACTION_REQUIRED
          Further user action required (network initiated USSD-Request, or further information needed after mobile initiated operation
NETWORK_TIMEOUT
          Network time out
NO_FURTHER_ACTION_REQUIRED
          No further user action required (network initiated USSD-Notify, or no further information needed after mobile initiated operation)
OPERATION_NOT_SUPPORTED
          Operation not supported
OTHER_CLIENT_RESPONDED
          Other local client has responded
TERMINATED_BY_NETWORK
          USSD terminated by network
 
Method Summary
static USSDSessionStatus getByNumeric(int aNumeric)
           
 int getNumeric()
           
 java.lang.String toString()
           
static USSDSessionStatus valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static USSDSessionStatus[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NO_FURTHER_ACTION_REQUIRED

public static final USSDSessionStatus NO_FURTHER_ACTION_REQUIRED
No further user action required (network initiated USSD-Notify, or no further information needed after mobile initiated operation)


FURTHER_ACTION_REQUIRED

public static final USSDSessionStatus FURTHER_ACTION_REQUIRED
Further user action required (network initiated USSD-Request, or further information needed after mobile initiated operation


TERMINATED_BY_NETWORK

public static final USSDSessionStatus TERMINATED_BY_NETWORK
USSD terminated by network


OTHER_CLIENT_RESPONDED

public static final USSDSessionStatus OTHER_CLIENT_RESPONDED
Other local client has responded


OPERATION_NOT_SUPPORTED

public static final USSDSessionStatus OPERATION_NOT_SUPPORTED
Operation not supported


NETWORK_TIMEOUT

public static final USSDSessionStatus NETWORK_TIMEOUT
Network time out

Method Detail

values

public static USSDSessionStatus[] 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 (USSDSessionStatus c : USSDSessionStatus.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static USSDSessionStatus 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 name
java.lang.NullPointerException - if the argument is null

getNumeric

public int getNumeric()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<USSDSessionStatus>

getByNumeric

public static USSDSessionStatus getByNumeric(int aNumeric)

SMSLib 3.5.3

(c) 2002-2011, http://smslib.org