-
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 데이터 소스까지 작성 (#90)
- Loading branch information
Showing
5 changed files
with
42 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
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
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
13 changes: 13 additions & 0 deletions
13
data/src/main/java/com/photosurfer/android/data/remote/model/response/NoDataResponse.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 com.photosurfer.android.data.remote.model.response | ||
|
||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
data class NoDataResponse( | ||
@SerializedName("message") | ||
val message: String, | ||
@SerializedName("status") | ||
val status: Int, | ||
@SerializedName("success") | ||
val success: Boolean | ||
) |
14 changes: 14 additions & 0 deletions
14
data/src/main/java/com/photosurfer/android/data/remote/service/DeleteImageService.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,14 @@ | ||
package com.photosurfer.android.data.remote.service | ||
|
||
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.NoDataResponse | ||
import retrofit2.http.PUT | ||
import retrofit2.http.QueryMap | ||
|
||
interface DeleteImageService { | ||
@PUT("photo") | ||
suspend fun deleteImage( | ||
@QueryMap options: Map<String, Int> | ||
): NetworkState<NoDataResponse> | ||
} |