Class Message
java.lang.Object
com.thalesgroup.gemalto.d1.messaging.Message
This contains the information about message notification. The message is related to activities in the card issued by D1.
- Since:
- 4.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionMessage(String messageID, String title, String message, String metaData, MessageType messageType, MessageFormat messageFormat, String action, boolean isRead, String timeStamp) -
Method Summary
Modifier and TypeMethodDescriptionThe hint provided to determine the action to be taken if the end user clicks on the notification.The message format which is either in text or HTML.The message content.static MessagegetMessage(String messageID) To get the message based on the message ID.The message ID.The metadata contains a free-form object.The message creation time based on ISO 8601 format YYYY-MM-DDThh:mm:ssTZD.getTitle()The message title.getType()The message type.booleanisRead()Indicates if the application has marked the message as read by the end user.
-
Constructor Details
-
Message
public Message(String messageID, String title, String message, String metaData, MessageType messageType, MessageFormat messageFormat, String action, boolean isRead, String timeStamp)
-
-
Method Details
-
getMessageID
The message ID.- Returns:
- The messageID.
-
getTitle
The message title.- Returns:
- The title.
-
getMessage
The message content.- Returns:
- The message content.
-
getType
The message type.- Returns:
- The message type.
-
getFormat
The message format which is either in text or HTML.- Returns:
- The message format.
-
getAction
The hint provided to determine the action to be taken if the end user clicks on the notification.- Returns:
- The action.
-
isRead
public boolean isRead()Indicates if the application has marked the message as read by the end user.- Returns:
- A boolean value if the message is read by the end user.
-
getTimeStamp
The message creation time based on ISO 8601 format YYYY-MM-DDThh:mm:ssTZD.- Returns:
- The timestamp.
-
getMetadata
The metadata contains a free-form object. The content and type of data depend on how the notification has been configured at the backend.- Returns:
- The metadata.
-
getMessage
To get the message based on the message ID.- Parameters:
messageID- The message ID.- Returns:
- The message.
-