JLChen
2021-05-13 7f62f2d3bf626ac55d2d2de05ca1d71eaaabef39
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
/**
 *  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_GetStorageStrategy_H_
#define _LC_OPENAPI_CLIENT_GetStorageStrategy_H_
 
#include "LCOpenApiDefine.h"
#include "LCOpenApiRequest.h"
#include "LCOpenApiResponse.h"
 
/** DESCRIPTION: 
获取云存储套餐策略,如开通多个则获取最早开通且未到期的云存储
 
 */
 
namespace Dahua{
namespace LCOpenApi{
    using namespace std;
    class GetStorageStrategyRequest : public LCOpenApiRequest
    {
    public:
        class GetStorageStrategyRequestData
        {
        public:
            GetStorageStrategyRequestData();
            ~GetStorageStrategyRequestData();
            
        public:
            /** [cstr]getStorageStrategy */
            #define _STATIC_GetStorageStrategyRequestData_method "getStorageStrategy"
            string method;
        public:
            /** 通道ID */
            string channelId;
        public:
            /** 授权token(userToken或accessToken) */
            string token;
        public:
            /** 设备ID */
            string deviceId;
 
        };
    public:
        GetStorageStrategyRequest();
        ~GetStorageStrategyRequest();
    public:
        virtual int build();
    public:
        GetStorageStrategyRequestData data;
    };
 
    
    typedef typename GetStorageStrategyRequest::GetStorageStrategyRequestData GetStorageStrategyRequestData;
 
 
    class GetStorageStrategyResponse : public LCOpenApiResponse
    {
    public:
        class GetStorageStrategyResponseData
        {
        public:
            GetStorageStrategyResponseData();
            ~GetStorageStrategyResponseData();
            
        public:
            /** [int]套餐状态 -1-未开通 0-过期 1-使用中 2-暂停 */
            int strategyStatus;
        public:
            /** [int]套餐ID */
            int strategyId;
        public:
            /** 套餐名称 */
            string name;
        public:
            /** [bool]是否有默认套餐 */
            bool hasDefault;
 
        };
    public:
        GetStorageStrategyResponse();
        ~GetStorageStrategyResponse();
    public:
        virtual int parse();
    public:
        GetStorageStrategyResponseData data;
    };
 
    
    typedef typename GetStorageStrategyResponse::GetStorageStrategyResponseData GetStorageStrategyResponseData;
 
}
}
 
#endif