-
-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
71cb17d
commit 906cc51
Showing
5 changed files
with
24 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...n/java/com/kylecorry/trail_sense/tools/battery/infrastructure/persistence/IBatteryRepo.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
package com.kylecorry.trail_sense.tools.battery.infrastructure.persistence | ||
|
||
import androidx.lifecycle.LiveData | ||
import com.kylecorry.trail_sense.tools.battery.domain.BatteryReadingEntity | ||
import com.kylecorry.trail_sense.tools.battery.domain.BatteryReading | ||
import java.time.Instant | ||
|
||
interface IBatteryRepo { | ||
fun get(): LiveData<List<BatteryReadingEntity>> | ||
suspend fun add(reading: BatteryReadingEntity) | ||
fun get(): LiveData<List<BatteryReading>> | ||
suspend fun add(reading: BatteryReading) | ||
suspend fun deleteBefore(time: Instant) | ||
fun getMaxCapacity(): Float | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters