Iot_20180120 Old sdk.
This commit is contained in:
@@ -146,6 +146,8 @@
|
||||
#include "model/CreateDeviceGroupResult.h"
|
||||
#include "model/CreateDeviceTunnelRequest.h"
|
||||
#include "model/CreateDeviceTunnelResult.h"
|
||||
#include "model/CreateDownloadDataJobRequest.h"
|
||||
#include "model/CreateDownloadDataJobResult.h"
|
||||
#include "model/CreateEdgeDriverRequest.h"
|
||||
#include "model/CreateEdgeDriverResult.h"
|
||||
#include "model/CreateEdgeDriverVersionRequest.h"
|
||||
@@ -324,6 +326,8 @@
|
||||
#include "model/GetDeviceTunnelShareStatusResult.h"
|
||||
#include "model/GetDeviceTunnelStatusRequest.h"
|
||||
#include "model/GetDeviceTunnelStatusResult.h"
|
||||
#include "model/GetDownloadFileRequest.h"
|
||||
#include "model/GetDownloadFileResult.h"
|
||||
#include "model/GetEdgeDriverVersionRequest.h"
|
||||
#include "model/GetEdgeDriverVersionResult.h"
|
||||
#include "model/GetEdgeInstanceRequest.h"
|
||||
@@ -522,6 +526,8 @@
|
||||
#include "model/QueryDeviceSpeechResult.h"
|
||||
#include "model/QueryDeviceStatisticsRequest.h"
|
||||
#include "model/QueryDeviceStatisticsResult.h"
|
||||
#include "model/QueryDeviceSubTopicRequest.h"
|
||||
#include "model/QueryDeviceSubTopicResult.h"
|
||||
#include "model/QueryDeviceTunnelRequest.h"
|
||||
#include "model/QueryDeviceTunnelResult.h"
|
||||
#include "model/QueryDynamicGroupDevicesRequest.h"
|
||||
@@ -961,6 +967,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CreateDeviceTunnelResult> CreateDeviceTunnelOutcome;
|
||||
typedef std::future<CreateDeviceTunnelOutcome> CreateDeviceTunnelOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::CreateDeviceTunnelRequest&, const CreateDeviceTunnelOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDeviceTunnelAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateDownloadDataJobResult> CreateDownloadDataJobOutcome;
|
||||
typedef std::future<CreateDownloadDataJobOutcome> CreateDownloadDataJobOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::CreateDownloadDataJobRequest&, const CreateDownloadDataJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDownloadDataJobAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateEdgeDriverResult> CreateEdgeDriverOutcome;
|
||||
typedef std::future<CreateEdgeDriverOutcome> CreateEdgeDriverOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::CreateEdgeDriverRequest&, const CreateEdgeDriverOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateEdgeDriverAsyncHandler;
|
||||
@@ -1228,6 +1237,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetDeviceTunnelStatusResult> GetDeviceTunnelStatusOutcome;
|
||||
typedef std::future<GetDeviceTunnelStatusOutcome> GetDeviceTunnelStatusOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::GetDeviceTunnelStatusRequest&, const GetDeviceTunnelStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDeviceTunnelStatusAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetDownloadFileResult> GetDownloadFileOutcome;
|
||||
typedef std::future<GetDownloadFileOutcome> GetDownloadFileOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::GetDownloadFileRequest&, const GetDownloadFileOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDownloadFileAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetEdgeDriverVersionResult> GetEdgeDriverVersionOutcome;
|
||||
typedef std::future<GetEdgeDriverVersionOutcome> GetEdgeDriverVersionOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::GetEdgeDriverVersionRequest&, const GetEdgeDriverVersionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetEdgeDriverVersionAsyncHandler;
|
||||
@@ -1525,6 +1537,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::QueryDeviceStatisticsResult> QueryDeviceStatisticsOutcome;
|
||||
typedef std::future<QueryDeviceStatisticsOutcome> QueryDeviceStatisticsOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::QueryDeviceStatisticsRequest&, const QueryDeviceStatisticsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryDeviceStatisticsAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryDeviceSubTopicResult> QueryDeviceSubTopicOutcome;
|
||||
typedef std::future<QueryDeviceSubTopicOutcome> QueryDeviceSubTopicOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::QueryDeviceSubTopicRequest&, const QueryDeviceSubTopicOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryDeviceSubTopicAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryDeviceTunnelResult> QueryDeviceTunnelOutcome;
|
||||
typedef std::future<QueryDeviceTunnelOutcome> QueryDeviceTunnelOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::QueryDeviceTunnelRequest&, const QueryDeviceTunnelOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryDeviceTunnelAsyncHandler;
|
||||
@@ -2082,6 +2097,9 @@ namespace AlibabaCloud
|
||||
CreateDeviceTunnelOutcome createDeviceTunnel(const Model::CreateDeviceTunnelRequest &request)const;
|
||||
void createDeviceTunnelAsync(const Model::CreateDeviceTunnelRequest& request, const CreateDeviceTunnelAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateDeviceTunnelOutcomeCallable createDeviceTunnelCallable(const Model::CreateDeviceTunnelRequest& request) const;
|
||||
CreateDownloadDataJobOutcome createDownloadDataJob(const Model::CreateDownloadDataJobRequest &request)const;
|
||||
void createDownloadDataJobAsync(const Model::CreateDownloadDataJobRequest& request, const CreateDownloadDataJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateDownloadDataJobOutcomeCallable createDownloadDataJobCallable(const Model::CreateDownloadDataJobRequest& request) const;
|
||||
CreateEdgeDriverOutcome createEdgeDriver(const Model::CreateEdgeDriverRequest &request)const;
|
||||
void createEdgeDriverAsync(const Model::CreateEdgeDriverRequest& request, const CreateEdgeDriverAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateEdgeDriverOutcomeCallable createEdgeDriverCallable(const Model::CreateEdgeDriverRequest& request) const;
|
||||
@@ -2349,6 +2367,9 @@ namespace AlibabaCloud
|
||||
GetDeviceTunnelStatusOutcome getDeviceTunnelStatus(const Model::GetDeviceTunnelStatusRequest &request)const;
|
||||
void getDeviceTunnelStatusAsync(const Model::GetDeviceTunnelStatusRequest& request, const GetDeviceTunnelStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetDeviceTunnelStatusOutcomeCallable getDeviceTunnelStatusCallable(const Model::GetDeviceTunnelStatusRequest& request) const;
|
||||
GetDownloadFileOutcome getDownloadFile(const Model::GetDownloadFileRequest &request)const;
|
||||
void getDownloadFileAsync(const Model::GetDownloadFileRequest& request, const GetDownloadFileAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetDownloadFileOutcomeCallable getDownloadFileCallable(const Model::GetDownloadFileRequest& request) const;
|
||||
GetEdgeDriverVersionOutcome getEdgeDriverVersion(const Model::GetEdgeDriverVersionRequest &request)const;
|
||||
void getEdgeDriverVersionAsync(const Model::GetEdgeDriverVersionRequest& request, const GetEdgeDriverVersionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetEdgeDriverVersionOutcomeCallable getEdgeDriverVersionCallable(const Model::GetEdgeDriverVersionRequest& request) const;
|
||||
@@ -2646,6 +2667,9 @@ namespace AlibabaCloud
|
||||
QueryDeviceStatisticsOutcome queryDeviceStatistics(const Model::QueryDeviceStatisticsRequest &request)const;
|
||||
void queryDeviceStatisticsAsync(const Model::QueryDeviceStatisticsRequest& request, const QueryDeviceStatisticsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryDeviceStatisticsOutcomeCallable queryDeviceStatisticsCallable(const Model::QueryDeviceStatisticsRequest& request) const;
|
||||
QueryDeviceSubTopicOutcome queryDeviceSubTopic(const Model::QueryDeviceSubTopicRequest &request)const;
|
||||
void queryDeviceSubTopicAsync(const Model::QueryDeviceSubTopicRequest& request, const QueryDeviceSubTopicAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryDeviceSubTopicOutcomeCallable queryDeviceSubTopicCallable(const Model::QueryDeviceSubTopicRequest& request) const;
|
||||
QueryDeviceTunnelOutcome queryDeviceTunnel(const Model::QueryDeviceTunnelRequest &request)const;
|
||||
void queryDeviceTunnelAsync(const Model::QueryDeviceTunnelRequest& request, const QueryDeviceTunnelAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryDeviceTunnelOutcomeCallable queryDeviceTunnelCallable(const Model::QueryDeviceTunnelRequest& request) const;
|
||||
|
||||
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IOT_MODEL_CREATEDOWNLOADDATAJOBREQUEST_H_
|
||||
#define ALIBABACLOUD_IOT_MODEL_CREATEDOWNLOADDATAJOBREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/iot/IotExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Iot
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IOT_EXPORT CreateDownloadDataJobRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateDownloadDataJobRequest();
|
||||
~CreateDownloadDataJobRequest();
|
||||
|
||||
long getStartTime()const;
|
||||
void setStartTime(long startTime);
|
||||
std::string getFileConfig()const;
|
||||
void setFileConfig(const std::string& fileConfig);
|
||||
std::string getIotInstanceId()const;
|
||||
void setIotInstanceId(const std::string& iotInstanceId);
|
||||
std::string getContext()const;
|
||||
void setContext(const std::string& context);
|
||||
std::string getTableName()const;
|
||||
void setTableName(const std::string& tableName);
|
||||
long getEndTime()const;
|
||||
void setEndTime(long endTime);
|
||||
std::string getDownloadDataType()const;
|
||||
void setDownloadDataType(const std::string& downloadDataType);
|
||||
std::string getApiProduct()const;
|
||||
void setApiProduct(const std::string& apiProduct);
|
||||
std::string getApiRevision()const;
|
||||
void setApiRevision(const std::string& apiRevision);
|
||||
|
||||
private:
|
||||
long startTime_;
|
||||
std::string fileConfig_;
|
||||
std::string iotInstanceId_;
|
||||
std::string context_;
|
||||
std::string tableName_;
|
||||
long endTime_;
|
||||
std::string downloadDataType_;
|
||||
std::string apiProduct_;
|
||||
std::string apiRevision_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IOT_MODEL_CREATEDOWNLOADDATAJOBREQUEST_H_
|
||||
105
iot/include/alibabacloud/iot/model/CreateDownloadDataJobResult.h
Normal file
105
iot/include/alibabacloud/iot/model/CreateDownloadDataJobResult.h
Normal file
@@ -0,0 +1,105 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IOT_MODEL_CREATEDOWNLOADDATAJOBRESULT_H_
|
||||
#define ALIBABACLOUD_IOT_MODEL_CREATEDOWNLOADDATAJOBRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/iot/IotExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Iot
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IOT_EXPORT CreateDownloadDataJobResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct QuerySetting
|
||||
{
|
||||
struct SelectedHeadersItem
|
||||
{
|
||||
std::string geoClass;
|
||||
std::string dimDateClass;
|
||||
std::string alias;
|
||||
std::string timeClass;
|
||||
std::string fieldName;
|
||||
std::string fieldType;
|
||||
};
|
||||
struct AstExprItem
|
||||
{
|
||||
std::string expr;
|
||||
std::string exprType;
|
||||
};
|
||||
std::vector<AstExprItem> astExpr;
|
||||
std::vector<SelectedHeadersItem> selectedHeaders;
|
||||
};
|
||||
struct HeaderItem
|
||||
{
|
||||
std::string geoClass;
|
||||
std::string dimDateClass;
|
||||
std::string alias;
|
||||
std::string typeClass;
|
||||
std::string timeClass;
|
||||
std::string dataPrecision;
|
||||
std::string fieldName;
|
||||
std::string fieldType;
|
||||
};
|
||||
int status;
|
||||
bool asyncExecute;
|
||||
long endTime;
|
||||
int pageSize;
|
||||
std::string csvUrl;
|
||||
long beginTime;
|
||||
std::string csvFileName;
|
||||
std::string datasetId;
|
||||
long totalCount;
|
||||
std::vector<HeaderItem> header;
|
||||
std::string longJobId;
|
||||
std::string resultDataInString;
|
||||
int pageNo;
|
||||
QuerySetting querySetting;
|
||||
int previewSize;
|
||||
};
|
||||
|
||||
|
||||
CreateDownloadDataJobResult();
|
||||
explicit CreateDownloadDataJobResult(const std::string &payload);
|
||||
~CreateDownloadDataJobResult();
|
||||
Data getData()const;
|
||||
std::string getErrorMessage()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Data data_;
|
||||
std::string errorMessage_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IOT_MODEL_CREATEDOWNLOADDATAJOBRESULT_H_
|
||||
60
iot/include/alibabacloud/iot/model/GetDownloadFileRequest.h
Normal file
60
iot/include/alibabacloud/iot/model/GetDownloadFileRequest.h
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IOT_MODEL_GETDOWNLOADFILEREQUEST_H_
|
||||
#define ALIBABACLOUD_IOT_MODEL_GETDOWNLOADFILEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/iot/IotExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Iot
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IOT_EXPORT GetDownloadFileRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetDownloadFileRequest();
|
||||
~GetDownloadFileRequest();
|
||||
|
||||
std::string getIotInstanceId()const;
|
||||
void setIotInstanceId(const std::string& iotInstanceId);
|
||||
std::string getContext()const;
|
||||
void setContext(const std::string& context);
|
||||
std::string getLongJobId()const;
|
||||
void setLongJobId(const std::string& longJobId);
|
||||
std::string getApiProduct()const;
|
||||
void setApiProduct(const std::string& apiProduct);
|
||||
std::string getApiRevision()const;
|
||||
void setApiRevision(const std::string& apiRevision);
|
||||
|
||||
private:
|
||||
std::string iotInstanceId_;
|
||||
std::string context_;
|
||||
std::string longJobId_;
|
||||
std::string apiProduct_;
|
||||
std::string apiRevision_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IOT_MODEL_GETDOWNLOADFILEREQUEST_H_
|
||||
106
iot/include/alibabacloud/iot/model/GetDownloadFileResult.h
Normal file
106
iot/include/alibabacloud/iot/model/GetDownloadFileResult.h
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IOT_MODEL_GETDOWNLOADFILERESULT_H_
|
||||
#define ALIBABACLOUD_IOT_MODEL_GETDOWNLOADFILERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/iot/IotExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Iot
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IOT_EXPORT GetDownloadFileResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct QuerySetting
|
||||
{
|
||||
struct SelectedHeadersItem
|
||||
{
|
||||
std::string geoClass;
|
||||
std::string dimDateClass;
|
||||
std::string alias;
|
||||
std::string timeClass;
|
||||
std::string fieldName;
|
||||
std::string fieldType;
|
||||
};
|
||||
struct AstExprItem
|
||||
{
|
||||
std::string expr;
|
||||
std::string exprType;
|
||||
};
|
||||
std::vector<AstExprItem> astExpr;
|
||||
std::vector<SelectedHeadersItem> selectedHeaders;
|
||||
};
|
||||
struct HeaderItem
|
||||
{
|
||||
std::string geoClass;
|
||||
std::string dimDateClass;
|
||||
std::string alias;
|
||||
std::string typeClass;
|
||||
std::string timeClass;
|
||||
std::string fieldName;
|
||||
std::string fieldType;
|
||||
};
|
||||
int status;
|
||||
bool asyncExecute;
|
||||
long endTime;
|
||||
int pageSize;
|
||||
std::string csvUrl;
|
||||
long beginTime;
|
||||
std::string csvUrl1;
|
||||
std::string csvFileName;
|
||||
std::string datasetId;
|
||||
std::vector<std::string> result;
|
||||
long totalCount;
|
||||
std::vector<HeaderItem> header;
|
||||
std::string longJobId;
|
||||
std::string resultDataInString;
|
||||
int pageNo;
|
||||
QuerySetting querySetting;
|
||||
int previewSize;
|
||||
};
|
||||
|
||||
|
||||
GetDownloadFileResult();
|
||||
explicit GetDownloadFileResult(const std::string &payload);
|
||||
~GetDownloadFileResult();
|
||||
Data getData()const;
|
||||
std::string getErrorMessage()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Data data_;
|
||||
std::string errorMessage_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IOT_MODEL_GETDOWNLOADFILERESULT_H_
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IOT_MODEL_QUERYDEVICESUBTOPICREQUEST_H_
|
||||
#define ALIBABACLOUD_IOT_MODEL_QUERYDEVICESUBTOPICREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/iot/IotExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Iot
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IOT_EXPORT QueryDeviceSubTopicRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
QueryDeviceSubTopicRequest();
|
||||
~QueryDeviceSubTopicRequest();
|
||||
|
||||
std::string getIotInstanceId()const;
|
||||
void setIotInstanceId(const std::string& iotInstanceId);
|
||||
std::string getProductKey()const;
|
||||
void setProductKey(const std::string& productKey);
|
||||
std::string getApiProduct()const;
|
||||
void setApiProduct(const std::string& apiProduct);
|
||||
std::string getApiRevision()const;
|
||||
void setApiRevision(const std::string& apiRevision);
|
||||
std::string getDeviceName()const;
|
||||
void setDeviceName(const std::string& deviceName);
|
||||
|
||||
private:
|
||||
std::string iotInstanceId_;
|
||||
std::string productKey_;
|
||||
std::string apiProduct_;
|
||||
std::string apiRevision_;
|
||||
std::string deviceName_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IOT_MODEL_QUERYDEVICESUBTOPICREQUEST_H_
|
||||
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IOT_MODEL_QUERYDEVICESUBTOPICRESULT_H_
|
||||
#define ALIBABACLOUD_IOT_MODEL_QUERYDEVICESUBTOPICRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/iot/IotExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Iot
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IOT_EXPORT QueryDeviceSubTopicResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Topic
|
||||
{
|
||||
long timestamp;
|
||||
std::string topicName;
|
||||
};
|
||||
|
||||
|
||||
QueryDeviceSubTopicResult();
|
||||
explicit QueryDeviceSubTopicResult(const std::string &payload);
|
||||
~QueryDeviceSubTopicResult();
|
||||
std::vector<Topic> getTopicList()const;
|
||||
std::string getErrorMessage()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<Topic> topicList_;
|
||||
std::string errorMessage_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IOT_MODEL_QUERYDEVICESUBTOPICRESULT_H_
|
||||
Reference in New Issue
Block a user