Class Notification


  • public class Notification
    extends Object
    Notification
    • Constructor Detail

      • Notification

        public Notification()
    • Method Detail

      • getCategory

        public Notification.CategoryEnum getCategory()
        The type of event notification sent when you select the notification button.
        Returns:
        category
      • setCategory

        public void setCategory​(Notification.CategoryEnum category)
        The type of event notification sent when you select the notification button.
        Parameters:
        category -
      • getDetails

        public String getDetails()
        The text shown in the prompt which opens when you select the notification button. For example, the description of the input box for pay-at-table.
        Returns:
        details
      • setDetails

        public void setDetails​(String details)
        The text shown in the prompt which opens when you select the notification button. For example, the description of the input box for pay-at-table.
        Parameters:
        details -
      • getEnabled

        public Boolean getEnabled()
        Enables sending event notifications either by pressing the Confirm key on terminals with a keypad or by tapping the event notification button on the terminal screen.
        Returns:
        enabled
      • setEnabled

        public void setEnabled​(Boolean enabled)
        Enables sending event notifications either by pressing the Confirm key on terminals with a keypad or by tapping the event notification button on the terminal screen.
        Parameters:
        enabled -
      • getShowButton

        public Boolean getShowButton()
        Shows or hides the event notification button on the screen of terminal models that have a keypad.
        Returns:
        showButton
      • setShowButton

        public void setShowButton​(Boolean showButton)
        Shows or hides the event notification button on the screen of terminal models that have a keypad.
        Parameters:
        showButton -
      • getTitle

        public String getTitle()
        The name of the notification button on the terminal screen.
        Returns:
        title
      • setTitle

        public void setTitle​(String title)
        The name of the notification button on the terminal screen.
        Parameters:
        title -
      • equals

        public boolean equals​(Object o)
        Return true if this Notification object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • fromJson

        public static Notification fromJson​(String jsonString)
                                     throws com.fasterxml.jackson.core.JsonProcessingException
        Create an instance of Notification given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of Notification
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - if the JSON string is invalid with respect to Notification
      • toJson

        public String toJson()
                      throws com.fasterxml.jackson.core.JsonProcessingException
        Convert an instance of Notification to an JSON string
        Returns:
        JSON string
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException