com.voximplant.sdk.messaging

Class Payload

  • java.lang.Object
    • com.voximplant.sdk.messaging.Payload


  • public class Payload extends java.lang.Object
    Class that represent message payload format.
    • Constructor Summary

      Constructors 
      Constructor and Description
      Payload(java.lang.Object data, java.lang.String title, java.lang.String type)
      Constructor to create Payload.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.Object getData()
      Get payload data.
      java.lang.String getTitle()
      Get payload fragment unique title.
      java.lang.String getType()
      Get arbitrary payload type.
      void setData(java.lang.Object data)
      Set payload data.
      void setTitle(java.lang.String title)
      Set payload fragment unique title.
      void setType(java.lang.String type)
      Set arbitrary payload type.
      java.lang.String toString() 
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Payload

        public Payload(java.lang.Object data, java.lang.String title, java.lang.String type)
        Constructor to create Payload.
        Parameters:
        data - Payload data
        title - Payload fragment unique title. Used to identifier fragment in the list of fragments associated with the message
        type - Arbitrary payload type
    • Method Detail

      • getData

        public java.lang.Object getData()
        Get payload data.
        Returns:
        Payload data
      • getTitle

        public java.lang.String getTitle()
        Get payload fragment unique title. Used to identifier fragment in the list of fragments associated with the message.
        Returns:
        Payload fragment unique title
      • getType

        public java.lang.String getType()
        Get arbitrary payload type.
        Returns:
        Arbitrary payload type
      • setData

        public void setData(java.lang.Object data)
        Set payload data.
        Parameters:
        data - Payload data
      • setTitle

        public void setTitle(java.lang.String title)
        Set payload fragment unique title.
        Parameters:
        title - Payload fragment unique title
      • setType

        public void setType(java.lang.String type)
        Set arbitrary payload type.
        Parameters:
        type - Arbitrary payload type
      • toString

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