Class 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 Detail

      • TYPE

        public static final String TYPE
    • Constructor Detail

      • 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 Detail

      • 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