package gc.mda.signal_batch.global.websocket.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class QueryStatusUpdate {
    private String queryId;
    private String status; // STARTED, PROCESSING, COMPLETED, CANCELLED, ERROR, QUEUED
    private String message;
    private Double progressPercentage;
    private Integer queuePosition;
    private Integer totalInQueue;

    public QueryStatusUpdate(String queryId, String status, String message, Double progressPercentage) {
        this.queryId = queryId;
        this.status = status;
        this.message = message;
        this.progressPercentage = progressPercentage;
    }
}