From c85df61b1db4b4f555002a09408bc34467f7a260 Mon Sep 17 00:00:00 2001 From: Andrea Giulianelli Date: Thu, 16 Feb 2023 11:56:18 +0100 Subject: [PATCH] chore: add room environmental data description --- .../entity/room/RoomEnvironmentalData.kt | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/main/kotlin/entity/room/RoomEnvironmentalData.kt diff --git a/src/main/kotlin/entity/room/RoomEnvironmentalData.kt b/src/main/kotlin/entity/room/RoomEnvironmentalData.kt new file mode 100644 index 00000000..159be0f9 --- /dev/null +++ b/src/main/kotlin/entity/room/RoomEnvironmentalData.kt @@ -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, +)