package com.usky.ai.dto;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.List;

@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class AlgSuitFetchResponseDTO {
    @JsonProperty("BoardIp")
    private String boardIp;

    @JsonProperty("BoardId")
    private String boardId;

    @JsonProperty("Event")
    private String event;

    @JsonProperty("Result")
    private Result result;

    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class Result {
        @JsonProperty("Code")
        private int code;

        @JsonProperty("Desc")
        private String desc;

        @JsonProperty("Content")
        private List<SuitGroup> content;
    }

    @Data
    public static class SuitGroup {
        @JsonProperty("id")
        private int id;

        @JsonProperty("name")
        private String name;

        @JsonProperty("features")
        private List<Feature> features;
    }

    @Data
    public static class Feature {
        @JsonProperty("feature")
        private String feature;

        @JsonProperty("fid")
        private int fid;

        @JsonProperty("jpeg")
        private String jpeg;

        @JsonProperty("size")
        private int size;
    }

    private long time = System.currentTimeMillis();
}
