package com.caliverse.admin.domain.response;

import com.caliverse.admin.domain.entity.Calium;
import com.caliverse.admin.domain.entity.LANGUAGETYPE;
import com.caliverse.admin.domain.entity.web3.ResponseWithdrawableData;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class CaliumResponse {
    private int status;

    private String result;

    @JsonProperty("data")
    private ResultData resultData;

    @Data
    @Builder
    @JsonInclude(JsonInclude.Include.NON_NULL)
    public static class ResultData{

        private String message;

        @JsonProperty("detail")
        private Calium calium;

        @JsonProperty("withdrawable_info")
        private ResponseWithdrawableData withdrawableInfo;

        @JsonProperty("list")
        private List<Calium> caliumList;
//        private int total;
        private double total;
        @JsonProperty("total_all")
//        private int totalAll;
        private double totalAll;
        @JsonProperty("page_no")
        private int pageNo;
    }
}
