File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed
src/main/kotlin/entities/environment Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -22,18 +22,30 @@ object EnvironmentData {
22
22
/* *
23
23
* The temperature of the room.
24
24
* @param temperatureValue the temperature of the room.
25
+ * @param temperatureUnit the temperature unit.
25
26
*/
26
- data class Temperature (val temperatureValue : Double )
27
+ data class Temperature (val temperatureValue : Double , val temperatureUnit : TemperatureUnit )
27
28
28
29
/* *
29
30
* The luminosity of the room.
30
31
* @param luminosityValue the luminosity value of the room.
32
+ * @param luminosityUnit the luminosity unit.
31
33
*/
32
- data class Luminosity (val luminosityValue : Double )
34
+ data class Luminosity (val luminosityValue : Double , val luminosityUnit : LuminosityUnit )
33
35
34
36
/* *
35
37
* The presence of a person inside the room.
36
38
* @param presenceDetected true if is a person detection event, false otherwise.
37
39
*/
38
40
data class Presence (val presenceDetected : Boolean )
41
+
42
+ /* * The temperature unit. **/
43
+ enum class TemperatureUnit {
44
+ CELSIUS
45
+ }
46
+
47
+ /* * The luminosity unit. **/
48
+ enum class LuminosityUnit {
49
+ LUX
50
+ }
39
51
}
You can’t perform that action at this time.
0 commit comments