Class 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
    • 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.
      • getMessage

        public static Message getMessage​(@NonNull
                                         String messageID)
        To get the message based on the message ID.
        Parameters:
        messageID - The message ID.
        Returns:
        The message.