Skip to content

Commit

Permalink
chore: create repository for room
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaGiulianelli committed May 18, 2023
1 parent 36e1355 commit bd031a2
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/main/kotlin/usecase/repository/RoomRepository.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
* 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 usecase.repository

import entity.room.RoomEnvironmentalData
import entity.room.RoomID
import java.time.Instant

/**
* Interface that models the repository to manage rooms' data.
*/
fun interface RoomRepository {
/**
* Get a room environmental data [from] a specific date time [to] a specific date time.
* The room is identified by its [roomID].
*/
fun getRoomEnvironmentalData(roomID: RoomID, from: Instant, to: Instant): List<Pair<Instant, RoomEnvironmentalData>>
}

0 comments on commit bd031a2

Please sign in to comment.