Class PlatformNotification

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String ALERT  
      protected static org.slf4j.Logger LOG  
      • Fields inherited from interface cn.jpush.api.push.model.PushModel

        gson
    • 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.Object getAlert()  
      protected abstract java.lang.String getPlatform()  
      protected void setAlert​(java.lang.Object alert)  
      com.google.gson.JsonElement toJSON()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • 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)
    • Method Detail

      • toJSON

        public com.google.gson.JsonElement toJSON()
        Specified by:
        toJSON in interface PushModel
      • getAlert

        protected java.lang.Object getAlert()
      • setAlert

        protected void setAlert​(java.lang.Object alert)
      • getPlatform

        protected abstract java.lang.String getPlatform()