package com.khmer9.yuki.remote

import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass

@JsonClass(generateAdapter = true)
data class YukiSetResponse(
    @Json(name = "code")
    val resultCode: String,

    @Json(name = "message")
    val message: ReportYukiSetMessage,

    @Json(name = "data")
    val data: List<YukiSet>?
)

@JsonClass(generateAdapter = true)
data class ReportYukiSetMessage(
    @Json(name = "code")
    val code: String,

    @Json(name = "descriptions")
    val description: String
)

@JsonClass(generateAdapter = true)
data class YukiSet(
    @Json(name = "_id")
    var id: String,

    @Json(name = "year_number")
    val year_number: Int,

    @Json(name = "name")
    val name: Int,

    @Json(name = "color")
    val color: Int,

    @Json(name = "payout")
    val payout: Double,

    @Json(name = "type")
    val type: Int
)