Class FirmwareUpdateResultInfoEvent

  • All Implemented Interfaces:
    Event

    @NonNullByDefault
    public final class FirmwareUpdateResultInfoEvent
    extends AbstractEvent
    The FirmwareUpdateResultInfoEvent is sent if the firmware update has been finished. It is created by the FirmwareEventFactory.
    Author:
    Thomas Höfer - Initial contribution, Dimitar Ivanov - Removed thing UID from the event
    • Field Detail

      • TYPE

        public static final String TYPE
        Constant for the firmware update result info event type.
    • Constructor Detail

      • FirmwareUpdateResultInfoEvent

        protected FirmwareUpdateResultInfoEvent​(String topic,
                                                String payload,
                                                FirmwareUpdateResultInfo firmwareUpdateResultInfo)
        Parameters:
        topic - the topic of the event
        payload - the payload of the event
        firmwareUpdateResultInfo - the firmware update result info to be sent as event
    • Method Detail

      • getFirmwareUpdateResultInfo

        public FirmwareUpdateResultInfo getFirmwareUpdateResultInfo()
        Returns the firmware update result info.
        Returns:
        the firmware update result info
      • getType

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

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

        public boolean equals​(@Nullable Object obj)
        Overrides:
        equals in class Object