FileDocCategorySizeDatePackage
CdmaSmsBroadcastConfigInfo.javaAPI DocAndroid 5.1 API2546Thu Mar 12 22:22:54 GMT 2015com.android.internal.telephony.cdma

CdmaSmsBroadcastConfigInfo

public class CdmaSmsBroadcastConfigInfo extends Object
CdmaSmsBroadcastConfigInfo defines one configuration of Cdma Broadcast Message to be received by the ME serviceCategory defines a Broadcast message identifier whose value is 0x0000 - 0xFFFF as defined in C.R1001G 9.3.1 and 9.3.2. All other values can be treated as empty message ID. language defines a language code of Broadcast Message whose value is 0x00 - 0x07 as defined in C.R1001G 9.2. All other values can be treated as empty language code. selected false means message types specified in serviceCategory are not accepted, while true means accepted.

Fields Summary
private int
mFromServiceCategory
private int
mToServiceCategory
private int
mLanguage
private boolean
mSelected
Constructors Summary
public CdmaSmsBroadcastConfigInfo(int fromServiceCategory, int toServiceCategory, int language, boolean selected)
Initialize the object from rssi and cid.

        mFromServiceCategory = fromServiceCategory;
        mToServiceCategory = toServiceCategory;
        mLanguage = language;
        mSelected = selected;
    
Methods Summary
public intgetFromServiceCategory()

return
the mFromServiceCategory

        return mFromServiceCategory;
    
public intgetLanguage()

return
the mLanguage

        return mLanguage;
    
public intgetToServiceCategory()

return
the mToServiceCategory

        return mToServiceCategory;
    
public booleanisSelected()

return
the selected

        return mSelected;
    
public java.lang.StringtoString()

        return "CdmaSmsBroadcastConfigInfo: Id [" +
            mFromServiceCategory + ", " + mToServiceCategory + "] " +
            (isSelected() ? "ENABLED" : "DISABLED");