-
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.
- Loading branch information
1 parent
1990f96
commit 01a6687
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
core/data/src/main/java/com/wap/wapp/core/data/repository/auth/AuthRepository.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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package com.wap.wapp.core.data.repository.auth | ||
|
||
interface AuthRepository { | ||
suspend fun hasPendingResult(): Boolean | ||
|
||
suspend fun signIn(email: String): Result<String> | ||
} |
16 changes: 16 additions & 0 deletions
16
core/data/src/main/java/com/wap/wapp/core/data/repository/auth/AuthRepositoryImpl.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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package com.wap.wapp.core.data.repository.auth | ||
|
||
import com.wap.wapp.core.network.source.auth.AuthDataSource | ||
import javax.inject.Inject | ||
|
||
class AuthRepositoryImpl @Inject constructor( | ||
private val authDataSource: AuthDataSource | ||
): AuthRepository { | ||
override suspend fun hasPendingResult(): Boolean { | ||
return authDataSource.hasPendingResult() | ||
} | ||
|
||
override suspend fun signIn(email: String): Result<String> { | ||
return authDataSource.signIn(email) | ||
} | ||
} |