feat(chat): 채팅방 목록 응답 모델을 추가한다
This commit is contained in:
@@ -0,0 +1,21 @@
|
|||||||
|
package kr.co.vividnext.sodalive.v2.main.chat.data
|
||||||
|
|
||||||
|
import androidx.annotation.Keep
|
||||||
|
import com.google.gson.annotations.SerializedName
|
||||||
|
|
||||||
|
@Keep
|
||||||
|
data class ChatRoomListPageResponse(
|
||||||
|
@SerializedName("rooms") val rooms: List<ChatRoomListItemResponse>,
|
||||||
|
@SerializedName("hasMore") val hasMore: Boolean,
|
||||||
|
@SerializedName("nextCursor") val nextCursor: String?
|
||||||
|
)
|
||||||
|
|
||||||
|
@Keep
|
||||||
|
data class ChatRoomListItemResponse(
|
||||||
|
@SerializedName("roomId") val roomId: Long,
|
||||||
|
@SerializedName("chatType") val chatType: String,
|
||||||
|
@SerializedName("targetName") val targetName: String,
|
||||||
|
@SerializedName("targetImageUrl") val targetImageUrl: String,
|
||||||
|
@SerializedName("lastMessage") val lastMessage: String,
|
||||||
|
@SerializedName("lastMessageAt") val lastMessageAt: String
|
||||||
|
)
|
||||||
Reference in New Issue
Block a user