public class SmsCbCmasInfo extends Object implements Parcelable
SmsCbMessage
.
Supported values for each element are defined in TIA-1149-0-1 (CMAS over CDMA) and
3GPP TS 23.041 (for GSM/UMTS).
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static int |
CMAS_CATEGORY_CBRNE
CMAS alert category: Chem, bio, radiological, nuclear, high explosive threat or attack.
|
static int |
CMAS_CATEGORY_ENV
CMAS alert category: Pollution and other environmental.
|
static int |
CMAS_CATEGORY_FIRE
CMAS alert category: Fire suppression and rescue.
|
static int |
CMAS_CATEGORY_GEO
CMAS alert category: Geophysical including landslide.
|
static int |
CMAS_CATEGORY_HEALTH
CMAS alert category: Medical and public health.
|
static int |
CMAS_CATEGORY_INFRA
CMAS alert category: Utility, telecom, other non-transport infrastructure.
|
static int |
CMAS_CATEGORY_MET
CMAS alert category: Meteorological including flood.
|
static int |
CMAS_CATEGORY_OTHER
CMAS alert category: Other events.
|
static int |
CMAS_CATEGORY_RESCUE
CMAS alert category: Rescue and recovery.
|
static int |
CMAS_CATEGORY_SAFETY
CMAS alert category: General emergency and public safety.
|
static int |
CMAS_CATEGORY_SECURITY
CMAS alert category: Law enforcement, military, homeland/local/private security.
|
static int |
CMAS_CATEGORY_TRANSPORT
CMAS alert category: Public and private transportation.
|
static int |
CMAS_CATEGORY_UNKNOWN
CMAS alert category is unknown.
|
static int |
CMAS_CERTAINTY_LIKELY
CMAS certainty type: Likely (probability > ~50%).
|
static int |
CMAS_CERTAINTY_OBSERVED
CMAS certainty type: Determined to have occurred or to be ongoing.
|
static int |
CMAS_CERTAINTY_UNKNOWN
CMAS alert certainty is unknown.
|
static int |
CMAS_CLASS_CHILD_ABDUCTION_EMERGENCY
Child abduction emergency (AMBER Alert).
|
static int |
CMAS_CLASS_CMAS_EXERCISE
CMAS exercise.
|
static int |
CMAS_CLASS_EXTREME_THREAT
Extreme threat to life and property (Korean Public Alert System Class 1 message).
|
static int |
CMAS_CLASS_OPERATOR_DEFINED_USE
CMAS category for operator defined use.
|
static int |
CMAS_CLASS_PRESIDENTIAL_LEVEL_ALERT
Presidential-level alert (Korean Public Alert System Class 0 message).
|
static int |
CMAS_CLASS_REQUIRED_MONTHLY_TEST
CMAS test message.
|
static int |
CMAS_CLASS_SEVERE_THREAT
Severe threat to life and property (Korean Public Alert System Class 1 message).
|
static int |
CMAS_CLASS_UNKNOWN
CMAS category for warning types that are reserved for future extension.
|
static int |
CMAS_RESPONSE_TYPE_ASSESS
CMAS response type: Evaluate the information in this message (not for public warnings).
|
static int |
CMAS_RESPONSE_TYPE_AVOID
CMAS response type: Avoid hazard.
|
static int |
CMAS_RESPONSE_TYPE_EVACUATE
CMAS response type: Evacuate (Relocate).
|
static int |
CMAS_RESPONSE_TYPE_EXECUTE
CMAS response type: Execute a pre-planned activity.
|
static int |
CMAS_RESPONSE_TYPE_MONITOR
CMAS response type: Attend to information sources.
|
static int |
CMAS_RESPONSE_TYPE_NONE
CMAS response type: No action recommended.
|
static int |
CMAS_RESPONSE_TYPE_PREPARE
CMAS response type: Make preparations.
|
static int |
CMAS_RESPONSE_TYPE_SHELTER
CMAS response type: Take shelter in place.
|
static int |
CMAS_RESPONSE_TYPE_UNKNOWN
CMAS response type is unknown.
|
static int |
CMAS_SEVERITY_EXTREME
CMAS severity type: Extraordinary threat to life or property.
|
static int |
CMAS_SEVERITY_SEVERE
CMAS severity type: Significant threat to life or property.
|
static int |
CMAS_SEVERITY_UNKNOWN
CMAS alert severity is unknown.
|
static int |
CMAS_URGENCY_EXPECTED
CMAS urgency type: Responsive action should be taken within the next hour.
|
static int |
CMAS_URGENCY_IMMEDIATE
CMAS urgency type: Responsive action should be taken immediately.
|
static int |
CMAS_URGENCY_UNKNOWN
CMAS alert urgency is unknown.
|
static Parcelable.Creator<SmsCbCmasInfo> |
CREATOR
Creator for unparcelling objects.
|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
SmsCbCmasInfo(int messageClass,
int category,
int responseType,
int severity,
int urgency,
int certainty)
Create a new SmsCbCmasInfo 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 CMAS category, e.g.
|
int |
getCertainty()
Returns the CMAS certainty, e.g.
|
int |
getMessageClass()
Returns the CMAS message class, e.g.
|
int |
getResponseType()
Returns the CMAS response type, e.g.
|
int |
getSeverity()
Returns the CMAS severity, e.g.
|
int |
getUrgency()
Returns the CMAS urgency, e.g.
|
String |
toString()
Returns a string containing a concise, human-readable description of this
object.
|
void |
writeToParcel(Parcel dest,
int flags)
Flatten this object into a Parcel.
|
public static final int CMAS_CLASS_PRESIDENTIAL_LEVEL_ALERT
public static final int CMAS_CLASS_EXTREME_THREAT
public static final int CMAS_CLASS_SEVERE_THREAT
public static final int CMAS_CLASS_CHILD_ABDUCTION_EMERGENCY
public static final int CMAS_CLASS_REQUIRED_MONTHLY_TEST
public static final int CMAS_CLASS_CMAS_EXERCISE
public static final int CMAS_CLASS_OPERATOR_DEFINED_USE
public static final int CMAS_CLASS_UNKNOWN
public static final int CMAS_CATEGORY_GEO
public static final int CMAS_CATEGORY_MET
public static final int CMAS_CATEGORY_SAFETY
public static final int CMAS_CATEGORY_SECURITY
public static final int CMAS_CATEGORY_RESCUE
public static final int CMAS_CATEGORY_FIRE
public static final int CMAS_CATEGORY_HEALTH
public static final int CMAS_CATEGORY_ENV
public static final int CMAS_CATEGORY_TRANSPORT
public static final int CMAS_CATEGORY_INFRA
public static final int CMAS_CATEGORY_CBRNE
public static final int CMAS_CATEGORY_OTHER
public static final int CMAS_CATEGORY_UNKNOWN
public static final int CMAS_RESPONSE_TYPE_SHELTER
public static final int CMAS_RESPONSE_TYPE_EVACUATE
public static final int CMAS_RESPONSE_TYPE_PREPARE
public static final int CMAS_RESPONSE_TYPE_EXECUTE
public static final int CMAS_RESPONSE_TYPE_MONITOR
public static final int CMAS_RESPONSE_TYPE_AVOID
public static final int CMAS_RESPONSE_TYPE_ASSESS
public static final int CMAS_RESPONSE_TYPE_NONE
public static final int CMAS_RESPONSE_TYPE_UNKNOWN
public static final int CMAS_SEVERITY_EXTREME
public static final int CMAS_SEVERITY_SEVERE
public static final int CMAS_SEVERITY_UNKNOWN
public static final int CMAS_URGENCY_IMMEDIATE
public static final int CMAS_URGENCY_EXPECTED
public static final int CMAS_URGENCY_UNKNOWN
public static final int CMAS_CERTAINTY_OBSERVED
public static final int CMAS_CERTAINTY_LIKELY
public static final int CMAS_CERTAINTY_UNKNOWN
public static final Parcelable.Creator<SmsCbCmasInfo> CREATOR
public SmsCbCmasInfo(int messageClass, int category, int responseType, int severity, int urgency, int certainty)
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 getMessageClass()
CMAS_CLASS_PRESIDENTIAL_LEVEL_ALERT
.CMAS_CLASS
valuespublic int getCategory()
CMAS_CATEGORY_GEO
.CMAS_CATEGORY
valuespublic int getResponseType()
CMAS_RESPONSE_TYPE_SHELTER
.CMAS_RESPONSE_TYPE
valuespublic int getSeverity()
CMAS_SEVERITY_EXTREME
.CMAS_SEVERITY
valuespublic int getUrgency()
CMAS_URGENCY_IMMEDIATE
.CMAS_URGENCY
valuespublic int getCertainty()
CMAS_CERTAINTY_OBSERVED
.CMAS_CERTAINTY
valuespublic String toString()
Object
getClass().getName() + '@' + Integer.toHexString(hashCode())
See Writing a useful
toString
method
if you intend implementing your own toString
method.
public int describeContents()
describeContents
in interface Parcelable