fix: 채팅 탭 data class

- SerializedName 추가
This commit is contained in:
2025-08-11 11:22:28 +09:00
parent ea22c7244c
commit 18b61ab74f
6 changed files with 45 additions and 23 deletions

View File

@@ -1,8 +1,12 @@
package kr.co.vividnext.sodalive.chat.character
import androidx.annotation.Keep
import com.google.gson.annotations.SerializedName
@Keep
data class Character(
val id: String,
val name: String,
val description: String,
val imageUrl: String
@SerializedName("id") val id: String,
@SerializedName("name") val name: String,
@SerializedName("description") val description: String,
@SerializedName("imageUrl") val imageUrl: String
)

View File

@@ -1,13 +1,16 @@
package kr.co.vividnext.sodalive.chat.character
import androidx.annotation.Keep
import com.google.gson.annotations.SerializedName
import kr.co.vividnext.sodalive.audio_content.main.GetAudioContentBannerResponse
import kr.co.vividnext.sodalive.chat.character.curation.CurationSection
import kr.co.vividnext.sodalive.chat.character.recent.RecentCharacter
@Keep
data class CharacterHomeResponse(
val banners: List<GetAudioContentBannerResponse>,
val recentCharacters: List<RecentCharacter>,
val popularCharacters: List<Character>,
val newCharacters: List<Character>,
val curationSections: List<CurationSection>
@SerializedName("banners") val banners: List<GetAudioContentBannerResponse>,
@SerializedName("recentCharacters") val recentCharacters: List<RecentCharacter>,
@SerializedName("popularCharacters") val popularCharacters: List<Character>,
@SerializedName("newCharacters") val newCharacters: List<Character>,
@SerializedName("curationSections") val curationSections: List<CurationSection>
)

View File

@@ -1,9 +1,12 @@
package kr.co.vividnext.sodalive.chat.character.curation
import androidx.annotation.Keep
import com.google.gson.annotations.SerializedName
import kr.co.vividnext.sodalive.chat.character.Character
@Keep
data class CurationSection(
val id: String,
val title: String,
val characters: List<Character>
@SerializedName("id") val id: String,
@SerializedName("title") val title: String,
@SerializedName("characters") val characters: List<Character>
)

View File

@@ -1,7 +1,11 @@
package kr.co.vividnext.sodalive.chat.character.recent
import androidx.annotation.Keep
import com.google.gson.annotations.SerializedName
@Keep
data class RecentCharacter(
val id: String,
val name: String,
val profileImageUrl: String
@SerializedName("id") val id: String,
@SerializedName("name") val name: String,
@SerializedName("profileImageUrl") val profileImageUrl: String
)

View File

@@ -1,10 +1,14 @@
package kr.co.vividnext.sodalive.chat.talk
import androidx.annotation.Keep
import com.google.gson.annotations.SerializedName
@Keep
data class TalkRoom(
val id: Long,
val profileImageUrl: String,
val characterName: String,
val characterType: String,
val lastMessageTime: String,
val lastMessage: String
@SerializedName("id") val id: Long,
@SerializedName("profileImageUrl") val profileImageUrl: String,
@SerializedName("characterName") val characterName: String,
@SerializedName("characterType") val characterType: String,
@SerializedName("lastMessageTime") val lastMessageTime: String,
@SerializedName("lastMessage") val lastMessage: String
)

View File

@@ -1,6 +1,10 @@
package kr.co.vividnext.sodalive.chat.talk
import androidx.annotation.Keep
import com.google.gson.annotations.SerializedName
@Keep
data class TalkRoomResponse(
val totalCount: Int,
val items: List<TalkRoom>
@SerializedName("totalCount") val totalCount: Int,
@SerializedName("items") val items: List<TalkRoom>
)