-
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.
[feat] detail_image / 사진 정보 가져오기 api datasource까지 완료 (#90)
- Loading branch information
Showing
4 changed files
with
30 additions
and
1 deletion.
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
10 changes: 10 additions & 0 deletions
10
data/src/main/java/com/photosurfer/android/data/remote/datasource/RemoteImageDataSource.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,10 @@ | ||
package com.photosurfer.android.data.remote.datasource | ||
|
||
import com.photosurfer.android.data.remote.calladapter.NetworkState | ||
import com.photosurfer.android.data.remote.model.response.BaseResponse | ||
import com.photosurfer.android.data.remote.model.response.DetailImageResponse | ||
|
||
interface RemoteImageDataSource { | ||
|
||
suspend fun getDetailImageInfo(photoId: Int): NetworkState<BaseResponse<DetailImageResponse>> | ||
} |
15 changes: 15 additions & 0 deletions
15
...src/main/java/com/photosurfer/android/data/remote/datasource/RemoteImageDataSourceImpl.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,15 @@ | ||
package com.photosurfer.android.data.remote.datasource | ||
|
||
import com.photosurfer.android.data.remote.calladapter.NetworkState | ||
import com.photosurfer.android.data.remote.model.response.BaseResponse | ||
import com.photosurfer.android.data.remote.model.response.DetailImageResponse | ||
import com.photosurfer.android.data.remote.service.DetailImageService | ||
import javax.inject.Inject | ||
|
||
class RemoteImageDataSourceImpl @Inject constructor( | ||
private val detailImageService: DetailImageService | ||
) : RemoteImageDataSource { | ||
|
||
override suspend fun getDetailImageInfo(photoId: Int): NetworkState<BaseResponse<DetailImageResponse>> = | ||
detailImageService.getDetailImageInfo(photoId) | ||
} |
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