package ru.soune.nocopy.dto.file;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Map;

@Data
@Builder
public class ChunkStatusResponse {
    @JsonProperty("upload_id")
    private String uploadId;

    @JsonProperty("total_chunks")
    private Integer totalChunks;

    @JsonProperty("chunk_status")
    private Map<String, Boolean> chunkStatus;

    @JsonProperty("uploaded_chunks")
    private Integer uploadedChunks;

    @JsonProperty("missing_chunks")
    private Integer missingChunks;
}