We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d28f45a commit 79e16aeCopy full SHA for 79e16ae
src/main/kotlin/usecase/repository/RoomRepository.kt
@@ -10,6 +10,7 @@ package usecase.repository
10
11
import entity.zone.Room
12
import entity.zone.RoomID
13
+import java.util.Date
14
15
/**
16
* Interface that models the repository to manage Rooms.
@@ -28,8 +29,14 @@ interface RoomRepository {
28
29
fun deleteRoom(roomId: RoomID): Boolean
30
31
- * Find a room by its [roomId].
32
+ * Find a room by its [roomId] and get its data in a specific [dateTime].
33
* @return the room if present, null otherwise.
34
*/
- fun findBy(roomId: RoomID): Room?
35
+ fun findBy(roomId: RoomID, dateTime: Date): Room?
36
+
37
+ /**
38
+ * Get all the rooms.
39
+ * @return the set of rooms.
40
+ */
41
+ fun getRooms(): Set<Room>
42
}
0 commit comments