Skip to content

Commit

Permalink
chore: add update room environmental data
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaGiulianelli committed Mar 7, 2023
1 parent 61a3759 commit 5ace0e0
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
package application.controller.manager

import entity.zone.Room
import entity.zone.RoomEnvironmentalData
import entity.zone.RoomID
import java.util.Date

Expand Down Expand Up @@ -42,4 +43,14 @@ interface RoomDatabaseManager {
* @return a set of rooms.
*/
fun getAllRooms(): Set<Room>

/**
* 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
}

0 comments on commit 5ace0e0

Please sign in to comment.