Skip to content

Commit c85df61

Browse files
chore: add room environmental data description
1 parent 7a2a034 commit c85df61

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/*
2+
* Copyright (c) 2023. Smart Operating Block
3+
*
4+
* Use of this source code is governed by an MIT-style
5+
* license that can be found in the LICENSE file or at
6+
* https://opensource.org/licenses/MIT.
7+
*/
8+
9+
package entity.room
10+
11+
import entity.environment.Humidity
12+
import entity.environment.Luminosity
13+
import entity.environment.Presence
14+
import entity.environment.Temperature
15+
16+
/**
17+
* Wraps all the environmental data associated to a Room.
18+
* So it describe:
19+
* - the [temperature] inside the room
20+
* - the [humidity] inside the room
21+
* - the [luminosity] inside the room
22+
* - the [presence] of someone in the room
23+
*/
24+
data class RoomEnvironmentalData(
25+
val temperature: Temperature,
26+
val humidity: Humidity,
27+
val luminosity: Luminosity,
28+
val presence: Presence,
29+
)

0 commit comments

Comments
 (0)