From 01a6687d4f386b0b830021699b6570eacc67498a Mon Sep 17 00:00:00 2001 From: jeongjaino Date: Thu, 5 Oct 2023 12:31:09 +0900 Subject: [PATCH] =?UTF-8?q?[FEATURE]=20#14=20:=20Auth=20Repository=20?= =?UTF-8?q?=EA=B5=AC=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../core/data/repository/auth/AuthRepository.kt | 7 +++++++ .../data/repository/auth/AuthRepositoryImpl.kt | 16 ++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 core/data/src/main/java/com/wap/wapp/core/data/repository/auth/AuthRepository.kt create mode 100644 core/data/src/main/java/com/wap/wapp/core/data/repository/auth/AuthRepositoryImpl.kt diff --git a/core/data/src/main/java/com/wap/wapp/core/data/repository/auth/AuthRepository.kt b/core/data/src/main/java/com/wap/wapp/core/data/repository/auth/AuthRepository.kt new file mode 100644 index 00000000..f029e6c6 --- /dev/null +++ b/core/data/src/main/java/com/wap/wapp/core/data/repository/auth/AuthRepository.kt @@ -0,0 +1,7 @@ +package com.wap.wapp.core.data.repository.auth + +interface AuthRepository { + suspend fun hasPendingResult(): Boolean + + suspend fun signIn(email: String): Result +} \ No newline at end of file diff --git a/core/data/src/main/java/com/wap/wapp/core/data/repository/auth/AuthRepositoryImpl.kt b/core/data/src/main/java/com/wap/wapp/core/data/repository/auth/AuthRepositoryImpl.kt new file mode 100644 index 00000000..15a634c5 --- /dev/null +++ b/core/data/src/main/java/com/wap/wapp/core/data/repository/auth/AuthRepositoryImpl.kt @@ -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 { + return authDataSource.signIn(email) + } +} \ No newline at end of file