hxb
2022-11-24 535d69817e83737f3da6250fc6fb70da25fc1a4c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package com.common.openapi.entity;
 
import com.google.gson.Gson;
import com.google.gson.JsonObject;
 
import java.io.Serializable;
 
public class DeviceChannelInfoData implements Serializable {
    public DeviceChannelInfoData.RequestData data = new DeviceChannelInfoData.RequestData();
 
    public static class Response {
        public DeviceChannelInfoData.ResponseData data;
 
        public void parseData(JsonObject json) {
            Gson gson = new Gson();
            this.data = gson.fromJson(json.toString(),  DeviceChannelInfoData.ResponseData.class);
        }
    }
 
    public static class ResponseData implements Serializable {
        public String deviceId;
        public int alarmStatus;
        public int channelId;
        public String channelName;
        public String channelOnline;
        public String channelPicUrl;
        public String shareStatus;
        public String shareFunctions;
        public String csStatus;
        public String channelAbility;
    }
 
    public static class RequestData implements Serializable {
        public String token;
        public String deviceId;
        public String channelId="0";
    }
 
}