public final class BearerData extends Object
Modifier and Type | Class and Description |
---|---|
static class |
BearerData.TimeStamp
6-byte-field, see 3GPP2 C.S0015-B, v2, 4.5.4
|
Modifier and Type | Field and Description |
---|---|
int |
alert |
static int |
ALERT_DEFAULT
Supported alert priority modes for CDMA SMS messages
(See 3GPP2 C.S0015-B, v2.0, table 4.5.13-1)
|
static int |
ALERT_HIGH_PRIO |
static int |
ALERT_LOW_PRIO |
static int |
ALERT_MEDIUM_PRIO |
boolean |
alertIndicatorSet |
CdmaSmsAddress |
callbackNumber
4-bit or 8-bit value that indicates the number to be dialed in reply to a
received SMS message.
|
SmsCbCmasInfo |
cmasWarningInfo
CMAS warning notification information.
|
BearerData.TimeStamp |
deferredDeliveryTimeAbsolute |
int |
deferredDeliveryTimeRelative |
boolean |
deferredDeliveryTimeRelativeSet |
boolean |
deliveryAckReq |
int |
depositIndex
The Message Deposit Index subparameter is assigned by the
message center as a unique index to the contents of the User
Data subparameter in each message sent to a particular mobile
station.
|
static int |
DISPLAY_MODE_DEFAULT |
static int |
DISPLAY_MODE_IMMEDIATE
Supported display modes for CDMA SMS messages.
|
static int |
DISPLAY_MODE_USER |
int |
displayMode |
boolean |
displayModeSet |
static int |
ERROR_NONE
SMS Message Status Codes.
|
static int |
ERROR_PERMANENT |
static int |
ERROR_TEMPORARY |
static int |
ERROR_UNDEFINED |
int |
errorClass |
boolean |
hasUserDataHeader
1-bit value that indicates whether a User Data Header (UDH) is present.
|
int |
language |
static int |
LANGUAGE_CHINESE |
static int |
LANGUAGE_ENGLISH |
static int |
LANGUAGE_FRENCH |
static int |
LANGUAGE_HEBREW |
static int |
LANGUAGE_JAPANESE |
static int |
LANGUAGE_KOREAN |
static int |
LANGUAGE_SPANISH |
static int |
LANGUAGE_UNKNOWN
Language Indicator values.
|
boolean |
languageIndicatorSet |
static int |
MESSAGE_TYPE_CANCELLATION |
static int |
MESSAGE_TYPE_DELIVER
Supported message types for CDMA SMS messages
(See 3GPP2 C.S0015-B, v2.0, table 4.5.1-1)
|
static int |
MESSAGE_TYPE_DELIVER_REPORT |
static int |
MESSAGE_TYPE_DELIVERY_ACK |
static int |
MESSAGE_TYPE_READ_ACK |
static int |
MESSAGE_TYPE_SUBMIT |
static int |
MESSAGE_TYPE_SUBMIT_REPORT |
static int |
MESSAGE_TYPE_USER_ACK |
int |
messageId
16-bit value indicating the message ID, which increments modulo 65536.
|
int |
messageStatus |
boolean |
messageStatusSet |
int |
messageType |
BearerData.TimeStamp |
msgCenterTimeStamp |
int |
numberOfMessages
The Number of Messages subparameter (8-bit value) is a decimal
number in the 0 to 99 range representing the number of messages
stored at the Voice Mail System.
|
int |
priority |
static int |
PRIORITY_EMERGENCY |
static int |
PRIORITY_INTERACTIVE |
static int |
PRIORITY_NORMAL
Supported priority modes for CDMA SMS messages
(See 3GPP2 C.S0015-B, v2.0, table 4.5.9-1)
|
static int |
PRIORITY_URGENT |
boolean |
priorityIndicatorSet |
int |
privacy |
static int |
PRIVACY_CONFIDENTIAL |
static int |
PRIVACY_NOT_RESTRICTED
Supported privacy modes for CDMA SMS messages
(See 3GPP2 C.S0015-B, v2.0, table 4.5.10-1)
|
static int |
PRIVACY_RESTRICTED |
static int |
PRIVACY_SECRET |
boolean |
privacyIndicatorSet |
boolean |
readAckReq |
static int |
RELATIVE_TIME_DAYS_LIMIT |
static int |
RELATIVE_TIME_HOURS_LIMIT |
static int |
RELATIVE_TIME_INDEFINITE |
static int |
RELATIVE_TIME_MINS_LIMIT
Relative time is specified as one byte, the value of which
falls into a series of ranges, as specified below.
|
static int |
RELATIVE_TIME_MOBILE_INACTIVE |
static int |
RELATIVE_TIME_NOW |
static int |
RELATIVE_TIME_RESERVED |
static int |
RELATIVE_TIME_WEEKS_LIMIT |
boolean |
reportReq |
ArrayList<CdmaSmsCbProgramData> |
serviceCategoryProgramData
The Service Category Program Data subparameter is used to enable and disable
SMS broadcast service categories to display.
|
ArrayList<CdmaSmsCbProgramResults> |
serviceCategoryProgramResults
The Service Category Program Results subparameter informs the message center
of the results of a Service Category Program Data request.
|
static int |
STATUS_ACCEPTED |
static int |
STATUS_BLOCKED_DESTINATION |
static int |
STATUS_CANCEL_FAILED |
static int |
STATUS_CANCELLED |
static int |
STATUS_DELIVERED |
static int |
STATUS_DEPOSITED_TO_INTERNET |
static int |
STATUS_DUPLICATE_MESSAGE |
static int |
STATUS_INVALID_DESTINATION |
static int |
STATUS_MESSAGE_EXPIRED |
static int |
STATUS_NETWORK_CONGESTION |
static int |
STATUS_NETWORK_ERROR |
static int |
STATUS_TEXT_TOO_LONG |
static int |
STATUS_UNDEFINED |
static int |
STATUS_UNKNOWN_ERROR |
boolean |
userAckReq
The Reply Option subparameter contains 1-bit values which
indicate whether SMS acknowledgment is requested or not.
|
UserData |
userData
provides the information for the user data
(e.g. padding bits, user data, user data header, etc)
(See 3GPP2 C.S.0015-B, v2, 4.5.2)
|
int |
userResponseCode |
boolean |
userResponseCodeSet
The User Response Code subparameter is used in the SMS User
Acknowledgment Message to respond to previously received short
messages.
|
BearerData.TimeStamp |
validityPeriodAbsolute |
int |
validityPeriodRelative |
boolean |
validityPeriodRelativeSet |
Constructor and Description |
---|
BearerData() |
Modifier and Type | Method and Description |
---|---|
static GsmAlphabet.TextEncodingDetails |
calcTextEncodingDetails(CharSequence msg,
boolean force7BitEncoding,
boolean isEntireMsg)
Calculate the message text encoding length, fragmentation, and other details.
|
static BearerData |
decode(byte[] smsData)
Create BearerData object from serialized representation.
|
static BearerData |
decode(byte[] smsData,
int serviceCategory)
Create BearerData object from serialized representation.
|
static byte[] |
encode(BearerData bData)
Create serialized representation for BearerData object.
|
String |
getLanguage()
Returns the language indicator as a two-character ISO 639 string.
|
String |
toString()
Returns a string representation of the object.
|
public static final int MESSAGE_TYPE_DELIVER
public static final int MESSAGE_TYPE_SUBMIT
public static final int MESSAGE_TYPE_CANCELLATION
public static final int MESSAGE_TYPE_DELIVERY_ACK
public static final int MESSAGE_TYPE_USER_ACK
public static final int MESSAGE_TYPE_READ_ACK
public static final int MESSAGE_TYPE_DELIVER_REPORT
public static final int MESSAGE_TYPE_SUBMIT_REPORT
public int messageType
public int messageId
public static final int PRIORITY_NORMAL
public static final int PRIORITY_INTERACTIVE
public static final int PRIORITY_URGENT
public static final int PRIORITY_EMERGENCY
public boolean priorityIndicatorSet
public int priority
public static final int PRIVACY_NOT_RESTRICTED
public static final int PRIVACY_RESTRICTED
public static final int PRIVACY_CONFIDENTIAL
public static final int PRIVACY_SECRET
public boolean privacyIndicatorSet
public int privacy
public static final int ALERT_DEFAULT
public static final int ALERT_LOW_PRIO
public static final int ALERT_MEDIUM_PRIO
public static final int ALERT_HIGH_PRIO
public boolean alertIndicatorSet
public int alert
public static final int DISPLAY_MODE_IMMEDIATE
public static final int DISPLAY_MODE_DEFAULT
public static final int DISPLAY_MODE_USER
public boolean displayModeSet
public int displayMode
public static final int LANGUAGE_UNKNOWN
public static final int LANGUAGE_ENGLISH
public static final int LANGUAGE_FRENCH
public static final int LANGUAGE_SPANISH
public static final int LANGUAGE_JAPANESE
public static final int LANGUAGE_KOREAN
public static final int LANGUAGE_CHINESE
public static final int LANGUAGE_HEBREW
public boolean languageIndicatorSet
public int language
public static final int ERROR_NONE
public static final int STATUS_ACCEPTED
public static final int STATUS_DEPOSITED_TO_INTERNET
public static final int STATUS_DELIVERED
public static final int STATUS_CANCELLED
public static final int ERROR_TEMPORARY
public static final int STATUS_NETWORK_CONGESTION
public static final int STATUS_NETWORK_ERROR
public static final int STATUS_UNKNOWN_ERROR
public static final int ERROR_PERMANENT
public static final int STATUS_CANCEL_FAILED
public static final int STATUS_BLOCKED_DESTINATION
public static final int STATUS_TEXT_TOO_LONG
public static final int STATUS_DUPLICATE_MESSAGE
public static final int STATUS_INVALID_DESTINATION
public static final int STATUS_MESSAGE_EXPIRED
public static final int ERROR_UNDEFINED
public static final int STATUS_UNDEFINED
public boolean messageStatusSet
public int errorClass
public int messageStatus
public boolean hasUserDataHeader
public UserData userData
public boolean userResponseCodeSet
public int userResponseCode
public BearerData.TimeStamp msgCenterTimeStamp
public BearerData.TimeStamp validityPeriodAbsolute
public BearerData.TimeStamp deferredDeliveryTimeAbsolute
public static final int RELATIVE_TIME_MINS_LIMIT
public static final int RELATIVE_TIME_HOURS_LIMIT
public static final int RELATIVE_TIME_DAYS_LIMIT
public static final int RELATIVE_TIME_WEEKS_LIMIT
public static final int RELATIVE_TIME_INDEFINITE
public static final int RELATIVE_TIME_NOW
public static final int RELATIVE_TIME_MOBILE_INACTIVE
public static final int RELATIVE_TIME_RESERVED
public boolean validityPeriodRelativeSet
public int validityPeriodRelative
public boolean deferredDeliveryTimeRelativeSet
public int deferredDeliveryTimeRelative
public boolean userAckReq
public boolean deliveryAckReq
public boolean readAckReq
public boolean reportReq
public int numberOfMessages
public int depositIndex
public CdmaSmsAddress callbackNumber
public SmsCbCmasInfo cmasWarningInfo
decodeCmasUserData(BearerData, int)
public ArrayList<CdmaSmsCbProgramData> serviceCategoryProgramData
CdmaSmsCbProgramData
objects containing the
operation(s) to perform.public ArrayList<CdmaSmsCbProgramResults> serviceCategoryProgramResults
public String getLanguage()
public String toString()
Object
toString
method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString
method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@
', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
public static GsmAlphabet.TextEncodingDetails calcTextEncodingDetails(CharSequence msg, boolean force7BitEncoding, boolean isEntireMsg)
msg
- message textforce7BitEncoding
- ignore (but still count) illegal characters if trueisEntireMsg
- indicates if this is entire msg or a segment in multipart msgpublic static byte[] encode(BearerData bData)
bData
- an instance of BearerData.public static BearerData decode(byte[] smsData)
smsData
- byte array of raw encoded SMS bearer data.public static BearerData decode(byte[] smsData, int serviceCategory)
smsData
- byte array of raw encoded SMS bearer data.serviceCategory
- the envelope service category (for CMAS alert handling)