Class PushNotification


  • public class PushNotification
    extends java.lang.Object
    Object that represents a push notification.
    • Constructor Detail

      • PushNotification

        public PushNotification()
      • PushNotification

        public PushNotification​(int deliveryType,
                                java.util.List<java.lang.String> userOrGroupIds,
                                java.lang.String objectId,
                                PushNotificationPayload pushNotificationPayload)
      • PushNotification

        public PushNotification​(int deliveryType,
                                java.util.List<java.lang.String> userOrGroupIds,
                                java.lang.String objectId,
                                boolean background,
                                PushNotificationPayload pushNotificationPayload)
    • Method Detail

      • validate

        public void validate()
                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getDeliveryType

        public int getDeliveryType()
      • setDeliveryType

        public void setDeliveryType​(int deliveryType)
      • getUserOrGroupIds

        public java.util.List<java.lang.String> getUserOrGroupIds()
      • setUserOrGroupIds

        public void setUserOrGroupIds​(java.util.List<java.lang.String> userOrGroupIds)
      • setPushNotificationPayload

        public void setPushNotificationPayload​(PushNotificationPayload pushNotificationPayload)
      • getObjectId

        public java.lang.String getObjectId()
      • setObjectId

        public void setObjectId​(java.lang.String objectId)
      • isBackground

        public boolean isBackground()
      • setBackground

        public void setBackground​(boolean background)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object