Interface BinaryMessage

All Superinterfaces:
InboundMessage, SmsSinchEvent

public interface BinaryMessage extends InboundMessage
Binary MO
  • Method Details

    • getClientReference

      String getClientReference()
      If this inbound message is in response to a previously sent message that contained a client reference, then this field contains that client reference. Utilizing this feature requires additional setup on your account. Contact your account manager to enable this feature.
      Returns:
      clientReference
    • getFrom

      String getFrom()
      The phone number that sent the message. More info

      Field is required

      Returns:
      from
    • getId

      String getId()
      The ID of this inbound message.

      Field is required

      Returns:
      id
    • getOperatorId

      String getOperatorId()
      The MCC/MNC of the sender's operator if known.
      Returns:
      operatorId
    • getReceivedAt

      Instant getReceivedAt()
      When the system received the message. Formatted as ISO-8601: YYYY-MM-DDThh:mm:ss.SSSZ .

      Field is required

      Returns:
      receivedAt
    • getSentAt

      Instant getSentAt()
      When the message left the originating device. Only available if provided by operator. Formatted as ISO-8601: YYYY-MM-DDThh:mm:ss.SSSZ.
      Returns:
      sentAt
    • getTo

      String getTo()
      The Sinch phone number or short code to which the message was sent.

      Field is required

      Returns:
      to
    • getBody

      String getBody()
      The message content Base64 encoded. Max 140 bytes together with udh.

      Field is required

      Returns:
      body
    • getUdh

      String getUdh()
      The UDH header of a binary message HEX encoded. Max 140 bytes together with body.

      Field is required

      Returns:
      udh
    • builder

      static BinaryMessage.Builder builder()
      Getting builder
      Returns:
      New Builder instance