public class CdmaSmsCbProgramResults extends Object implements Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<CdmaSmsCbProgramResults> |
CREATOR
Creator for unparcelling objects.
|
static int |
RESULT_CATEGORY_ALREADY_ADDED
Program result: category already opted in.
|
static int |
RESULT_CATEGORY_ALREADY_DELETED
Program result: category already opted in.
|
static int |
RESULT_CATEGORY_LIMIT_EXCEEDED
Program result: limit exceeded.
|
static int |
RESULT_INVALID_ALERT_OPTION
Program result: invalid ALERT_OPTION.
|
static int |
RESULT_INVALID_CATEGORY_NAME
Program result: invalid service category name.
|
static int |
RESULT_INVALID_MAX_MESSAGES
Program result: invalid MAX_MESSAGES.
|
static int |
RESULT_MEMORY_LIMIT_EXCEEDED
Program result: memory limit exceeded.
|
static int |
RESULT_SUCCESS
Program result: success.
|
static int |
RESULT_UNSPECIFIED_FAILURE
Program result: unspecified programming failure.
|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_ELIDE_DUPLICATES, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
CdmaSmsCbProgramResults(int category,
int language,
int categoryResult)
Create a new CdmaSmsCbProgramResults object with the specified values.
|
Modifier and Type | Method and Description |
---|---|
int |
describeContents()
Describe the kinds of special objects contained in the marshalled representation.
|
int |
getCategory()
Returns the CDMA service category to modify.
|
int |
getCategoryResult()
Returns the result of service programming for this category
|
int |
getLanguage()
Returns the CDMA language code for this service category.
|
String |
toString()
Returns a string representation of the object.
|
void |
writeToParcel(Parcel dest,
int flags)
Flatten this object into a Parcel.
|
public static final int RESULT_SUCCESS
public static final int RESULT_MEMORY_LIMIT_EXCEEDED
public static final int RESULT_CATEGORY_LIMIT_EXCEEDED
public static final int RESULT_CATEGORY_ALREADY_ADDED
public static final int RESULT_CATEGORY_ALREADY_DELETED
public static final int RESULT_INVALID_MAX_MESSAGES
public static final int RESULT_INVALID_ALERT_OPTION
public static final int RESULT_INVALID_CATEGORY_NAME
public static final int RESULT_UNSPECIFIED_FAILURE
public static final Parcelable.Creator<CdmaSmsCbProgramResults> CREATOR
public CdmaSmsCbProgramResults(int category, int language, int categoryResult)
public void writeToParcel(Parcel dest, int flags)
writeToParcel
in interface Parcelable
dest
- The Parcel in which the object should be written.flags
- Additional flags about how the object should be written (ignored).public int getCategory()
public int getLanguage()
public int getCategoryResult()
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 int describeContents()
describeContents
in interface Parcelable
Parcelable.CONTENTS_FILE_DESCRIPTOR