|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectcn.jpush.api.push.model.PushPayload
public class PushPayload
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 |
| 方法详细信息 |
|---|
public static PushPayload.Builder newBuilder()
public static PushPayload alertAll(String alert)
public static PushPayload messageAll(String msgContent)
public static PushPayload fromJSON(String payloadString)
public void resetOptionsApnsProduction(boolean apnsProduction)
public void resetOptionsTimeToLive(long timeToLive)
public int getSendno()
public com.google.gson.JsonElement toJSON()
PushModel 中的 toJSONpublic boolean isGlobalExceedLength()
public boolean isIosExceedLength()
public String toString()
Object 中的 toString
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||