package com.kingdee.eas.custom.integration.beisen.dto;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.ArrayList;
import java.util.List;

/**
 * 考勤数据写入响应
 */
public class AttendanceResponse {

    /** 总条数 */
    @JsonProperty("totalCount")
    private int totalCount;

    /** 写入成功条数 */
    @JsonProperty("successCount")
    private int successCount;

    /** 写入失败条数 */
    @JsonProperty("failCount")
    private int failCount;

    /** 失败详情 */
    @JsonProperty("failDetails")
    private List<FailDetail> failDetails;

    public AttendanceResponse() {
        this.failDetails = new ArrayList<>();
    }

    public int getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(int totalCount) {
        this.totalCount = totalCount;
    }

    public int getSuccessCount() {
        return successCount;
    }

    public void setSuccessCount(int successCount) {
        this.successCount = successCount;
    }

    public int getFailCount() {
        return failCount;
    }

    public void setFailCount(int failCount) {
        this.failCount = failCount;
    }

    public List<FailDetail> getFailDetails() {
        return failDetails;
    }

    public void setFailDetails(List<FailDetail> failDetails) {
        this.failDetails = failDetails;
    }

    public void addFailDetail(FailDetail detail) {
        this.failDetails.add(detail);
    }
}
