From 4e2ce03ae197117536d005b151f221ba0eef38bb Mon Sep 17 00:00:00 2001 From: rkdmf1026 <50603273+rkdmf1026@users.noreply.github.com> Date: Wed, 4 Oct 2023 19:44:05 +0900 Subject: [PATCH] =?UTF-8?q?#102=20/=20API=20=EB=B3=80=EA=B2=BD=EC=97=90=20?= =?UTF-8?q?=EB=94=B0=EB=A5=B8=20=ED=95=9C=ED=8C=90=EC=8A=B9=EB=B6=80=20?= =?UTF-8?q?=EA=B4=80=EB=A0=A8=20=EB=8D=B0=EC=9D=B4=ED=84=B0=20=ED=81=B4?= =?UTF-8?q?=EB=9E=98=EC=8A=A4=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../data/entity/shortgame/MissionCategory.kt | 18 ++++++++++++------ .../data/entity/shortgame/MissionContent.kt | 4 ++-- .../data/entity/shortgame/MissionExample.kt | 2 ++ .../response/ResponseShortGameResultDto.kt | 2 +- 4 files changed, 17 insertions(+), 9 deletions(-) diff --git a/app/src/main/java/sopt/uni/data/entity/shortgame/MissionCategory.kt b/app/src/main/java/sopt/uni/data/entity/shortgame/MissionCategory.kt index a5bb7ca6..0e1930a8 100644 --- a/app/src/main/java/sopt/uni/data/entity/shortgame/MissionCategory.kt +++ b/app/src/main/java/sopt/uni/data/entity/shortgame/MissionCategory.kt @@ -5,20 +5,26 @@ import kotlinx.serialization.Serializable @Serializable data class MissionCategory( - @SerialName("description") - val description: String, @SerialName("expectedTime") val expectedTime: Int, @SerialName("id") val id: Int, + @SerialName("title") + val title: String, + @SerialName("description") + val description: String, + @SerialName("rule") + val rule: String, + @SerialName("tip") + val tip: String, + @SerialName("example") + val example: String, @SerialName("image") val image: String, @SerialName("level") val level: Int, @SerialName("missionType") val missionType: String, - @SerialName("tip") - val tip: String, - @SerialName("title") - val title: String, + @SerialName("missionTool") + val missionTool: String, ) diff --git a/app/src/main/java/sopt/uni/data/entity/shortgame/MissionContent.kt b/app/src/main/java/sopt/uni/data/entity/shortgame/MissionContent.kt index d8c79ee5..f1275f36 100644 --- a/app/src/main/java/sopt/uni/data/entity/shortgame/MissionContent.kt +++ b/app/src/main/java/sopt/uni/data/entity/shortgame/MissionContent.kt @@ -9,8 +9,8 @@ data class MissionContent( val content: String, @SerialName("id") val id: Int, - @SerialName("image") - val image: String, + @SerialName("recommendTime") + val recommendTime: String?, @SerialName("missionCategory") val missionCategory: MissionCategory, ) diff --git a/app/src/main/java/sopt/uni/data/entity/shortgame/MissionExample.kt b/app/src/main/java/sopt/uni/data/entity/shortgame/MissionExample.kt index d00d4477..8cb9f37d 100644 --- a/app/src/main/java/sopt/uni/data/entity/shortgame/MissionExample.kt +++ b/app/src/main/java/sopt/uni/data/entity/shortgame/MissionExample.kt @@ -9,4 +9,6 @@ data class MissionExample( val id: Int, @SerialName("content") val content: String, + @SerialName("recommend_time") + val recommendTime: String? ) diff --git a/app/src/main/java/sopt/uni/data/source/remote/response/ResponseShortGameResultDto.kt b/app/src/main/java/sopt/uni/data/source/remote/response/ResponseShortGameResultDto.kt index 653419a1..b73215d7 100644 --- a/app/src/main/java/sopt/uni/data/source/remote/response/ResponseShortGameResultDto.kt +++ b/app/src/main/java/sopt/uni/data/source/remote/response/ResponseShortGameResultDto.kt @@ -9,5 +9,5 @@ data class ResponseShortGameResultDto( @SerialName("myRoundMission") val myRoundMission: RoundMission, @SerialName("partnerRoundMission") - val partnerRoundMission: RoundMission?, + val partnerRoundMission: RoundMission? = null, )