java.lang.Object
com.vonage.client.sms.callback.messages.MO
All Implemented Interfaces:
Serializable

@Deprecated public class MO extends Object implements Serializable
Deprecated.
This class is not maintained and will be removed in the next major release. Please consider using the Messages API instead.
This represents an incoming MO callback request.
See Also:
  • Constructor Details

  • Method Details

    • setTextData

      public void setTextData(String text, String keyword)
      Deprecated.
    • setBinaryData

      public void setBinaryData(byte[] binaryMessageBody, byte[] userDataHeader)
      Deprecated.
    • setConcatenationData

      public void setConcatenationData(String concatReferenceNumber, int concatTotalParts, int concatPartNumber)
      Deprecated.
    • setNetworkCode

      public void setNetworkCode(String networkCode)
      Deprecated.
    • setSessionId

      public void setSessionId(String sessionId)
      Deprecated.
    • getMessageId

      public String getMessageId()
      Deprecated.
      Returns:
      String the id assigned to this message by Vonage before delivery
    • getMessageType

      Deprecated.
      Returns:
      MESSAGE_TYPE describes what type of payload this message carries, eg, 8 bit text, unicode text or raw binary
    • getSender

      public String getSender()
      Deprecated.
      Returns:
      String the phone number of the end user that sent this message
    • getDestination

      Deprecated.
      Returns:
      String the short-code/long code number that the end user sent the message to
    • getNetworkCode

      Deprecated.
      Returns:
      String the network code (if available) of the end user
    • getKeyword

      public String getKeyword()
      Deprecated.
      Returns:
      String return the first keyword of the message. If this is a shared short-code then this is what the message will have been routed by.
    • getMessageBody

      Deprecated.
      Returns:
      String The message payload if this is a TEXT or UNICODE message
    • getBinaryMessageBody

      public byte[] getBinaryMessageBody()
      Deprecated.
      Returns:
      byte[] the raw binary payload if this is a BINARY message
    • getUserDataHeader

      public byte[] getUserDataHeader()
      Deprecated.
      Returns:
      byte[] the raw binary user-data-header if applicable for this message
    • getPrice

      public BigDecimal getPrice()
      Deprecated.
      Returns:
      BigDecimal if a price was charged for receiving this message, then that is available here
    • getSessionId

      public String getSessionId()
      Deprecated.
      Returns:
      String if this field is populated, then the value should be returned in any MT response
    • isConcat

      public boolean isConcat()
      Deprecated.
      Returns:
      boolean is this message part of a concatenated message that needs re-assembly
    • getConcatReferenceNumber

      Deprecated.
      Returns:
      String if this message is part of a concatenated set, then this is the reference id that groups the parts together
    • getConcatTotalParts

      public int getConcatTotalParts()
      Deprecated.
      Returns:
      String if this message is part of a concatenated set, then this is the total number of parts in the set
    • getConcatPartNumber

      public int getConcatPartNumber()
      Deprecated.
      Returns:
      String if this message is part of a concatenated set, then this is the 'part number' within the set that this message carries
    • getTimeStamp

      public Date getTimeStamp()
      Deprecated.
      Returns:
      the timestamp this message was originally received by Vonage