Interface IAmazonDeviceMessagingMessage
interface IAmazonDeviceMessagingMessage
Extends com.amazon.apmf.IStandard
Interface used by ADM server/Client application to process ADM message
intended for the client application. An ADM message can contain
a data message or a notification message or both data and Notification message.
Client applications process the data message. ADM server process the Notification message and
sends notification on behalf of client application.
Methods
getDataMessage()
Get the key-value pairs that make up the data message. If this ADM message is a notification-only message, this method returns null.IDataMessage?getDataMessage()
Returns
IDataMessage?
The return value is optional and might be absent.
The data message of this ADM message, if it exists.
getNotificationMessage()
Get the key-value pairs that make up the notification message. If this ADM message is a data-only message, this method returns null.INotificationMessage?getNotificationMessage()
Returns
INotificationMessage?
The return value is optional and might be absent.
The notification message of this ADM message, if it exists.
getDataMessageMd5()
string getDataMessageMd5()
Get the Base64-encoded MD5 checksum of the data message, to be used as a
check of message integrity. It is the MD5 of the data message’s
key-value pairs, sorted and serialized into “key:value,key:value”.
Returns
string
A Base64-encoded MD5 checksum.

