-
Notifications
You must be signed in to change notification settings - Fork 2
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
505db5c
commit a113732
Showing
45 changed files
with
300 additions
and
329 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
17 changes: 8 additions & 9 deletions
17
.../main/java/com/debanshu777/compose_github/network/dataSource/local/DeveloperDataSource.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,22 +1,21 @@ | ||
package com.debanshu777.compose_github.network.dataSource.local | ||
|
||
import composedb.githubDB.DeveloperFollow | ||
import dagger.Component | ||
import kotlinx.coroutines.flow.Flow | ||
|
||
interface DeveloperDataSource { | ||
suspend fun getDeveloperById(Id:Long):DeveloperFollow? | ||
suspend fun getDeveloperById(Id: Long): DeveloperFollow? | ||
|
||
suspend fun getDeveloperByName(name:String): DeveloperFollow? | ||
suspend fun getDeveloperByName(name: String): DeveloperFollow? | ||
|
||
fun getAllDeveloper(): Flow<List<DeveloperFollow>> | ||
|
||
suspend fun deleteDeveloperById(id:Long) | ||
suspend fun deleteDeveloperById(id: Long) | ||
|
||
suspend fun insertDeveloper( | ||
id:Long?=null, | ||
userName:String, | ||
name:String, | ||
avatar:String, | ||
id: Long? = null, | ||
userName: String, | ||
name: String, | ||
avatar: String, | ||
) | ||
} | ||
} |
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
Oops, something went wrong.