package ru.soune.nocopy.dto.file;

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

@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UploadProgress {
    @JsonProperty("upload_id")
    private String uploadId;

    @JsonProperty("file_name")
    private String fileName;

    @JsonProperty("total_chunks")
    private Integer totalChunks;

    @JsonProperty("uploaded_chunks")
    private Integer uploadedChunks;

    @JsonProperty("status")
    private String status;

    @JsonProperty("progress_percentage")
    private Integer progressPercentage;

    @JsonProperty("file_path")
    private String filePath;

    @JsonProperty("remaining_chunks")
    private Integer remainingChunks;

    @JsonProperty("message")
    private String message;
}