Skip to content

Commit

Permalink
chore: add room environmental data description
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaGiulianelli committed Feb 23, 2023
1 parent 7a2a034 commit c85df61
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions src/main/kotlin/entity/room/RoomEnvironmentalData.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/*
* Copyright (c) 2023. Smart Operating Block
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
*/

package entity.room

import entity.environment.Humidity
import entity.environment.Luminosity
import entity.environment.Presence
import entity.environment.Temperature

/**
* Wraps all the environmental data associated to a Room.
* So it describe:
* - the [temperature] inside the room
* - the [humidity] inside the room
* - the [luminosity] inside the room
* - the [presence] of someone in the room
*/
data class RoomEnvironmentalData(
val temperature: Temperature,
val humidity: Humidity,
val luminosity: Luminosity,
val presence: Presence,
)

0 comments on commit c85df61

Please sign in to comment.