FileDocCategorySizeDatePackage
CdmaSmsCbProgramResults.javaAPI DocAndroid 5.1 API4700Thu Mar 12 22:22:42 GMT 2015android.telephony.cdma

CdmaSmsCbProgramResults

public class CdmaSmsCbProgramResults extends Object implements android.os.Parcelable
CDMA Service Category Program Results from SCPT teleservice SMS. {@hide}

Fields Summary
public static final int
RESULT_SUCCESS
Program result: success.
public static final int
RESULT_MEMORY_LIMIT_EXCEEDED
Program result: memory limit exceeded.
public static final int
RESULT_CATEGORY_LIMIT_EXCEEDED
Program result: limit exceeded.
public static final int
RESULT_CATEGORY_ALREADY_ADDED
Program result: category already opted in.
public static final int
RESULT_CATEGORY_ALREADY_DELETED
Program result: category already opted in.
public static final int
RESULT_INVALID_MAX_MESSAGES
Program result: invalid MAX_MESSAGES.
public static final int
RESULT_INVALID_ALERT_OPTION
Program result: invalid ALERT_OPTION.
public static final int
RESULT_INVALID_CATEGORY_NAME
Program result: invalid service category name.
public static final int
RESULT_UNSPECIFIED_FAILURE
Program result: unspecified programming failure.
private final int
mCategory
Service category to modify.
private final int
mLanguage
Language used for service category name (defined in BearerData.LANGUAGE_*).
private final int
mCategoryResult
Result of service category programming for this category.
public static final Parcelable.Creator
CREATOR
Creator for unparcelling objects.
Constructors Summary
public CdmaSmsCbProgramResults(int category, int language, int categoryResult)
Create a new CdmaSmsCbProgramResults object with the specified values.


              
           
        mCategory = category;
        mLanguage = language;
        mCategoryResult = categoryResult;
    
CdmaSmsCbProgramResults(android.os.Parcel in)
Create a new CdmaSmsCbProgramResults object from a Parcel.

        mCategory = in.readInt();
        mLanguage = in.readInt();
        mCategoryResult = in.readInt();
    
Methods Summary
public intdescribeContents()
Describe the kinds of special objects contained in the marshalled representation.

return
a bitmask indicating this Parcelable contains no special objects

        return 0;
    
public intgetCategory()
Returns the CDMA service category to modify.

return
a 16-bit CDMA service category value

        return mCategory;
    
public intgetCategoryResult()
Returns the result of service programming for this category

return
the result of service programming for this category

        return mCategoryResult;
    
public intgetLanguage()
Returns the CDMA language code for this service category.

return
one of the language values defined in BearerData.LANGUAGE_*

        return mLanguage;
    
public java.lang.StringtoString()

        return "CdmaSmsCbProgramResults{category=" + mCategory
                + ", language=" + mLanguage + ", result=" + mCategoryResult + '}";
    
public voidwriteToParcel(android.os.Parcel dest, int flags)
Flatten this object into a Parcel.

param
dest The Parcel in which the object should be written.
param
flags Additional flags about how the object should be written (ignored).

        dest.writeInt(mCategory);
        dest.writeInt(mLanguage);
        dest.writeInt(mCategoryResult);