package com.backendsys.modules.sdk.tencentcloud.cos.entity;

import cn.hutool.json.JSONUtil;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.math.BigDecimal;

@Data
public class Progress {

    private String state;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String filename;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long current;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long total;
    private BigDecimal percent;

    public String toJsonStr() {
        return JSONUtil.toJsonStr(this);
    }

}
