Class RoomEvent<E extends RoomEventPayload>
java.lang.Object
application.presenter.event.model.roomevent.RoomEvent<E>
- Type Parameters:
E- the type of the event payload.
- All Implemented Interfaces:
Event<E>
Room environment conditions update event.
In addition to a normal
Event it has the roomId and the roomType to which
the event refers.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
RoomEvent
Default constructor.- Parameters:
key- the key of the event.roomId- the room identification to which the event is related to.roomType- the room type to which the event is related to.data- the payload.dateTime- the date time of the event.
-
-
Method Details
-
getKey
Description copied from interface:EventGet the key of the event.- Specified by:
getKeyin interfaceEvent<E extends RoomEventPayload>- Returns:
- the key.
-
getRoomId
Obtain the room id to which the event is related to.- Returns:
- the room id.
-
getRoomType
Obtain the room type to which the event is related to.- Returns:
- the room type.
-
getData
Description copied from interface:EventGet the data payload of the event.- Specified by:
getDatain interfaceEvent<E extends RoomEventPayload>- Returns:
- the data payload.
-
getDateTime
Description copied from interface:EventGet the date time in string format.- Specified by:
getDateTimein interfaceEvent<E extends RoomEventPayload>- Returns:
- the string of date time.
-