fix(creator): 채널 활동 dday 응답을 매핑한다
This commit is contained in:
@@ -123,7 +123,7 @@ data class CreatorChannelFanTalkResponse(
|
|||||||
@Keep
|
@Keep
|
||||||
data class CreatorChannelActivityResponse(
|
data class CreatorChannelActivityResponse(
|
||||||
@SerializedName("debutDateUtc") val debutDateUtc: String?,
|
@SerializedName("debutDateUtc") val debutDateUtc: String?,
|
||||||
@SerializedName("dDay") val dDay: String,
|
@SerializedName("dday") val dDay: String,
|
||||||
@SerializedName("liveCount") val liveCount: Long,
|
@SerializedName("liveCount") val liveCount: Long,
|
||||||
@SerializedName("liveDurationHours") val liveDurationHours: Long,
|
@SerializedName("liveDurationHours") val liveDurationHours: Long,
|
||||||
@SerializedName("liveContributorCount") val liveContributorCount: Long,
|
@SerializedName("liveContributorCount") val liveContributorCount: Long,
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ class CreatorChannelHomeModelsTest {
|
|||||||
assertNull(response.latestAudioContent)
|
assertNull(response.latestAudioContent)
|
||||||
assertNull(response.fanTalk.latestFanTalk)
|
assertNull(response.fanTalk.latestFanTalk)
|
||||||
assertNull(response.activity.debutDateUtc)
|
assertNull(response.activity.debutDateUtc)
|
||||||
|
assertEquals("D+1", response.activity.dDay)
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@@ -70,7 +71,7 @@ class CreatorChannelHomeModelsTest {
|
|||||||
"introduce": "intro",
|
"introduce": "intro",
|
||||||
"activity": {
|
"activity": {
|
||||||
"debutDateUtc": null,
|
"debutDateUtc": null,
|
||||||
"dDay": "D+1",
|
"dday": "D+1",
|
||||||
"liveCount": 1,
|
"liveCount": 1,
|
||||||
"liveDurationHours": 2,
|
"liveDurationHours": 2,
|
||||||
"liveContributorCount": 3,
|
"liveContributorCount": 3,
|
||||||
|
|||||||
Reference in New Issue
Block a user