JLChen
2021-05-17 a722e767f98042d5ef6259d2dde7854c925e4167
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
/**
 *  Auto created by ApiCreator Tool.
 *  SVN Rev: 103366, Author: 32725, Date: 2018-07-18 10:43:06 +0800 
 *  SHOULD NOT MODIFY!
 */
 
#ifndef _LC_OPENAPI_CLIENT_BeAuthDeviceList_H_
#define _LC_OPENAPI_CLIENT_BeAuthDeviceList_H_
 
#include "LCOpenApiDefine.h"
#include "LCOpenApiRequest.h"
#include "LCOpenApiResponse.h"
 
/** DESCRIPTION: 
获取授权的设备列表
 
 */
 
namespace Dahua{
namespace LCOpenApi{
    using namespace std;
    class BeAuthDeviceListRequest : public LCOpenApiRequest
    {
    public:
        class BeAuthDeviceListRequestData
        {
        public:
            BeAuthDeviceListRequestData();
            ~BeAuthDeviceListRequestData();
            
        public:
            /** 比如1-50 */
            string queryRange;
        public:
            /** [cstr]beAuthDeviceList */
            #define _STATIC_BeAuthDeviceListRequestData_method "beAuthDeviceList"
            string method;
        public:
            /** 授权token(userToken或accessToken) */
            string token;
 
        };
    public:
        BeAuthDeviceListRequest();
        ~BeAuthDeviceListRequest();
    public:
        virtual int build();
    public:
        BeAuthDeviceListRequestData data;
    };
 
    
    typedef typename BeAuthDeviceListRequest::BeAuthDeviceListRequestData BeAuthDeviceListRequestData;
 
 
    class BeAuthDeviceListResponse : public LCOpenApiResponse
    {
    public:
        class BeAuthDeviceListResponseData
        {
        public:
            BeAuthDeviceListResponseData();
            ~BeAuthDeviceListResponseData();
            
        public:
            /** define a list with struct of BeAuthDeviceListResponseData_DevicesElement */
            class BeAuthDeviceListResponseData_DevicesElement : public LCOpenApiBase
            {
            public:
                BeAuthDeviceListResponseData_DevicesElement();
                ~BeAuthDeviceListResponseData_DevicesElement();
            public:
                /** [O]设备品牌信息:lechange-乐橙设备,general-通用设备 */
                string brand;
            public:
                /** [int]云存储状态:-1-未开通 0-已失效 1-使用中 2-套餐暂停 */
                int csStatus;
            public:
                /** [int]p2p拉流端口 */
                int streamPort;
            public:
                /** [bool]是否有新版本可以升级 */
                bool canBeUpgrade;
            public:
                /** [int]当前状态:0-离线,1-在线,3-升级中 */
                int status;
            public:
                /** 设备登陆密码 */
                string devLoginPassword;
            public:
                /** [O]设备分类【NVR/DVR/HCVR/IPC/SD/IHG/ARC】 */
                string deviceCatalog;
            public:
                /** [O]设备基线类型,详见华视微讯设备协议 */
                string baseline;
            public:
                /** 共享或者授权的功能列表(逗号隔开) */
                string functions;
            public:
                /** [O]设备能力项,逗号隔开,如AlarmMD,AudioTalk,AlarmPIR,WLAN,VVP2P,详见华视微讯设备协议 */
                string ability;
            public:
                /** [O]设备型号 */
                string deviceModel;
            public:
                /** 设备ID */
                string deviceId;
            public:
                /** 设备名称 */
                string name;
            public:
                /** 通道名称 */
                string channelName;
            public:
                /** 设备软件版本号 */
                string version;
            public:
                /** [int]通道号 */
                int channelId;
            public:
                /** 缩略图URL */
                string channelPicUrl;
            public:
                /** [int]加密模式 */
                int encryptMode;
            public:
                /** [bool]是否在线 */
                bool channelOnline;
            public:
                /** 设备登陆用户名 */
                string devLoginName;
            };
        public:
            LCOpenApiVector<BeAuthDeviceListResponseData_DevicesElement> devices;
 
        };
    public:
        BeAuthDeviceListResponse();
        ~BeAuthDeviceListResponse();
    public:
        virtual int parse();
    public:
        BeAuthDeviceListResponseData data;
    };
 
    
    typedef typename BeAuthDeviceListResponse::BeAuthDeviceListResponseData BeAuthDeviceListResponseData;
    typedef typename BeAuthDeviceListResponse::BeAuthDeviceListResponseData::BeAuthDeviceListResponseData_DevicesElement BeAuthDeviceListResponseData_DevicesElement;
 
}
}
 
#endif