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
/**
 *  Auto created by ApiCreator Tool.
 *  SVN Rev: 115716, Author: 32725, Date: 2018-11-07 14:31:28 +0800 
 *  SHOULD NOT MODIFY!
 */
 
#ifndef _LC_OPENAPI_CLIENT_QueryLocalRecords_H_
#define _LC_OPENAPI_CLIENT_QueryLocalRecords_H_
 
#include "LCOpenApiDefine.h"
#include "LCOpenApiRequest.h"
#include "LCOpenApiResponse.h"
 
/** DESCRIPTION: 
按照开始和结束时间查询设备录像
 
 */
 
namespace Dahua{
namespace LCOpenApi{
    using namespace std;
    class QueryLocalRecordsRequest : public LCOpenApiRequest
    {
    public:
        class QueryLocalRecordsRequestData
        {
        public:
            QueryLocalRecordsRequestData();
            ~QueryLocalRecordsRequestData();
            
        public:
            /** 从第几条到第几条,单次查询上限100,1-100表示第1条到第100条,包含100,云录像查询相同 */
            string queryRange;
        public:
            /** [cstr]All */
            #define _STATIC_QueryLocalRecordsRequestData_type "All"
            string type;
        public:
            /** [cstr]queryLocalRecords */
            #define _STATIC_QueryLocalRecordsRequestData_method "queryLocalRecords"
            string method;
        public:
            /** 授权token(userToken或accessToken) */
            string token;
        public:
            /** 结束时间,如2010-05-25 23:59:59 */
            string endTime;
        public:
            /** 通道ID */
            string channelId;
        public:
            /** 开始时间,如2010-05-25 00:00:00 */
            string beginTime;
        public:
            /** 设备ID */
            string deviceId;
 
        };
    public:
        QueryLocalRecordsRequest();
        ~QueryLocalRecordsRequest();
    public:
        virtual int build();
    public:
        QueryLocalRecordsRequestData data;
    };
 
    
    typedef typename QueryLocalRecordsRequest::QueryLocalRecordsRequestData QueryLocalRecordsRequestData;
 
 
    class QueryLocalRecordsResponse : public LCOpenApiResponse
    {
    public:
        class QueryLocalRecordsResponseData
        {
        public:
            QueryLocalRecordsResponseData();
            ~QueryLocalRecordsResponseData();
            
        public:
            /** define a list with struct of QueryLocalRecordsResponseData_RecordsElement */
            class QueryLocalRecordsResponseData_RecordsElement : public LCOpenApiBase
            {
            public:
                QueryLocalRecordsResponseData_RecordsElement();
                ~QueryLocalRecordsResponseData_RecordsElement();
            public:
                /** 类型,Manual、Event、All */
                string type;
            public:
                /** 结束时间,如2010-05-25 23:59:59 */
                string endTime;
            public:
                /** 录像文件名 */
                string recordId;
            public:
                /** 开始时间,如2010-05-25 00:00:00 */
                string beginTime;
            public:
                /** 通道ID */
                string channelID;
            public:
                /** [long]录像文件长度 */
                int64 fileLength;
            };
        public:
            LCOpenApiVector<QueryLocalRecordsResponseData_RecordsElement> records;
 
        };
    public:
        QueryLocalRecordsResponse();
        ~QueryLocalRecordsResponse();
    public:
        virtual int parse();
    public:
        QueryLocalRecordsResponseData data;
    };
 
    
    typedef typename QueryLocalRecordsResponse::QueryLocalRecordsResponseData QueryLocalRecordsResponseData;
    typedef typename QueryLocalRecordsResponse::QueryLocalRecordsResponseData::QueryLocalRecordsResponseData_RecordsElement QueryLocalRecordsResponseData_RecordsElement;
 
}
}
 
#endif