public final class PushMessage
extends java.lang.Object
implements android.os.Parcelable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<PushMessage> |
CREATOR
The creator to generate an instance of OPMessage.
|
Modifier and Type | Method and Description |
---|---|
int |
describeContents()
This method returns 0 as the parcel bitmask.
|
java.lang.String |
getBody()
This method returns the body text of the notification.
|
java.lang.String |
getFrom()
This method returns the Sender ID of the notification.
|
java.util.Map<java.lang.String,java.lang.String> |
getPayloadParameters()
This method returns additional payload parameters in form of a key-value map.
|
java.lang.String |
getTitle()
This method returns the title of the notification.
|
java.lang.String |
getTrackingUrl()
This method returns the tracking URL to be called when the user clicks the notification.
|
java.lang.String |
toString() |
void |
writeToParcel(android.os.Parcel dest,
int flags)
This method writes all values into a Parcel.
|
public static final android.os.Parcelable.Creator<PushMessage> CREATOR
public int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable
dest
- The Parcel in which the object should be written.flags
- Ignored by this method.public java.lang.String getBody()
public java.lang.String getTitle()
public java.lang.String getFrom()
public java.lang.String getTrackingUrl()
This method returns the tracking URL to be called when the user clicks the notification. This method may
be null
if no tracking URL shall be called.
Use EpiSdk.trackOpen(Context, PushMessage)
to call the tracking URL.
public java.util.Map<java.lang.String,java.lang.String> getPayloadParameters()
public java.lang.String toString()
toString
in class java.lang.Object