Class MO
java.lang.Object
com.vonage.client.sms.callback.messages.MO
- All Implemented Interfaces:
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDeprecated.Describes the type of payload this message carries -
Constructor Summary
ConstructorsConstructorDescriptionMO(String messageId, MO.MESSAGE_TYPE messageType, String sender, String destination, BigDecimal price, Date timeStamp) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Deprecated.intDeprecated.Deprecated.intDeprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.getPrice()Deprecated.Deprecated.Deprecated.Deprecated.byte[]Deprecated.booleanisConcat()Deprecated.voidsetBinaryData(byte[] binaryMessageBody, byte[] userDataHeader) Deprecated.voidsetConcatenationData(String concatReferenceNumber, int concatTotalParts, int concatPartNumber) Deprecated.voidsetNetworkCode(String networkCode) Deprecated.voidsetSessionId(String sessionId) Deprecated.voidsetTextData(String text, String keyword) Deprecated.
-
Constructor Details
-
MO
public MO(String messageId, MO.MESSAGE_TYPE messageType, String sender, String destination, BigDecimal price, Date timeStamp) Deprecated.
-
-
Method Details
-
setTextData
Deprecated. -
setBinaryData
Deprecated. -
setConcatenationData
public void setConcatenationData(String concatReferenceNumber, int concatTotalParts, int concatPartNumber) Deprecated. -
setNetworkCode
Deprecated. -
setSessionId
Deprecated. -
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
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
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
Deprecated.- Returns:
- byte[] the raw binary payload if this is a BINARY message
-
getUserDataHeader
Deprecated.- Returns:
- byte[] the raw binary user-data-header if applicable for this message
-
getPrice
Deprecated.- Returns:
- BigDecimal if a price was charged for receiving this message, then that is available here
-
getSessionId
Deprecated.- Returns:
- String if this field is populated, then the value should be returned in any MT response
-
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
Deprecated.- Returns:
- String if this message is part of a concatenated set, then this is the total number of parts in the set
-
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
Deprecated.- Returns:
- the timestamp this message was originally received by Vonage
-