package com.lingniu.ingest.protocol.jsatl12.inbound;

import java.util.List;

public record Jsatl12UploadCompletionAck(
        String name,
        int type,
        int result,
        List<Range> missingRanges
) {
    public Jsatl12UploadCompletionAck {
        name = name == null ? "" : name;
        missingRanges = missingRanges == null ? List.of() : List.copyOf(missingRanges);
    }

    public record Range(long offset, long length) {}
}
