package com.yutou.biliapi.bean.live;

import com.alibaba.fastjson2.annotation.JSONField;
import lombok.Data;

import java.util.List;

@Data
public class LiveDanmuInfo {
    @JSONField(name = "group")
    private String group;

    @JSONField(name = "business_id")
    private int businessId;

    @JSONField(name = "refresh_row_factor")
    private double refreshRowFactor;

    @JSONField(name = "refresh_rate")
    private int refreshRate;

    @JSONField(name = "max_delay")
    private int maxDelay;

    @JSONField(name = "token")
    private String token;

    @JSONField(name = "host_list")
    private List<Host> hostList;

    @Data
    public static class Host {

        @JSONField(name = "host")
        private String host;

        @JSONField(name = "port")
        private int port;

        @JSONField(name = "wss_port")
        private int wssPort;

        @JSONField(name = "ws_port")
        private int wsPort;
    }
}
