Class PlatformNotification
- java.lang.Object
-
- cn.jpush.api.push.model.notification.PlatformNotification
-
- All Implemented Interfaces:
PushModel
- Direct Known Subclasses:
AndroidNotification,IosNotification,WinphoneNotification
public abstract class PlatformNotification extends java.lang.Object implements PushModel
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classPlatformNotification.Builder<T extends PlatformNotification,B extends PlatformNotification.Builder<T,B>>
-
Constructor Summary
Constructors Constructor Description PlatformNotification(java.lang.Object alert, java.util.Map<java.lang.String,java.lang.String> extras, java.util.Map<java.lang.String,java.lang.Number> numberExtras, java.util.Map<java.lang.String,java.lang.Boolean> booleanExtras, java.util.Map<java.lang.String,com.google.gson.JsonObject> jsonExtras)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected java.lang.ObjectgetAlert()protected abstract java.lang.StringgetPlatform()protected voidsetAlert(java.lang.Object alert)com.google.gson.JsonElementtoJSON()
-
-
-
Field Detail
-
ALERT
public static final java.lang.String ALERT
- See Also:
- Constant Field Values
-
LOG
protected static final org.slf4j.Logger LOG
-
-
Constructor Detail
-
PlatformNotification
public PlatformNotification(java.lang.Object alert, java.util.Map<java.lang.String,java.lang.String> extras, java.util.Map<java.lang.String,java.lang.Number> numberExtras, java.util.Map<java.lang.String,java.lang.Boolean> booleanExtras, java.util.Map<java.lang.String,com.google.gson.JsonObject> jsonExtras)
-
-