package com.khmer9.lotto.remote
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass

@JsonClass(generateAdapter = true)
data class ResultResponse(

    @Json(name = "code")
    val resultCode: String,
    @Json(name = "message")
    val message: ResultMessage,
    @Json(name = "data")
    val data: ResultData?
)

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

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

@JsonClass(generateAdapter = true)
data class ResultData(
    @Json(name = "object")
    val resultList: List<ResultLotto>?
)

@JsonClass(generateAdapter = true)
data class ResultLotto(

    @Json(name = "_id")
    var id: String,

    @Json(name = "no")
    var no: String,


    @Json(name = "set_result_id")
    var smallBigSetId: String,

    @Json(name = "type_of_betting")
    val resultSmallOrBig: String,

    @Json(name = "category")
    var categorySmallOrBig: String,

    @Json(name = "set_result_id_range")
    var rangeSetId: String,

    @Json(name = "type_of_betting_range")
    val resultRange: String,

    @Json(name = "category_range")
    var categoryRange: String
)
