SMSLib 3.5.3

org.smslib
Enum Message.MessageTypes

java.lang.Object
  extended by java.lang.Enum<Message.MessageTypes>
      extended by org.smslib.Message.MessageTypes
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Message.MessageTypes>
Enclosing class:
Message

public static enum Message.MessageTypes
extends java.lang.Enum<Message.MessageTypes>

Enumeration representing the different types of messages.


Enum Constant Summary
INBOUND
          Inbound message.
OUTBOUND
          Outbound message.
STATUSREPORT
          Status (delivery) report message
UNKNOWN
          Unknown message.
WAPSI
          Outbound WAP SI message.
 
Method Summary
static Message.MessageTypes valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Message.MessageTypes[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

INBOUND

public static final Message.MessageTypes INBOUND
Inbound message.


OUTBOUND

public static final Message.MessageTypes OUTBOUND
Outbound message.


STATUSREPORT

public static final Message.MessageTypes STATUSREPORT
Status (delivery) report message


WAPSI

public static final Message.MessageTypes WAPSI
Outbound WAP SI message.


UNKNOWN

public static final Message.MessageTypes UNKNOWN
Unknown message.

Method Detail

values

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

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

valueOf

public static Message.MessageTypes 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

SMSLib 3.5.3

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