-
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.
Merge pull request #26 from f-lab-edu/feature/25
[#25] 반복정보(객실정보) API 추가
- Loading branch information
Showing
7 changed files
with
99 additions
and
5 deletions.
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
46 changes: 46 additions & 0 deletions
46
app/src/main/java/kr/ksw/visitkorea/data/remote/dto/DetailInfoDTO.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,46 @@ | ||
package kr.ksw.visitkorea.data.remote.dto | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
data class DetailInfoDTO ( | ||
@SerializedName("roomtitle") | ||
val roomTitle: String, | ||
@SerializedName("roomsize1") | ||
val roomSize: String, | ||
@SerializedName("roomsize2") | ||
val roomSize2: String, | ||
@SerializedName("roombasecount") | ||
val roomBaseCount: String, | ||
@SerializedName("roommaxcount") | ||
val roomMaxCount: String, | ||
@SerializedName("roomoffseasonminfee1") | ||
val roomOffSeasonMinFee1: String, // 비수기주중최소 | ||
@SerializedName("roomoffseasonminfee2") | ||
val roomoffseasonminfee2: String, // 비수기주말최소 | ||
@SerializedName("roompeakseasonminfee1") | ||
val roomPeakSeasonMinfee1: String, // 성수기주중최소 | ||
@SerializedName("roompeakseasonminfee2") | ||
val roomPeakSeasonMinfee2: String, // 성수기주말최소 | ||
@SerializedName("roombathfacility") | ||
val roomBathFacility: String, | ||
@SerializedName("roomtv") | ||
val roomTv: String, | ||
@SerializedName("roompc") | ||
val roomPc: String, | ||
@SerializedName("roominternet") | ||
val roomInternet: String, | ||
@SerializedName("roomrefrigerator") | ||
val roomRefrigerator: String, | ||
@SerializedName("roomhairdryer") | ||
val roomHairdryer: String, | ||
@SerializedName("roomimg1") | ||
val roomImg1: String, | ||
@SerializedName("roomimg2") | ||
val roomImg2: String, | ||
@SerializedName("roomimg3") | ||
val roomImg3: String, | ||
@SerializedName("roomimg4") | ||
val roomImg4: String, | ||
@SerializedName("roomimg5") | ||
val roomImg5: String, | ||
) |
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
9 changes: 9 additions & 0 deletions
9
app/src/main/java/kr/ksw/visitkorea/domain/usecase/detail/GetDetailInfoUseCase.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,9 @@ | ||
package kr.ksw.visitkorea.domain.usecase.detail | ||
|
||
import kr.ksw.visitkorea.data.remote.dto.DetailInfoDTO | ||
|
||
interface GetDetailInfoUseCase { | ||
suspend operator fun invoke( | ||
contentId: String | ||
): Result<List<DetailInfoDTO>> | ||
} |
17 changes: 17 additions & 0 deletions
17
app/src/main/java/kr/ksw/visitkorea/domain/usecase/detail/GetDetailInfoUseCaseImpl.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,17 @@ | ||
package kr.ksw.visitkorea.domain.usecase.detail | ||
|
||
import kr.ksw.visitkorea.data.remote.dto.DetailInfoDTO | ||
import kr.ksw.visitkorea.data.repository.DetailRepository | ||
import javax.inject.Inject | ||
|
||
class GetDetailInfoUseCaseImpl @Inject constructor( | ||
private val detailRepository: DetailRepository | ||
) : GetDetailInfoUseCase { | ||
override suspend fun invoke( | ||
contentId: String | ||
): Result<List<DetailInfoDTO>> { | ||
return detailRepository.getDetailInfo( | ||
contentId = contentId | ||
) | ||
} | ||
} |