Skip to content

Commit

Permalink
[FEATURE] #14 : Auth Repository 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
jeongjaino committed Oct 5, 2023
1 parent 1990f96 commit 01a6687
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
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>
}
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)
}
}

0 comments on commit 01a6687

Please sign in to comment.