Enum Class MessageType

java.lang.Object
java.lang.Enum<MessageType>
dev.digiried.wattpilot.messages.MessageType
All Implemented Interfaces:
Serializable, Comparable<MessageType>, Constable

public enum MessageType extends Enum<MessageType>
Enum for available WebSocket Message types. See joscha82/wattpilot: Wattpilot API Description.
Author:
Florian Hotze - Initial contribution
  • Enum Constant Details

    • HELLO

      @SerializedName("hello") public static final MessageType HELLO
    • AUTH_REQUIRED

      @SerializedName("authRequired") public static final MessageType AUTH_REQUIRED
    • AUTH

      @SerializedName("auth") public static final MessageType AUTH
    • AUTH_SUCCESS

      @SerializedName("authSuccess") public static final MessageType AUTH_SUCCESS
    • AUTH_ERROR

      @SerializedName("authError") public static final MessageType AUTH_ERROR
    • FULL_STATUS

      @SerializedName("fullStatus") public static final MessageType FULL_STATUS
    • DELTA_STATUS

      @SerializedName("deltaStatus") public static final MessageType DELTA_STATUS
    • CLEAR_INVERTERS

      @SerializedName("clearInverters") public static final MessageType CLEAR_INVERTERS
    • UPDATE_INVERTER

      @SerializedName("updateInverter") public static final MessageType UPDATE_INVERTER
    • SET_VALUE

      @SerializedName("setValue") public static final MessageType SET_VALUE
    • SECURED_MSG

      @SerializedName("securedMsg") public static final MessageType SECURED_MSG
    • RESPONSE

      @SerializedName("response") public static final MessageType RESPONSE
  • Method Details

    • values

      public static MessageType[] 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 MessageType 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
    • getSerializedName

      public String getSerializedName()