Class AndroidNotification
- java.lang.Object
-
- cn.jpush.api.push.model.notification.PlatformNotification
-
- cn.jpush.api.push.model.notification.AndroidNotification
-
- All Implemented Interfaces:
PushModel
public class AndroidNotification extends PlatformNotification
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAndroidNotification.Builder
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringNOTIFICATION_ANDROID-
Fields inherited from class cn.jpush.api.push.model.notification.PlatformNotification
ALERT, LOG
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AndroidNotificationalert(java.lang.String alert)protected java.lang.ObjectgetInbox()java.lang.StringgetPlatform()static AndroidNotification.BuildernewBuilder()protected voidsetInbox(java.lang.Object inbox)com.google.gson.JsonElementtoJSON()-
Methods inherited from class cn.jpush.api.push.model.notification.PlatformNotification
getAlert, setAlert
-
-
-
-
Field Detail
-
NOTIFICATION_ANDROID
public static final java.lang.String NOTIFICATION_ANDROID
- See Also:
- Constant Field Values
-
-
Method Detail
-
newBuilder
public static AndroidNotification.Builder newBuilder()
-
alert
public static AndroidNotification alert(java.lang.String alert)
-
getPlatform
public java.lang.String getPlatform()
- Specified by:
getPlatformin classPlatformNotification
-
getInbox
protected java.lang.Object getInbox()
-
setInbox
protected void setInbox(java.lang.Object inbox)
-
toJSON
public com.google.gson.JsonElement toJSON()
- Specified by:
toJSONin interfacePushModel- Overrides:
toJSONin classPlatformNotification
-
-