Enum Class Notifications.Level

java.lang.Object
java.lang.Enum<Notifications.Level>
dev.myriadclient.api.service.Notifications.Level
All Implemented Interfaces:
Serializable, Comparable<Notifications.Level>, Constable
Enclosing interface:
Notifications

public static enum Notifications.Level extends Enum<Notifications.Level>
How a notification is marked: its accent colour and icon.
  • Enum Constant Details

    • INFO

      public static final Notifications.Level INFO
      Something worth knowing; the theme's accent colour.
    • SUCCESS

      public static final Notifications.Level SUCCESS
      Something finished as hoped; green.
    • WARNING

      public static final Notifications.Level WARNING
      Something to look at, though nothing failed; yellow.
    • ERROR

      public static final Notifications.Level ERROR
      Something failed; red.
  • Method Details

    • values

      public static Notifications.Level[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Notifications.Level valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null