fix: 채팅 탭 data class
- SerializedName 추가
This commit is contained in:
		@@ -1,8 +1,12 @@
 | 
				
			|||||||
package kr.co.vividnext.sodalive.chat.character
 | 
					package kr.co.vividnext.sodalive.chat.character
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import androidx.annotation.Keep
 | 
				
			||||||
 | 
					import com.google.gson.annotations.SerializedName
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					@Keep
 | 
				
			||||||
data class Character(
 | 
					data class Character(
 | 
				
			||||||
    val id: String,
 | 
					    @SerializedName("id") val id: String,
 | 
				
			||||||
    val name: String,
 | 
					    @SerializedName("name") val name: String,
 | 
				
			||||||
    val description: String,
 | 
					    @SerializedName("description") val description: String,
 | 
				
			||||||
    val imageUrl: String
 | 
					    @SerializedName("imageUrl") val imageUrl: String
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,13 +1,16 @@
 | 
				
			|||||||
package kr.co.vividnext.sodalive.chat.character
 | 
					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.audio_content.main.GetAudioContentBannerResponse
 | 
				
			||||||
import kr.co.vividnext.sodalive.chat.character.curation.CurationSection
 | 
					import kr.co.vividnext.sodalive.chat.character.curation.CurationSection
 | 
				
			||||||
import kr.co.vividnext.sodalive.chat.character.recent.RecentCharacter
 | 
					import kr.co.vividnext.sodalive.chat.character.recent.RecentCharacter
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					@Keep
 | 
				
			||||||
data class CharacterHomeResponse(
 | 
					data class CharacterHomeResponse(
 | 
				
			||||||
    val banners: List<GetAudioContentBannerResponse>,
 | 
					    @SerializedName("banners") val banners: List<GetAudioContentBannerResponse>,
 | 
				
			||||||
    val recentCharacters: List<RecentCharacter>,
 | 
					    @SerializedName("recentCharacters") val recentCharacters: List<RecentCharacter>,
 | 
				
			||||||
    val popularCharacters: List<Character>,
 | 
					    @SerializedName("popularCharacters") val popularCharacters: List<Character>,
 | 
				
			||||||
    val newCharacters: List<Character>,
 | 
					    @SerializedName("newCharacters") val newCharacters: List<Character>,
 | 
				
			||||||
    val curationSections: List<CurationSection>
 | 
					    @SerializedName("curationSections") val curationSections: List<CurationSection>
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,9 +1,12 @@
 | 
				
			|||||||
package kr.co.vividnext.sodalive.chat.character.curation
 | 
					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
 | 
					import kr.co.vividnext.sodalive.chat.character.Character
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					@Keep
 | 
				
			||||||
data class CurationSection(
 | 
					data class CurationSection(
 | 
				
			||||||
    val id: String,
 | 
					    @SerializedName("id") val id: String,
 | 
				
			||||||
    val title: String,
 | 
					    @SerializedName("title") val title: String,
 | 
				
			||||||
    val characters: List<Character>
 | 
					    @SerializedName("characters") val characters: List<Character>
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,7 +1,11 @@
 | 
				
			|||||||
package kr.co.vividnext.sodalive.chat.character.recent
 | 
					package kr.co.vividnext.sodalive.chat.character.recent
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import androidx.annotation.Keep
 | 
				
			||||||
 | 
					import com.google.gson.annotations.SerializedName
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					@Keep
 | 
				
			||||||
data class RecentCharacter(
 | 
					data class RecentCharacter(
 | 
				
			||||||
    val id: String,
 | 
					    @SerializedName("id") val id: String,
 | 
				
			||||||
    val name: String,
 | 
					    @SerializedName("name") val name: String,
 | 
				
			||||||
    val profileImageUrl: String
 | 
					    @SerializedName("profileImageUrl") val profileImageUrl: String
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,10 +1,14 @@
 | 
				
			|||||||
package kr.co.vividnext.sodalive.chat.talk
 | 
					package kr.co.vividnext.sodalive.chat.talk
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import androidx.annotation.Keep
 | 
				
			||||||
 | 
					import com.google.gson.annotations.SerializedName
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					@Keep
 | 
				
			||||||
data class TalkRoom(
 | 
					data class TalkRoom(
 | 
				
			||||||
    val id: Long,
 | 
					    @SerializedName("id") val id: Long,
 | 
				
			||||||
    val profileImageUrl: String,
 | 
					    @SerializedName("profileImageUrl") val profileImageUrl: String,
 | 
				
			||||||
    val characterName: String,
 | 
					    @SerializedName("characterName") val characterName: String,
 | 
				
			||||||
    val characterType: String,
 | 
					    @SerializedName("characterType") val characterType: String,
 | 
				
			||||||
    val lastMessageTime: String,
 | 
					    @SerializedName("lastMessageTime") val lastMessageTime: String,
 | 
				
			||||||
    val lastMessage: String
 | 
					    @SerializedName("lastMessage") val lastMessage: String
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,10 @@
 | 
				
			|||||||
package kr.co.vividnext.sodalive.chat.talk
 | 
					package kr.co.vividnext.sodalive.chat.talk
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import androidx.annotation.Keep
 | 
				
			||||||
 | 
					import com.google.gson.annotations.SerializedName
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					@Keep
 | 
				
			||||||
data class TalkRoomResponse(
 | 
					data class TalkRoomResponse(
 | 
				
			||||||
    val totalCount: Int,
 | 
					    @SerializedName("totalCount") val totalCount: Int,
 | 
				
			||||||
    val items: List<TalkRoom>
 | 
					    @SerializedName("items") val items: List<TalkRoom>
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user