generated from AND-SOPT-ANDROID/and-sopt-android-template
-
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.
- Loading branch information
1 parent
f208a23
commit ca58023
Showing
3 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
app/src/main/java/org/sopt/and/core/data/datasourceimpl/HobbyDataSourceImpl.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,12 @@ | ||
package org.sopt.and.core.data.datasourceimpl | ||
|
||
import org.sopt.and.core.data.datasource.HobbyDataSource | ||
import org.sopt.and.core.data.dto.BaseResponse | ||
import org.sopt.and.core.data.dto.response.GetHobbyResponse | ||
import org.sopt.and.core.data.service.HobbyService | ||
|
||
class HobbyDataSourceImpl( | ||
private val hobbyService: HobbyService | ||
) : HobbyDataSource { | ||
override suspend fun getHobby(token: String): BaseResponse<GetHobbyResponse> = hobbyService.getMyHobby(token) | ||
} |
13 changes: 13 additions & 0 deletions
13
app/src/main/java/org/sopt/and/core/data/datasourceimpl/SignInDataSourceImpl.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,13 @@ | ||
package org.sopt.and.core.data.datasourceimpl | ||
|
||
import org.sopt.and.core.data.datasource.SignInDataSource | ||
import org.sopt.and.core.data.dto.BaseResponse | ||
import org.sopt.and.core.data.dto.reqeust.LoginRequest | ||
import org.sopt.and.core.data.dto.response.LoginResponse | ||
|
||
|
||
class SignInDataSourceImpl( | ||
private val signInService: SignInDataSource | ||
) : SignInDataSource { | ||
override suspend fun postSignIn(request: LoginRequest): BaseResponse<LoginResponse> = signInService.postSignIn(request) | ||
} |
12 changes: 12 additions & 0 deletions
12
app/src/main/java/org/sopt/and/core/data/datasourceimpl/SignUpDataSourceImpl.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,12 @@ | ||
package org.sopt.and.core.data.datasourceimpl | ||
|
||
import org.sopt.and.core.data.datasource.SignUpDataSource | ||
import org.sopt.and.core.data.dto.BaseResponse | ||
import org.sopt.and.core.data.dto.reqeust.CreateUserRequest | ||
import org.sopt.and.core.data.dto.response.CreateUserResponse | ||
|
||
class SignUpDataSourceImpl( | ||
private val signUpService: SignUpDataSource | ||
) : SignUpDataSource { | ||
override suspend fun postSignUp(request: CreateUserRequest): BaseResponse<CreateUserResponse> = signUpService.postSignUp(request) | ||
} |