com.kii.cloud.storage
Class GCMMessage

java.lang.Object
  extended by com.kii.cloud.storage.GCMMessage

public class GCMMessage
extends java.lang.Object


Nested Class Summary
static class GCMMessage.Builder
          Builder of GCMMessage.
 
Method Summary
static GCMMessage.Builder builder()
          Instantiate GCMMessage builder.
 JSONObject toJSON()
          Get JSONObjcet representation of this message.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

builder

public static GCMMessage.Builder builder()
Instantiate GCMMessage builder. GCM Delivery is enabled by default.

Returns:
builder of the message.

toJSON

public JSONObject toJSON()
Get JSONObjcet representation of this message.

Returns:
JSONObject represent this message.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
toJSON().toString()