package com.ff.game.api.xk.dto;

import io.jsonwebtoken.lang.Collections;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

@NoArgsConstructor
@Data
public class XKBetRecordResponseDTO {

    private Integer code;
    private String msg;
    private DataBean data;

    @NoArgsConstructor
    @Data
    public static class DataBean {
        private Integer currentPage;
        private Integer totalPages;
        private Integer pageLimit;
        private Integer totalNumber;
        private List<ResultBean> result;

        public List<ResultBean> getResult() {
            if (Collections.isEmpty(result)) {
                return new ArrayList<>();
            }
            return result;
        }

        @NoArgsConstructor
        @Data
        public static class ResultBean {
            private String account;
            private Long wagersId;
            private Integer gameId;
            private Long wagersTime;
            private BigDecimal betAmount;
            private Long payoffTime;
            private BigDecimal payoffAmount;
            private Integer status;
            private Long settlementTime;
            private Integer gameCategoryId;
            private Integer type;
            private String agentId;
            private BigDecimal turnover;
            private Long roundIndex;
        }
    }
}
