Class Message
- java.lang.Object
-
- com.thalesgroup.gemalto.d1.messaging.Message
-
public class Message extends Object
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
Constructors Constructor Description Message(String messageID, String title, String message, String metaData, MessageType messageType, MessageFormat messageFormat, String action, boolean isRead, String timeStamp)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAction()The hint provided to determine the action to be taken if the end user clicks on the notification.MessageFormatgetFormat()The message format which is either in text or HTML.StringgetMessage()The message content.static MessagegetMessage(String messageID)To get the message based on the message ID.StringgetMessageID()The message ID.StringgetMetadata()The metadata contains a free-form object.StringgetTimeStamp()The message creation time based on ISO 8601 format YYYY-MM-DDThh:mm:ssTZD.StringgetTitle()The message title.MessageTypegetType()The message type.booleanisRead()Indicates if the application has marked the message as read by the end user.
-
-
-
Constructor Detail
-
Message
public Message(String messageID, String title, String message, String metaData, MessageType messageType, MessageFormat messageFormat, String action, boolean isRead, String timeStamp)
-
-
Method Detail
-
getMessageID
public String getMessageID()
The message ID.- Returns:
- The messageID.
-
getTitle
public String getTitle()
The message title.- Returns:
- The title.
-
getMessage
public String getMessage()
The message content.- Returns:
- The message content.
-
getType
public MessageType getType()
The message type.- Returns:
- The message type.
-
getFormat
public MessageFormat getFormat()
The message format which is either in text or HTML.- Returns:
- The message format.
-
getAction
public String 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
public String getTimeStamp()
The message creation time based on ISO 8601 format YYYY-MM-DDThh:mm:ssTZD.- Returns:
- The timestamp.
-
getMetadata
public String 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.
-
-