Package com.clover.sdk.v1.app
Class AppNotification
- java.lang.Object
-
- com.clover.sdk.v1.app.AppNotification
-
- All Implemented Interfaces:
Parcelable
public class AppNotification extends Object implements Parcelable
Represents a notification sent to an app.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description String
appEvent
The app-specific event name.static Parcelable.Creator<AppNotification>
CREATOR
static int
MAX_PAYLOAD_LENGTH
The maximum number of charactersString
payload
Up to 4k bytes of data associated with the event.-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Constructor Description AppNotification(Intent intent)
AppNotification(String appEvent, String payload)
AppNotification(JSONObject json)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
describeContents()
boolean
equals(Object o)
int
hashCode()
JSONObject
toJson()
String
toString()
void
writeToParcel(Parcel parcel, int i)
-
-
-
Field Detail
-
MAX_PAYLOAD_LENGTH
public static final int MAX_PAYLOAD_LENGTH
The maximum number of characters- See Also:
- Constant Field Values
-
appEvent
public final String appEvent
The app-specific event name.
-
payload
public final String payload
Up to 4k bytes of data associated with the event.
-
CREATOR
public static final Parcelable.Creator<AppNotification> CREATOR
-
-
Constructor Detail
-
AppNotification
public AppNotification(JSONObject json) throws JSONException
- Throws:
JSONException
-
AppNotification
public AppNotification(Intent intent)
-
-
Method Detail
-
toJson
public JSONObject toJson()
-
describeContents
public int describeContents()
- Specified by:
describeContents
in interfaceParcelable
-
writeToParcel
public void writeToParcel(Parcel parcel, int i)
- Specified by:
writeToParcel
in interfaceParcelable
-
-