Interface MediaMessage

All Superinterfaces:
InboundMessage, SmsEvent

public interface MediaMessage extends InboundMessage
Media 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
      Returns:
      from
    • getId

      String getId()
      The ID of this inbound message.
      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 .
      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.
      Returns:
      to
    • getBody

      MediaMessageBody getBody()
      Get body
      Returns:
      body
    • builder

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