Class StartlevelEvent

java.lang.Object
org.openhab.core.events.AbstractEvent
org.openhab.core.events.system.StartlevelEvent
All Implemented Interfaces:
Event

@NonNullByDefault public class StartlevelEvent extends AbstractEvent
StartlevelEvents will be delivered through the openHAB event bus if the start level of the system has changed.
Author:
Kai Kreuzer - Initial contribution
  • Field Details

    • TYPE

      public static final String TYPE
  • Constructor Details

    • StartlevelEvent

      protected StartlevelEvent(String topic, String payload, @Nullable String source, Integer startlevel)
      Creates a new system startlevel event object.
      Parameters:
      topic - the topic
      payload - the payload
      source - the source
      startlevel - the system startlevel
  • Method Details

    • getType

      public String getType()
      Description copied from interface: Event
      Gets the event type.
      Returns:
      the event type
    • getStartlevel

      public Integer getStartlevel()
      Gets the system startlevel.
      Returns:
      the startlevel
    • toString

      public String toString()
      Overrides:
      toString in class Object