package kr.co.vividnext.sodalive.message

import android.os.Parcelable
import com.google.gson.annotations.SerializedName
import kotlinx.parcelize.Parcelize

data class GetVoiceMessageResponse(
    @SerializedName("totalCount") val totalCount: Int,
    @SerializedName("items") val items: List<VoiceMessageItem>
) {
    data class VoiceMessageItem(
        @SerializedName("messageId") val messageId: Long,
        @SerializedName("senderId") val senderId: Long,
        @SerializedName("senderNickname") val senderNickname: String,
        @SerializedName("senderProfileImageUrl") val senderProfileImageUrl: String,
        @SerializedName("recipientNickname") val recipientNickname: String,
        @SerializedName("recipientProfileImageUrl") val recipientProfileImageUrl: String,
        @SerializedName("voiceMessageUrl") val voiceMessageUrl: String,
        @SerializedName("date") val date: String,
        @SerializedName("isKept") val isKept: Boolean
    )
}

data class GetTextMessageResponse(
    @SerializedName("totalCount") val totalCount: Int,
    @SerializedName("items") val items: List<TextMessageItem>
) {
    @Parcelize
    data class TextMessageItem(
        @SerializedName("messageId") val messageId: Long,
        @SerializedName("senderId") val senderId: Long,
        @SerializedName("senderNickname") val senderNickname: String,
        @SerializedName("senderProfileImageUrl") val senderProfileImageUrl: String,
        @SerializedName("recipientNickname") val recipientNickname: String,
        @SerializedName("recipientProfileImageUrl") val recipientProfileImageUrl: String,
        @SerializedName("textMessage") val textMessage: String,
        @SerializedName("date") val date: String,
        @SerializedName("isKept") val isKept: Boolean
    ) : Parcelable
}
