Interface MediaMessage
- All Superinterfaces:
InboundMessage,SmsSinchEvent
Media MO
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceDedicated Builderstatic classMMS -
Method Summary
Modifier and TypeMethodDescriptionstatic MediaMessage.Builderbuilder()Getting buildergetBody()Get bodyIf this inbound message is in response to a previously sent message that contained a client reference, then this field contains that client reference.getFrom()The phone number that sent the message.getId()The ID of this inbound message.The MCC/MNC of the sender's operator if known.When the system received the message.When the message left the originating device.getTo()The Sinch phone number or short code to which the message was sent.
-
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 infoField 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
MediaMessageBody getBody()Get bodyField is required
- Returns:
- body
-
builder
Getting builder- Returns:
- New Builder instance
-