-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] #1 issue, notification, repo, user DataSource Interface 수정
- Loading branch information
Showing
6 changed files
with
21 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
package com.eshc.data.source | ||
|
||
import com.eshc.domain.model.Issue | ||
import io.reactivex.rxjava3.core.Single | ||
|
||
interface IssueDataSource { | ||
fun getIssues(state : String) : Single<Result<List<Issue>>> | ||
} |
6 changes: 6 additions & 0 deletions
6
data/src/main/java/com/eshc/data/source/NotificationDataSource.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,4 +1,10 @@ | ||
package com.eshc.data.source | ||
|
||
import com.eshc.domain.model.Notification | ||
import io.reactivex.rxjava3.core.Single | ||
|
||
interface NotificationDataSource { | ||
fun getNotifications() : Single<Result<List<Notification>>> | ||
|
||
fun updateNotificationAsRead() | ||
} |
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,4 +1,8 @@ | ||
package com.eshc.data.source | ||
|
||
import com.eshc.domain.model.Repo | ||
import io.reactivex.rxjava3.core.Single | ||
|
||
interface RepoDataSource { | ||
fun getRepos() : Single<Result<List<Repo>>> | ||
} |
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,4 +1,8 @@ | ||
package com.eshc.data.source | ||
|
||
import com.eshc.domain.model.User | ||
import io.reactivex.rxjava3.core.Single | ||
|
||
interface UserDataSource { | ||
fun getUser() : Single<Result<User>> | ||
} |
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
3 changes: 1 addition & 2 deletions
3
feature-login/src/main/java/com/eshc/feature/login/LoginViewModel.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