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
/**
 *  Auto created by ApiCreator Tool.
 *  SVN Rev: 79835, Author: 32725, Date: 2017-11-10 11:03:30 +0800 
 *  SHOULD NOT MODIFY!
 */
 
#ifndef _LC_OPENAPI_CLIENT_DeviceAlarmPlan_H_
#define _LC_OPENAPI_CLIENT_DeviceAlarmPlan_H_
 
#include "LCOpenApiDefine.h"
#include "LCOpenApiRequest.h"
#include "LCOpenApiResponse.h"
 
/** DESCRIPTION: 
获取设备的动检计划
 
 */
 
namespace Dahua{
namespace LCOpenApi{
    using namespace std;
    class DeviceAlarmPlanRequest : public LCOpenApiRequest
    {
    public:
        class DeviceAlarmPlanRequestData
        {
        public:
            DeviceAlarmPlanRequestData();
            ~DeviceAlarmPlanRequestData();
            
        public:
            /** 授权token(userToken或accessToken) */
            string token;
        public:
            /** 通道ID */
            string channelId;
        public:
            /** [cstr]deviceAlarmPlan */
            #define _STATIC_DeviceAlarmPlanRequestData_method "deviceAlarmPlan"
            string method;
        public:
            /** 设备ID */
            string deviceId;
 
        };
    public:
        DeviceAlarmPlanRequest();
        ~DeviceAlarmPlanRequest();
    public:
        virtual int build();
    public:
        DeviceAlarmPlanRequestData data;
    };
 
    
    typedef typename DeviceAlarmPlanRequest::DeviceAlarmPlanRequestData DeviceAlarmPlanRequestData;
 
 
    class DeviceAlarmPlanResponse : public LCOpenApiResponse
    {
    public:
        class DeviceAlarmPlanResponseData
        {
        public:
            DeviceAlarmPlanResponseData();
            ~DeviceAlarmPlanResponseData();
            
        public:
            /** define a list with struct of DeviceAlarmPlanResponseData_RulesElement */
            class DeviceAlarmPlanResponseData_RulesElement : public LCOpenApiBase
            {
            public:
                DeviceAlarmPlanResponseData_RulesElement();
                ~DeviceAlarmPlanResponseData_RulesElement();
            public:
                /** 重复周期 */
                string period;
            public:
                /** [bool]是否有效(true:开;false:关) */
                bool enable;
            public:
                /** 开始时间 */
                string beginTime;
            public:
                /** 结束时间 */
                string endTime;
            public:
                /** [long]时间戳 */
                int64 timestamp;
            };
        public:
            LCOpenApiVector<DeviceAlarmPlanResponseData_RulesElement> rules;
        public:
            /** 通道ID */
            string channelId;
 
        };
    public:
        DeviceAlarmPlanResponse();
        ~DeviceAlarmPlanResponse();
    public:
        virtual int parse();
    public:
        DeviceAlarmPlanResponseData data;
    };
 
    
    typedef typename DeviceAlarmPlanResponse::DeviceAlarmPlanResponseData DeviceAlarmPlanResponseData;
    typedef typename DeviceAlarmPlanResponse::DeviceAlarmPlanResponseData::DeviceAlarmPlanResponseData_RulesElement DeviceAlarmPlanResponseData_RulesElement;
 
}
}
 
#endif