package com.sz.admin.monitor.utils;

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

import java.util.List;

@Data
public class AlgMediaConfigResponse {

    @JsonProperty("BoardId")
    private String boardId;

    @JsonProperty("BoardIp")
    private String boardIp;

    @JsonProperty("Event")
    private String event;

    private Integer albumId;
    private String albumName;

    @JsonProperty("Result")
    private ResultInfo result;

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

    @Data
    public static class MediaStreamInfo {
        @JsonProperty("MediaDesc")
        private String mediaDesc;
        @JsonProperty("MediaName")
        private String mediaName;
        @JsonProperty("MediaUrl")
        private String mediaUrl;
    }

    @Data
    public static class ResultInfo {
        @JsonProperty("Code")
        private Integer code;
        @JsonProperty("Desc")
        private String desc;
    }
}