package com.ruoyi.dj.mqtt.domain;

import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.Data;

import java.io.IOException;
import java.util.List;

@Data
public class VideoRoot {
    private String tid;
    private String bid;
    private long timestamp;
    private DataContent data;
    private String gateway;

    @Data
    public static class DataContent {
        private LiveCapacity live_capacity;

        @Data
        public static class LiveCapacity {
            private int available_video_number;
            private int coexist_video_number_max;
            private List<Device> device_list;

            @Data
            public static class Device {
                private String sn;
                private int available_video_number;
                private int coexist_video_number_max;
                private List<Camera> camera_list;

                @Data
                public static class Camera {
                    private String camera_index;
                    private int available_video_number;
                    private int coexist_video_number_max;
                    private List<Video> video_list;
                    private List<Integer> availabe_camera_positions;
                    private int camera_position;

                    @Data
                    public static class Video {
                        private String video_index;
                        private String video_type;
                        private List<String> switchable_video_types;
                    }
                }
            }
        }
    }
}
