Class EventDTO

java.lang.Object
org.openhab.core.io.websocket.event.EventDTO

@NonNullByDefault public class EventDTO extends Object
The EventDTO is used for serialization and deserialization of events
Author:
Jan N. Klug - Initial contribution
  • Field Details

    • type

      public @Nullable String type
    • topic

      public @Nullable String topic
    • payload

      public @Nullable String payload
    • source

      public @Nullable String source
    • eventId

      public @Nullable String eventId
  • Constructor Details

    • EventDTO

      public EventDTO()
    • EventDTO

      public EventDTO(String type, String topic, @Nullable String payload, @Nullable String source, @Nullable String eventId)
    • EventDTO

      public EventDTO(Event event)
  • Method Details