JLChen
2021-11-04 1443556e9ccb1a19ed8e6710c16c8adc4d4f4fb3
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
/**
 *  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_SetDeviceSnap_H_
#define _LC_OPENAPI_CLIENT_SetDeviceSnap_H_
 
#include "LCOpenApiDefine.h"
#include "LCOpenApiRequest.h"
#include "LCOpenApiResponse.h"
 
/** DESCRIPTION: 
设置摄像头抓图
注:客户端请求时间间隔需大于等于1s,若客户端请求时间间隔小于3s,默认返回上一次抓图图片;返回结果中,抓图访问地址(url)1年内有效。
 
 */
 
namespace Dahua{
namespace LCOpenApi{
    using namespace std;
    class SetDeviceSnapRequest : public LCOpenApiRequest
    {
    public:
        class SetDeviceSnapRequestData
        {
        public:
            SetDeviceSnapRequestData();
            ~SetDeviceSnapRequestData();
            
        public:
            /** [bool]图片是否加密,true:加密,false:不加密 */
            bool encrypt;
        public:
            /** 授权token(userToken或accessToken) */
            string token;
        public:
            /** 通道ID */
            string channelId;
        public:
            /** [cstr]setDeviceSnap */
            #define _STATIC_SetDeviceSnapRequestData_method "setDeviceSnap"
            string method;
        public:
            /** 设备ID */
            string deviceId;
 
        };
    public:
        SetDeviceSnapRequest();
        ~SetDeviceSnapRequest();
    public:
        virtual int build();
    public:
        SetDeviceSnapRequestData data;
    };
 
    
    typedef typename SetDeviceSnapRequest::SetDeviceSnapRequestData SetDeviceSnapRequestData;
 
 
    class SetDeviceSnapResponse : public LCOpenApiResponse
    {
    public:
        class SetDeviceSnapResponseData
        {
        public:
            SetDeviceSnapResponseData();
            ~SetDeviceSnapResponseData();
            
        public:
            /** 抓图访问地址 */
            string url;
 
        };
    public:
        SetDeviceSnapResponse();
        ~SetDeviceSnapResponse();
    public:
        virtual int parse();
    public:
        SetDeviceSnapResponseData data;
    };
 
    
    typedef typename SetDeviceSnapResponse::SetDeviceSnapResponseData SetDeviceSnapResponseData;
 
}
}
 
#endif