-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added repository functions to access database
- Loading branch information
1 parent
f92337d
commit 1f90b84
Showing
2 changed files
with
22 additions
and
4 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
7 changes: 6 additions & 1 deletion
7
app/src/main/java/com/judahben149/serenade/domain/TrackRepository.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,10 +1,15 @@ | ||
package com.judahben149.serenade.domain | ||
|
||
import android.content.Context | ||
import android.graphics.Bitmap | ||
import android.net.Uri | ||
import com.judahben149.serenade.data.sources.local.entity.TrackEntity | ||
import kotlinx.coroutines.flow.Flow | ||
|
||
interface TrackRepository { | ||
|
||
suspend fun loadCoverBitmap(uri: Uri): Bitmap? | ||
|
||
suspend fun saveTracks(trackEntity: TrackEntity) | ||
|
||
suspend fun getAllTracks(): Flow<List<TrackEntity>> | ||
} |