Package com.kii.cloud.storage
Class GCMMessage
- java.lang.Object
-
- com.kii.cloud.storage.GCMMessage
-
public class GCMMessage extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GCMMessage.Builder
Builder of GCMMessage.static class
GCMMessage.GCMData
Represent data to be delivered to GCM device.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GCMMessage.Builder
builder()
Instantiate GCMMessage builder.org.json.JSONObject
toJSON()
Get JSONObjcet representation of this message.java.lang.String
toString()
-
-
-
Method Detail
-
toString
@NonNull public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
- Returns:
toJSON()
.toString()
-
toJSON
@NonNull public org.json.JSONObject toJSON()
Get JSONObjcet representation of this message.- Returns:
- JSONObject represent this message.
-
builder
@NonNull public static GCMMessage.Builder builder()
Instantiate GCMMessage builder. GCM Delivery is enabled by default.- Returns:
- builder of the message.
-
-