diff --git a/src/main/kotlin/application/controller/manager/RoomDatabaseManager.kt b/src/main/kotlin/application/controller/manager/RoomDatabaseManager.kt index 16f4f291..4adfb0ae 100644 --- a/src/main/kotlin/application/controller/manager/RoomDatabaseManager.kt +++ b/src/main/kotlin/application/controller/manager/RoomDatabaseManager.kt @@ -9,6 +9,7 @@ package application.controller.manager import entity.zone.Room +import entity.zone.RoomEnvironmentalData import entity.zone.RoomID import java.util.Date @@ -42,4 +43,14 @@ interface RoomDatabaseManager { * @return a set of rooms. */ fun getAllRooms(): Set + + /** + * Update the [environmentalData] about a room identified by its [roomId]. + * The data is associated to a [dateTime]. + */ + fun updateRoomEnvironmentalData( + roomId: RoomID, + environmentalData: RoomEnvironmentalData, + dateTime: Instant + ): Boolean }