Class TemperaturePayload
java.lang.Object
application.presenter.event.model.roomevent.payload.TemperaturePayload
- All Implemented Interfaces:
RoomEventPayload
Temperature payload for
RoomEvent
.-
Field Summary
-
Constructor Summary
ConstructorDescriptionTemperaturePayload
(double temperatureValue, String temperatureUnit) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionGet the temperature unit.double
Get the temperature value.
-
Field Details
-
TEMPERATURE_EVENT_KEY
Temperature event key.- See Also:
-
-
Constructor Details
-
TemperaturePayload
Default constructor.- Parameters:
temperatureValue
- the temperature value.temperatureUnit
- the temperature unit.
-
-
Method Details
-
getTemperatureValue
public double getTemperatureValue()Get the temperature value.- Returns:
- the temperature value.
-
getTemperatureUnit
Get the temperature unit.- Returns:
- the temperature unit.
-