Interface BinaryMessage
- All Superinterfaces:
InboundMessage,SmsSinchEvent
Binary MO
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceDedicated Builderstatic classSMS in binary format. -
Method Summary
Modifier and TypeMethodDescriptionstatic BinaryMessage.Builderbuilder()Getting buildergetBody()The message content Base64 encoded.If 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.getUdh()The UDH header of a binary message HEX encoded.
-
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
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
Getting builder- Returns:
- New Builder instance
-