Class PushRequest

java.lang.Object
com.onenetwork.platform.integ.push.PushRequest

public class PushRequest
extends java.lang.Object
Detailed request for sending push messages. Includes parameter for whether push messages should be persisted by the push server or discarded after an attempted delivery.
  • Constructor Summary

    Constructors 
    Constructor Description
    PushRequest()  
  • Method Summary

    Modifier and Type Method Description
    java.util.List<java.lang.String> getChannels()  
    java.util.List<org.json.JSONObject> getMessages()  
    boolean getPersist()  
    java.util.List<PushRecipient> getTo()  
    void setChannels​(java.util.List<java.lang.String> channels)  
    void setMessages​(java.util.List<org.json.JSONObject> messages)  
    void setPersist​(boolean persist)  
    void setTo​(java.util.List<PushRecipient> to)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • getChannels

      public java.util.List<java.lang.String> getChannels()
      Returns:
      all messages provided will be delivered to all these channels
    • setChannels

      public void setChannels​(java.util.List<java.lang.String> channels)
      Parameters:
      channels - all messages provided will be delivered to all these channels
    • getMessages

      public java.util.List<org.json.JSONObject> getMessages()
      Returns:
      all messages provided will be delivered to all the given channels & recipients
    • setMessages

      public void setMessages​(java.util.List<org.json.JSONObject> messages)
      Parameters:
      all - messages provided will be delivered to all the given channels & recipients
    • getTo

      public java.util.List<PushRecipient> getTo()
      Returns:
      all messages will be delivered to all these recipients
    • setTo

      public void setTo​(java.util.List<PushRecipient> to)
      Parameters:
      to - all messages will be delivered to all these recipients
    • getPersist

      public boolean getPersist()
      Returns:
      Indicates whether to persist messages in push server or discard after attempting delivery. Default is false.
    • setPersist

      public void setPersist​(boolean persist)
      Parameters:
      persist - Indicates whether to persist messages in push server or discard after attempting delivery. Default is false.