public static enum SMSTPDU.Type extends Enum<SMSTPDU.Type>
Each enumeration value has an associated TP-MTI value, but MTI values are not unique. There are 8 defined types of message, plus some reserved combinations, but only 2 bits to fit TP-MTI into. To work out which message type applies, the context of the PDU (i.e. type of relay-layer message) must be known.
Reserved MTI/message combinations are represented by the SMS_RESERVED value.
Enum Constant and Description |
---|
SMS_COMMAND
RP-MO-DATA relay-layer message, SMS-COMMAND PDU, represented by
SMSCommand |
SMS_DELIVER
RP-MT-DATA relay-layer message, SMS-DELIVER PDU, represented by
SMSDeliver |
SMS_DELIVER_REPORT_ACK
RP-ACK relay-layer message, SMS-DELIVER-REPORT PDU, represented by
SMSDeliverReportAck |
SMS_DELIVER_REPORT_ERROR
RP-ERROR relay-layer message, SMS-DELIVER-REPORT PDU, represented by
SMSDeliverReportError |
SMS_RESERVED
Undefined/reserved MTI value for a given relay-layer message type, represented by
SMSReserved |
SMS_STATUS_REPORT
RP-MT-DATA relay-layer message, SMS-STATUS-REPORT PDU, represented by
SMSStatusReport |
SMS_SUBMIT
RP-MO-DATA relay-layer message, SMS-SUBMIT PDU, represented by
SMSSubmit |
SMS_SUBMIT_REPORT_ACK
RP-ACK relay-layer message, SMS-SUBMIT-REPORT PDU, represented by
SMSSubmitReportAck |
SMS_SUBMIT_REPORT_ERROR
RP-ERROR relay-layer message, SMS-SUBMIT-REPORT PDU, represented by
SMSSubmitReportError |
Modifier and Type | Method and Description |
---|---|
int |
getMTI()
Get the TP-MTI value for this message type.
|
static SMSTPDU.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SMSTPDU.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SMSTPDU.Type SMS_SUBMIT
SMSSubmit
public static final SMSTPDU.Type SMS_COMMAND
SMSCommand
public static final SMSTPDU.Type SMS_DELIVER
SMSDeliver
public static final SMSTPDU.Type SMS_STATUS_REPORT
SMSStatusReport
public static final SMSTPDU.Type SMS_DELIVER_REPORT_ACK
SMSDeliverReportAck
public static final SMSTPDU.Type SMS_SUBMIT_REPORT_ACK
SMSSubmitReportAck
public static final SMSTPDU.Type SMS_DELIVER_REPORT_ERROR
SMSDeliverReportError
public static final SMSTPDU.Type SMS_SUBMIT_REPORT_ERROR
SMSSubmitReportError
public static final SMSTPDU.Type SMS_RESERVED
SMSReserved
public static SMSTPDU.Type[] values()
for (SMSTPDU.Type c : SMSTPDU.Type.values()) System.out.println(c);
public static SMSTPDU.Type valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getMTI()