cn.jpush.api.push.model
类 PushPayload

java.lang.Object
  继承者 cn.jpush.api.push.model.PushPayload
所有已实现的接口:
PushModel

public class PushPayload
extends Object
implements PushModel

The object you should build for sending a push. Basically start with newBuilder() method to build a PushPayload object. alertAll() is a shortcut for quickly build payload of alert to all platform and all audience; mesageAll() is a shortcut for quickly build payload of message to all platform and all audience.


嵌套类摘要
static class PushPayload.Builder
           
 
方法摘要
static PushPayload alertAll(String alert)
          The shortcut of building a simple alert notification object to all platforms and all audiences
static PushPayload fromJSON(String payloadString)
           
 int getSendno()
           
 boolean isGlobalExceedLength()
           
 boolean isIosExceedLength()
           
static PushPayload messageAll(String msgContent)
          The shortcut of building a simple message object to all platforms and all audiences
static PushPayload.Builder newBuilder()
          The entrance for building a PushPayload object.
 void resetOptionsApnsProduction(boolean apnsProduction)
           
 void resetOptionsTimeToLive(long timeToLive)
           
 com.google.gson.JsonElement toJSON()
           
 String toString()
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

方法详细信息

newBuilder

public static PushPayload.Builder newBuilder()
The entrance for building a PushPayload object.


alertAll

public static PushPayload alertAll(String alert)
The shortcut of building a simple alert notification object to all platforms and all audiences


messageAll

public static PushPayload messageAll(String msgContent)
The shortcut of building a simple message object to all platforms and all audiences


fromJSON

public static PushPayload fromJSON(String payloadString)

resetOptionsApnsProduction

public void resetOptionsApnsProduction(boolean apnsProduction)

resetOptionsTimeToLive

public void resetOptionsTimeToLive(long timeToLive)

getSendno

public int getSendno()

toJSON

public com.google.gson.JsonElement toJSON()
指定者:
接口 PushModel 中的 toJSON

isGlobalExceedLength

public boolean isGlobalExceedLength()

isIosExceedLength

public boolean isIosExceedLength()

toString

public String toString()
覆盖:
Object 中的 toString


Copyright © 2014. All Rights Reserved.