Generated 2018-01-20 for Linkvisual.

This commit is contained in:
sdk-team
2024-01-15 03:23:20 +00:00
parent 1333c0ead7
commit 784a67c71a
445 changed files with 37146 additions and 1 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,99 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/AddEventRecordPlanDeviceRequest.h>
using AlibabaCloud::Linkvisual::Model::AddEventRecordPlanDeviceRequest;
AddEventRecordPlanDeviceRequest::AddEventRecordPlanDeviceRequest()
: RpcServiceRequest("linkvisual", "2018-01-20", "AddEventRecordPlanDevice") {
setMethod(HttpRequest::Method::Post);
}
AddEventRecordPlanDeviceRequest::~AddEventRecordPlanDeviceRequest() {}
std::string AddEventRecordPlanDeviceRequest::getIotId() const {
return iotId_;
}
void AddEventRecordPlanDeviceRequest::setIotId(const std::string &iotId) {
iotId_ = iotId;
setParameter(std::string("IotId"), iotId);
}
std::string AddEventRecordPlanDeviceRequest::getIotInstanceId() const {
return iotInstanceId_;
}
void AddEventRecordPlanDeviceRequest::setIotInstanceId(const std::string &iotInstanceId) {
iotInstanceId_ = iotInstanceId;
setParameter(std::string("IotInstanceId"), iotInstanceId);
}
int AddEventRecordPlanDeviceRequest::getStreamType() const {
return streamType_;
}
void AddEventRecordPlanDeviceRequest::setStreamType(int streamType) {
streamType_ = streamType;
setParameter(std::string("StreamType"), std::to_string(streamType));
}
std::string AddEventRecordPlanDeviceRequest::getProductKey() const {
return productKey_;
}
void AddEventRecordPlanDeviceRequest::setProductKey(const std::string &productKey) {
productKey_ = productKey;
setParameter(std::string("ProductKey"), productKey);
}
std::string AddEventRecordPlanDeviceRequest::getApiProduct() const {
return apiProduct_;
}
void AddEventRecordPlanDeviceRequest::setApiProduct(const std::string &apiProduct) {
apiProduct_ = apiProduct;
setBodyParameter(std::string("ApiProduct"), apiProduct);
}
std::string AddEventRecordPlanDeviceRequest::getApiRevision() const {
return apiRevision_;
}
void AddEventRecordPlanDeviceRequest::setApiRevision(const std::string &apiRevision) {
apiRevision_ = apiRevision;
setBodyParameter(std::string("ApiRevision"), apiRevision);
}
std::string AddEventRecordPlanDeviceRequest::getDeviceName() const {
return deviceName_;
}
void AddEventRecordPlanDeviceRequest::setDeviceName(const std::string &deviceName) {
deviceName_ = deviceName;
setParameter(std::string("DeviceName"), deviceName);
}
std::string AddEventRecordPlanDeviceRequest::getPlanId() const {
return planId_;
}
void AddEventRecordPlanDeviceRequest::setPlanId(const std::string &planId) {
planId_ = planId;
setParameter(std::string("PlanId"), planId);
}

View File

@@ -0,0 +1,65 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/AddEventRecordPlanDeviceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Linkvisual;
using namespace AlibabaCloud::Linkvisual::Model;
AddEventRecordPlanDeviceResult::AddEventRecordPlanDeviceResult() :
ServiceResult()
{}
AddEventRecordPlanDeviceResult::AddEventRecordPlanDeviceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddEventRecordPlanDeviceResult::~AddEventRecordPlanDeviceResult()
{}
void AddEventRecordPlanDeviceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string AddEventRecordPlanDeviceResult::getErrorMessage()const
{
return errorMessage_;
}
std::string AddEventRecordPlanDeviceResult::getCode()const
{
return code_;
}
bool AddEventRecordPlanDeviceResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,63 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/AddFaceDeviceGroupRequest.h>
using AlibabaCloud::Linkvisual::Model::AddFaceDeviceGroupRequest;
AddFaceDeviceGroupRequest::AddFaceDeviceGroupRequest()
: RpcServiceRequest("linkvisual", "2018-01-20", "AddFaceDeviceGroup") {
setMethod(HttpRequest::Method::Post);
}
AddFaceDeviceGroupRequest::~AddFaceDeviceGroupRequest() {}
std::string AddFaceDeviceGroupRequest::getIsolationId() const {
return isolationId_;
}
void AddFaceDeviceGroupRequest::setIsolationId(const std::string &isolationId) {
isolationId_ = isolationId;
setParameter(std::string("IsolationId"), isolationId);
}
std::string AddFaceDeviceGroupRequest::getApiProduct() const {
return apiProduct_;
}
void AddFaceDeviceGroupRequest::setApiProduct(const std::string &apiProduct) {
apiProduct_ = apiProduct;
setBodyParameter(std::string("ApiProduct"), apiProduct);
}
std::string AddFaceDeviceGroupRequest::getApiRevision() const {
return apiRevision_;
}
void AddFaceDeviceGroupRequest::setApiRevision(const std::string &apiRevision) {
apiRevision_ = apiRevision;
setBodyParameter(std::string("ApiRevision"), apiRevision);
}
std::string AddFaceDeviceGroupRequest::getDeviceGroupName() const {
return deviceGroupName_;
}
void AddFaceDeviceGroupRequest::setDeviceGroupName(const std::string &deviceGroupName) {
deviceGroupName_ = deviceGroupName;
setParameter(std::string("DeviceGroupName"), deviceGroupName);
}

View File

@@ -0,0 +1,77 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/AddFaceDeviceGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Linkvisual;
using namespace AlibabaCloud::Linkvisual::Model;
AddFaceDeviceGroupResult::AddFaceDeviceGroupResult() :
ServiceResult()
{}
AddFaceDeviceGroupResult::AddFaceDeviceGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddFaceDeviceGroupResult::~AddFaceDeviceGroupResult()
{}
void AddFaceDeviceGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["DeviceGroupId"].isNull())
data_.deviceGroupId = dataNode["DeviceGroupId"].asString();
if(!dataNode["ModifiedTime"].isNull())
data_.modifiedTime = dataNode["ModifiedTime"].asString();
if(!dataNode["DeviceGroupName"].isNull())
data_.deviceGroupName = dataNode["DeviceGroupName"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
AddFaceDeviceGroupResult::Data AddFaceDeviceGroupResult::getData()const
{
return data_;
}
std::string AddFaceDeviceGroupResult::getErrorMessage()const
{
return errorMessage_;
}
std::string AddFaceDeviceGroupResult::getCode()const
{
return code_;
}
bool AddFaceDeviceGroupResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,90 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/AddFaceDeviceToDeviceGroupRequest.h>
using AlibabaCloud::Linkvisual::Model::AddFaceDeviceToDeviceGroupRequest;
AddFaceDeviceToDeviceGroupRequest::AddFaceDeviceToDeviceGroupRequest()
: RpcServiceRequest("linkvisual", "2018-01-20", "AddFaceDeviceToDeviceGroup") {
setMethod(HttpRequest::Method::Post);
}
AddFaceDeviceToDeviceGroupRequest::~AddFaceDeviceToDeviceGroupRequest() {}
std::string AddFaceDeviceToDeviceGroupRequest::getIsolationId() const {
return isolationId_;
}
void AddFaceDeviceToDeviceGroupRequest::setIsolationId(const std::string &isolationId) {
isolationId_ = isolationId;
setParameter(std::string("IsolationId"), isolationId);
}
std::string AddFaceDeviceToDeviceGroupRequest::getIotInstanceId() const {
return iotInstanceId_;
}
void AddFaceDeviceToDeviceGroupRequest::setIotInstanceId(const std::string &iotInstanceId) {
iotInstanceId_ = iotInstanceId;
setParameter(std::string("IotInstanceId"), iotInstanceId);
}
std::string AddFaceDeviceToDeviceGroupRequest::getDeviceGroupId() const {
return deviceGroupId_;
}
void AddFaceDeviceToDeviceGroupRequest::setDeviceGroupId(const std::string &deviceGroupId) {
deviceGroupId_ = deviceGroupId;
setParameter(std::string("DeviceGroupId"), deviceGroupId);
}
std::string AddFaceDeviceToDeviceGroupRequest::getProductKey() const {
return productKey_;
}
void AddFaceDeviceToDeviceGroupRequest::setProductKey(const std::string &productKey) {
productKey_ = productKey;
setParameter(std::string("ProductKey"), productKey);
}
std::string AddFaceDeviceToDeviceGroupRequest::getApiProduct() const {
return apiProduct_;
}
void AddFaceDeviceToDeviceGroupRequest::setApiProduct(const std::string &apiProduct) {
apiProduct_ = apiProduct;
setBodyParameter(std::string("ApiProduct"), apiProduct);
}
std::string AddFaceDeviceToDeviceGroupRequest::getApiRevision() const {
return apiRevision_;
}
void AddFaceDeviceToDeviceGroupRequest::setApiRevision(const std::string &apiRevision) {
apiRevision_ = apiRevision;
setBodyParameter(std::string("ApiRevision"), apiRevision);
}
std::string AddFaceDeviceToDeviceGroupRequest::getDeviceName() const {
return deviceName_;
}
void AddFaceDeviceToDeviceGroupRequest::setDeviceName(const std::string &deviceName) {
deviceName_ = deviceName;
setParameter(std::string("DeviceName"), deviceName);
}

View File

@@ -0,0 +1,65 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/AddFaceDeviceToDeviceGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Linkvisual;
using namespace AlibabaCloud::Linkvisual::Model;
AddFaceDeviceToDeviceGroupResult::AddFaceDeviceToDeviceGroupResult() :
ServiceResult()
{}
AddFaceDeviceToDeviceGroupResult::AddFaceDeviceToDeviceGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddFaceDeviceToDeviceGroupResult::~AddFaceDeviceToDeviceGroupResult()
{}
void AddFaceDeviceToDeviceGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string AddFaceDeviceToDeviceGroupResult::getErrorMessage()const
{
return errorMessage_;
}
std::string AddFaceDeviceToDeviceGroupResult::getCode()const
{
return code_;
}
bool AddFaceDeviceToDeviceGroupResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,90 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/AddFaceUserGroupAndDeviceGroupRelationRequest.h>
using AlibabaCloud::Linkvisual::Model::AddFaceUserGroupAndDeviceGroupRelationRequest;
AddFaceUserGroupAndDeviceGroupRelationRequest::AddFaceUserGroupAndDeviceGroupRelationRequest()
: RpcServiceRequest("linkvisual", "2018-01-20", "AddFaceUserGroupAndDeviceGroupRelation") {
setMethod(HttpRequest::Method::Post);
}
AddFaceUserGroupAndDeviceGroupRelationRequest::~AddFaceUserGroupAndDeviceGroupRelationRequest() {}
std::string AddFaceUserGroupAndDeviceGroupRelationRequest::getIsolationId() const {
return isolationId_;
}
void AddFaceUserGroupAndDeviceGroupRelationRequest::setIsolationId(const std::string &isolationId) {
isolationId_ = isolationId;
setParameter(std::string("IsolationId"), isolationId);
}
std::string AddFaceUserGroupAndDeviceGroupRelationRequest::getRelation() const {
return relation_;
}
void AddFaceUserGroupAndDeviceGroupRelationRequest::setRelation(const std::string &relation) {
relation_ = relation;
setParameter(std::string("Relation"), relation);
}
std::string AddFaceUserGroupAndDeviceGroupRelationRequest::getIotInstanceId() const {
return iotInstanceId_;
}
void AddFaceUserGroupAndDeviceGroupRelationRequest::setIotInstanceId(const std::string &iotInstanceId) {
iotInstanceId_ = iotInstanceId;
setParameter(std::string("IotInstanceId"), iotInstanceId);
}
std::string AddFaceUserGroupAndDeviceGroupRelationRequest::getDeviceGroupId() const {
return deviceGroupId_;
}
void AddFaceUserGroupAndDeviceGroupRelationRequest::setDeviceGroupId(const std::string &deviceGroupId) {
deviceGroupId_ = deviceGroupId;
setParameter(std::string("DeviceGroupId"), deviceGroupId);
}
std::string AddFaceUserGroupAndDeviceGroupRelationRequest::getUserGroupId() const {
return userGroupId_;
}
void AddFaceUserGroupAndDeviceGroupRelationRequest::setUserGroupId(const std::string &userGroupId) {
userGroupId_ = userGroupId;
setParameter(std::string("UserGroupId"), userGroupId);
}
std::string AddFaceUserGroupAndDeviceGroupRelationRequest::getApiProduct() const {
return apiProduct_;
}
void AddFaceUserGroupAndDeviceGroupRelationRequest::setApiProduct(const std::string &apiProduct) {
apiProduct_ = apiProduct;
setBodyParameter(std::string("ApiProduct"), apiProduct);
}
std::string AddFaceUserGroupAndDeviceGroupRelationRequest::getApiRevision() const {
return apiRevision_;
}
void AddFaceUserGroupAndDeviceGroupRelationRequest::setApiRevision(const std::string &apiRevision) {
apiRevision_ = apiRevision;
setBodyParameter(std::string("ApiRevision"), apiRevision);
}

View File

@@ -0,0 +1,75 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/AddFaceUserGroupAndDeviceGroupRelationResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Linkvisual;
using namespace AlibabaCloud::Linkvisual::Model;
AddFaceUserGroupAndDeviceGroupRelationResult::AddFaceUserGroupAndDeviceGroupRelationResult() :
ServiceResult()
{}
AddFaceUserGroupAndDeviceGroupRelationResult::AddFaceUserGroupAndDeviceGroupRelationResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddFaceUserGroupAndDeviceGroupRelationResult::~AddFaceUserGroupAndDeviceGroupRelationResult()
{}
void AddFaceUserGroupAndDeviceGroupRelationResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["ControlId"].isNull())
data_.controlId = dataNode["ControlId"].asString();
if(!dataNode["ModifiedTime"].isNull())
data_.modifiedTime = dataNode["ModifiedTime"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
AddFaceUserGroupAndDeviceGroupRelationResult::Data AddFaceUserGroupAndDeviceGroupRelationResult::getData()const
{
return data_;
}
std::string AddFaceUserGroupAndDeviceGroupRelationResult::getErrorMessage()const
{
return errorMessage_;
}
std::string AddFaceUserGroupAndDeviceGroupRelationResult::getCode()const
{
return code_;
}
bool AddFaceUserGroupAndDeviceGroupRelationResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,63 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/AddFaceUserGroupRequest.h>
using AlibabaCloud::Linkvisual::Model::AddFaceUserGroupRequest;
AddFaceUserGroupRequest::AddFaceUserGroupRequest()
: RpcServiceRequest("linkvisual", "2018-01-20", "AddFaceUserGroup") {
setMethod(HttpRequest::Method::Post);
}
AddFaceUserGroupRequest::~AddFaceUserGroupRequest() {}
std::string AddFaceUserGroupRequest::getIsolationId() const {
return isolationId_;
}
void AddFaceUserGroupRequest::setIsolationId(const std::string &isolationId) {
isolationId_ = isolationId;
setParameter(std::string("IsolationId"), isolationId);
}
std::string AddFaceUserGroupRequest::getUserGroupName() const {
return userGroupName_;
}
void AddFaceUserGroupRequest::setUserGroupName(const std::string &userGroupName) {
userGroupName_ = userGroupName;
setParameter(std::string("UserGroupName"), userGroupName);
}
std::string AddFaceUserGroupRequest::getApiProduct() const {
return apiProduct_;
}
void AddFaceUserGroupRequest::setApiProduct(const std::string &apiProduct) {
apiProduct_ = apiProduct;
setBodyParameter(std::string("ApiProduct"), apiProduct);
}
std::string AddFaceUserGroupRequest::getApiRevision() const {
return apiRevision_;
}
void AddFaceUserGroupRequest::setApiRevision(const std::string &apiRevision) {
apiRevision_ = apiRevision;
setBodyParameter(std::string("ApiRevision"), apiRevision);
}

View File

@@ -0,0 +1,77 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/AddFaceUserGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Linkvisual;
using namespace AlibabaCloud::Linkvisual::Model;
AddFaceUserGroupResult::AddFaceUserGroupResult() :
ServiceResult()
{}
AddFaceUserGroupResult::AddFaceUserGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddFaceUserGroupResult::~AddFaceUserGroupResult()
{}
void AddFaceUserGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["UserGroupName"].isNull())
data_.userGroupName = dataNode["UserGroupName"].asString();
if(!dataNode["ModifiedTime"].isNull())
data_.modifiedTime = dataNode["ModifiedTime"].asString();
if(!dataNode["UserGroupId"].isNull())
data_.userGroupId = dataNode["UserGroupId"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
AddFaceUserGroupResult::Data AddFaceUserGroupResult::getData()const
{
return data_;
}
std::string AddFaceUserGroupResult::getErrorMessage()const
{
return errorMessage_;
}
std::string AddFaceUserGroupResult::getCode()const
{
return code_;
}
bool AddFaceUserGroupResult::getSuccess()const
{
return success_;
}

View File

@@ -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.
*/
#include <alibabacloud/linkvisual/model/AddFaceUserPictureRequest.h>
using AlibabaCloud::Linkvisual::Model::AddFaceUserPictureRequest;
AddFaceUserPictureRequest::AddFaceUserPictureRequest()
: RpcServiceRequest("linkvisual", "2018-01-20", "AddFaceUserPicture") {
setMethod(HttpRequest::Method::Post);
}
AddFaceUserPictureRequest::~AddFaceUserPictureRequest() {}
std::string AddFaceUserPictureRequest::getIsolationId() const {
return isolationId_;
}
void AddFaceUserPictureRequest::setIsolationId(const std::string &isolationId) {
isolationId_ = isolationId;
setParameter(std::string("IsolationId"), isolationId);
}
std::string AddFaceUserPictureRequest::getUserId() const {
return userId_;
}
void AddFaceUserPictureRequest::setUserId(const std::string &userId) {
userId_ = userId;
setParameter(std::string("UserId"), userId);
}
std::string AddFaceUserPictureRequest::getFacePicUrl() const {
return facePicUrl_;
}
void AddFaceUserPictureRequest::setFacePicUrl(const std::string &facePicUrl) {
facePicUrl_ = facePicUrl;
setParameter(std::string("FacePicUrl"), facePicUrl);
}
std::string AddFaceUserPictureRequest::getApiProduct() const {
return apiProduct_;
}
void AddFaceUserPictureRequest::setApiProduct(const std::string &apiProduct) {
apiProduct_ = apiProduct;
setBodyParameter(std::string("ApiProduct"), apiProduct);
}
std::string AddFaceUserPictureRequest::getApiRevision() const {
return apiRevision_;
}
void AddFaceUserPictureRequest::setApiRevision(const std::string &apiRevision) {
apiRevision_ = apiRevision;
setBodyParameter(std::string("ApiRevision"), apiRevision);
}

View File

@@ -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.
*/
#include <alibabacloud/linkvisual/model/AddFaceUserPictureResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Linkvisual;
using namespace AlibabaCloud::Linkvisual::Model;
AddFaceUserPictureResult::AddFaceUserPictureResult() :
ServiceResult()
{}
AddFaceUserPictureResult::AddFaceUserPictureResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddFaceUserPictureResult::~AddFaceUserPictureResult()
{}
void AddFaceUserPictureResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Data"].isNull())
data_ = value["Data"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string AddFaceUserPictureResult::getData()const
{
return data_;
}
std::string AddFaceUserPictureResult::getErrorMessage()const
{
return errorMessage_;
}
std::string AddFaceUserPictureResult::getCode()const
{
return code_;
}
bool AddFaceUserPictureResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,90 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/AddFaceUserRequest.h>
using AlibabaCloud::Linkvisual::Model::AddFaceUserRequest;
AddFaceUserRequest::AddFaceUserRequest()
: RpcServiceRequest("linkvisual", "2018-01-20", "AddFaceUser") {
setMethod(HttpRequest::Method::Post);
}
AddFaceUserRequest::~AddFaceUserRequest() {}
std::string AddFaceUserRequest::getIsolationId() const {
return isolationId_;
}
void AddFaceUserRequest::setIsolationId(const std::string &isolationId) {
isolationId_ = isolationId;
setParameter(std::string("IsolationId"), isolationId);
}
std::string AddFaceUserRequest::getCustomUserId() const {
return customUserId_;
}
void AddFaceUserRequest::setCustomUserId(const std::string &customUserId) {
customUserId_ = customUserId;
setParameter(std::string("CustomUserId"), customUserId);
}
std::string AddFaceUserRequest::getParams() const {
return params_;
}
void AddFaceUserRequest::setParams(const std::string &params) {
params_ = params;
setParameter(std::string("Params"), params);
}
std::string AddFaceUserRequest::getFacePicUrl() const {
return facePicUrl_;
}
void AddFaceUserRequest::setFacePicUrl(const std::string &facePicUrl) {
facePicUrl_ = facePicUrl;
setParameter(std::string("FacePicUrl"), facePicUrl);
}
std::string AddFaceUserRequest::getApiProduct() const {
return apiProduct_;
}
void AddFaceUserRequest::setApiProduct(const std::string &apiProduct) {
apiProduct_ = apiProduct;
setBodyParameter(std::string("ApiProduct"), apiProduct);
}
std::string AddFaceUserRequest::getName() const {
return name_;
}
void AddFaceUserRequest::setName(const std::string &name) {
name_ = name;
setParameter(std::string("Name"), name);
}
std::string AddFaceUserRequest::getApiRevision() const {
return apiRevision_;
}
void AddFaceUserRequest::setApiRevision(const std::string &apiRevision) {
apiRevision_ = apiRevision;
setBodyParameter(std::string("ApiRevision"), apiRevision);
}

View File

@@ -0,0 +1,79 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/AddFaceUserResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Linkvisual;
using namespace AlibabaCloud::Linkvisual::Model;
AddFaceUserResult::AddFaceUserResult() :
ServiceResult()
{}
AddFaceUserResult::AddFaceUserResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddFaceUserResult::~AddFaceUserResult()
{}
void AddFaceUserResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["Params"].isNull())
data_.params = dataNode["Params"].asString();
if(!dataNode["CustomUserId"].isNull())
data_.customUserId = dataNode["CustomUserId"].asString();
if(!dataNode["Name"].isNull())
data_.name = dataNode["Name"].asString();
if(!dataNode["UserId"].isNull())
data_.userId = dataNode["UserId"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
AddFaceUserResult::Data AddFaceUserResult::getData()const
{
return data_;
}
std::string AddFaceUserResult::getErrorMessage()const
{
return errorMessage_;
}
std::string AddFaceUserResult::getCode()const
{
return code_;
}
bool AddFaceUserResult::getSuccess()const
{
return success_;
}

View File

@@ -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.
*/
#include <alibabacloud/linkvisual/model/AddFaceUserToUserGroupRequest.h>
using AlibabaCloud::Linkvisual::Model::AddFaceUserToUserGroupRequest;
AddFaceUserToUserGroupRequest::AddFaceUserToUserGroupRequest()
: RpcServiceRequest("linkvisual", "2018-01-20", "AddFaceUserToUserGroup") {
setMethod(HttpRequest::Method::Post);
}
AddFaceUserToUserGroupRequest::~AddFaceUserToUserGroupRequest() {}
std::string AddFaceUserToUserGroupRequest::getIsolationId() const {
return isolationId_;
}
void AddFaceUserToUserGroupRequest::setIsolationId(const std::string &isolationId) {
isolationId_ = isolationId;
setParameter(std::string("IsolationId"), isolationId);
}
std::string AddFaceUserToUserGroupRequest::getUserId() const {
return userId_;
}
void AddFaceUserToUserGroupRequest::setUserId(const std::string &userId) {
userId_ = userId;
setParameter(std::string("UserId"), userId);
}
std::string AddFaceUserToUserGroupRequest::getUserGroupId() const {
return userGroupId_;
}
void AddFaceUserToUserGroupRequest::setUserGroupId(const std::string &userGroupId) {
userGroupId_ = userGroupId;
setParameter(std::string("UserGroupId"), userGroupId);
}
std::string AddFaceUserToUserGroupRequest::getApiProduct() const {
return apiProduct_;
}
void AddFaceUserToUserGroupRequest::setApiProduct(const std::string &apiProduct) {
apiProduct_ = apiProduct;
setBodyParameter(std::string("ApiProduct"), apiProduct);
}
std::string AddFaceUserToUserGroupRequest::getApiRevision() const {
return apiRevision_;
}
void AddFaceUserToUserGroupRequest::setApiRevision(const std::string &apiRevision) {
apiRevision_ = apiRevision;
setBodyParameter(std::string("ApiRevision"), apiRevision);
}

View File

@@ -0,0 +1,65 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/AddFaceUserToUserGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Linkvisual;
using namespace AlibabaCloud::Linkvisual::Model;
AddFaceUserToUserGroupResult::AddFaceUserToUserGroupResult() :
ServiceResult()
{}
AddFaceUserToUserGroupResult::AddFaceUserToUserGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddFaceUserToUserGroupResult::~AddFaceUserToUserGroupResult()
{}
void AddFaceUserToUserGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string AddFaceUserToUserGroupResult::getErrorMessage()const
{
return errorMessage_;
}
std::string AddFaceUserToUserGroupResult::getCode()const
{
return code_;
}
bool AddFaceUserToUserGroupResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,99 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/AddRecordPlanDeviceRequest.h>
using AlibabaCloud::Linkvisual::Model::AddRecordPlanDeviceRequest;
AddRecordPlanDeviceRequest::AddRecordPlanDeviceRequest()
: RpcServiceRequest("linkvisual", "2018-01-20", "AddRecordPlanDevice") {
setMethod(HttpRequest::Method::Post);
}
AddRecordPlanDeviceRequest::~AddRecordPlanDeviceRequest() {}
std::string AddRecordPlanDeviceRequest::getIotId() const {
return iotId_;
}
void AddRecordPlanDeviceRequest::setIotId(const std::string &iotId) {
iotId_ = iotId;
setParameter(std::string("IotId"), iotId);
}
std::string AddRecordPlanDeviceRequest::getIotInstanceId() const {
return iotInstanceId_;
}
void AddRecordPlanDeviceRequest::setIotInstanceId(const std::string &iotInstanceId) {
iotInstanceId_ = iotInstanceId;
setParameter(std::string("IotInstanceId"), iotInstanceId);
}
int AddRecordPlanDeviceRequest::getStreamType() const {
return streamType_;
}
void AddRecordPlanDeviceRequest::setStreamType(int streamType) {
streamType_ = streamType;
setParameter(std::string("StreamType"), std::to_string(streamType));
}
std::string AddRecordPlanDeviceRequest::getProductKey() const {
return productKey_;
}
void AddRecordPlanDeviceRequest::setProductKey(const std::string &productKey) {
productKey_ = productKey;
setParameter(std::string("ProductKey"), productKey);
}
std::string AddRecordPlanDeviceRequest::getApiProduct() const {
return apiProduct_;
}
void AddRecordPlanDeviceRequest::setApiProduct(const std::string &apiProduct) {
apiProduct_ = apiProduct;
setBodyParameter(std::string("ApiProduct"), apiProduct);
}
std::string AddRecordPlanDeviceRequest::getApiRevision() const {
return apiRevision_;
}
void AddRecordPlanDeviceRequest::setApiRevision(const std::string &apiRevision) {
apiRevision_ = apiRevision;
setBodyParameter(std::string("ApiRevision"), apiRevision);
}
std::string AddRecordPlanDeviceRequest::getDeviceName() const {
return deviceName_;
}
void AddRecordPlanDeviceRequest::setDeviceName(const std::string &deviceName) {
deviceName_ = deviceName;
setParameter(std::string("DeviceName"), deviceName);
}
std::string AddRecordPlanDeviceRequest::getPlanId() const {
return planId_;
}
void AddRecordPlanDeviceRequest::setPlanId(const std::string &planId) {
planId_ = planId;
setParameter(std::string("PlanId"), planId);
}

View File

@@ -0,0 +1,65 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/AddRecordPlanDeviceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Linkvisual;
using namespace AlibabaCloud::Linkvisual::Model;
AddRecordPlanDeviceResult::AddRecordPlanDeviceResult() :
ServiceResult()
{}
AddRecordPlanDeviceResult::AddRecordPlanDeviceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddRecordPlanDeviceResult::~AddRecordPlanDeviceResult()
{}
void AddRecordPlanDeviceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string AddRecordPlanDeviceResult::getErrorMessage()const
{
return errorMessage_;
}
std::string AddRecordPlanDeviceResult::getCode()const
{
return code_;
}
bool AddRecordPlanDeviceResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,79 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/BatchQueryVisionDeviceInfoRequest.h>
using AlibabaCloud::Linkvisual::Model::BatchQueryVisionDeviceInfoRequest;
BatchQueryVisionDeviceInfoRequest::BatchQueryVisionDeviceInfoRequest()
: RpcServiceRequest("linkvisual", "2018-01-20", "BatchQueryVisionDeviceInfo") {
setMethod(HttpRequest::Method::Post);
}
BatchQueryVisionDeviceInfoRequest::~BatchQueryVisionDeviceInfoRequest() {}
std::vector<std::string> BatchQueryVisionDeviceInfoRequest::getDeviceNameList() const {
return deviceNameList_;
}
void BatchQueryVisionDeviceInfoRequest::setDeviceNameList(const std::vector<std::string> &deviceNameList) {
deviceNameList_ = deviceNameList;
}
std::string BatchQueryVisionDeviceInfoRequest::getIotInstanceId() const {
return iotInstanceId_;
}
void BatchQueryVisionDeviceInfoRequest::setIotInstanceId(const std::string &iotInstanceId) {
iotInstanceId_ = iotInstanceId;
setParameter(std::string("IotInstanceId"), iotInstanceId);
}
std::vector<std::string> BatchQueryVisionDeviceInfoRequest::getIotIdList() const {
return iotIdList_;
}
void BatchQueryVisionDeviceInfoRequest::setIotIdList(const std::vector<std::string> &iotIdList) {
iotIdList_ = iotIdList;
}
std::string BatchQueryVisionDeviceInfoRequest::getProductKey() const {
return productKey_;
}
void BatchQueryVisionDeviceInfoRequest::setProductKey(const std::string &productKey) {
productKey_ = productKey;
setParameter(std::string("ProductKey"), productKey);
}
std::string BatchQueryVisionDeviceInfoRequest::getApiProduct() const {
return apiProduct_;
}
void BatchQueryVisionDeviceInfoRequest::setApiProduct(const std::string &apiProduct) {
apiProduct_ = apiProduct;
setBodyParameter(std::string("ApiProduct"), apiProduct);
}
std::string BatchQueryVisionDeviceInfoRequest::getApiRevision() const {
return apiRevision_;
}
void BatchQueryVisionDeviceInfoRequest::setApiRevision(const std::string &apiRevision) {
apiRevision_ = apiRevision;
setBodyParameter(std::string("ApiRevision"), apiRevision);
}

View File

@@ -0,0 +1,111 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/BatchQueryVisionDeviceInfoResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Linkvisual;
using namespace AlibabaCloud::Linkvisual::Model;
BatchQueryVisionDeviceInfoResult::BatchQueryVisionDeviceInfoResult() :
ServiceResult()
{}
BatchQueryVisionDeviceInfoResult::BatchQueryVisionDeviceInfoResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
BatchQueryVisionDeviceInfoResult::~BatchQueryVisionDeviceInfoResult()
{}
void BatchQueryVisionDeviceInfoResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
auto allDeviceInfoListNode = dataNode["DeviceInfoList"]["DeviceInfo"];
for (auto dataNodeDeviceInfoListDeviceInfo : allDeviceInfoListNode)
{
Data::DeviceInfo deviceInfoObject;
if(!dataNodeDeviceInfoListDeviceInfo["Description"].isNull())
deviceInfoObject.description = dataNodeDeviceInfoListDeviceInfo["Description"].asString();
if(!dataNodeDeviceInfoListDeviceInfo["DeviceType"].isNull())
deviceInfoObject.deviceType = std::stoi(dataNodeDeviceInfoListDeviceInfo["DeviceType"].asString());
if(!dataNodeDeviceInfoListDeviceInfo["IotId"].isNull())
deviceInfoObject.iotId = dataNodeDeviceInfoListDeviceInfo["IotId"].asString();
auto gbDeviceInfoNode = value["GbDeviceInfo"];
if(!gbDeviceInfoNode["GbId"].isNull())
deviceInfoObject.gbDeviceInfo.gbId = gbDeviceInfoNode["GbId"].asString();
if(!gbDeviceInfoNode["Password"].isNull())
deviceInfoObject.gbDeviceInfo.password = gbDeviceInfoNode["Password"].asString();
if(!gbDeviceInfoNode["NickName"].isNull())
deviceInfoObject.gbDeviceInfo.nickName = gbDeviceInfoNode["NickName"].asString();
if(!gbDeviceInfoNode["SubProductKey"].isNull())
deviceInfoObject.gbDeviceInfo.subProductKey = gbDeviceInfoNode["SubProductKey"].asString();
if(!gbDeviceInfoNode["DeviceProtocol"].isNull())
deviceInfoObject.gbDeviceInfo.deviceProtocol = std::stoi(gbDeviceInfoNode["DeviceProtocol"].asString());
if(!gbDeviceInfoNode["NetProtocol"].isNull())
deviceInfoObject.gbDeviceInfo.netProtocol = std::stoi(gbDeviceInfoNode["NetProtocol"].asString());
auto rtmpDeviceInfoNode = value["RtmpDeviceInfo"];
if(!rtmpDeviceInfoNode["StreamStatus"].isNull())
deviceInfoObject.rtmpDeviceInfo.streamStatus = std::stoi(rtmpDeviceInfoNode["StreamStatus"].asString());
if(!rtmpDeviceInfoNode["PushKeyExpireTime"].isNull())
deviceInfoObject.rtmpDeviceInfo.pushKeyExpireTime = std::stoi(rtmpDeviceInfoNode["PushKeyExpireTime"].asString());
if(!rtmpDeviceInfoNode["StreamName"].isNull())
deviceInfoObject.rtmpDeviceInfo.streamName = rtmpDeviceInfoNode["StreamName"].asString();
if(!rtmpDeviceInfoNode["PushAuthKey"].isNull())
deviceInfoObject.rtmpDeviceInfo.pushAuthKey = rtmpDeviceInfoNode["PushAuthKey"].asString();
if(!rtmpDeviceInfoNode["PullAuthKey"].isNull())
deviceInfoObject.rtmpDeviceInfo.pullAuthKey = rtmpDeviceInfoNode["PullAuthKey"].asString();
if(!rtmpDeviceInfoNode["PullKeyExpireTime"].isNull())
deviceInfoObject.rtmpDeviceInfo.pullKeyExpireTime = std::stoi(rtmpDeviceInfoNode["PullKeyExpireTime"].asString());
if(!rtmpDeviceInfoNode["PushUrlSample"].isNull())
deviceInfoObject.rtmpDeviceInfo.pushUrlSample = rtmpDeviceInfoNode["PushUrlSample"].asString();
data_.deviceInfoList.push_back(deviceInfoObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
BatchQueryVisionDeviceInfoResult::Data BatchQueryVisionDeviceInfoResult::getData()const
{
return data_;
}
std::string BatchQueryVisionDeviceInfoResult::getErrorMessage()const
{
return errorMessage_;
}
std::string BatchQueryVisionDeviceInfoResult::getCode()const
{
return code_;
}
bool BatchQueryVisionDeviceInfoResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,71 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/BindPictureSearchAppWithDevicesRequest.h>
using AlibabaCloud::Linkvisual::Model::BindPictureSearchAppWithDevicesRequest;
BindPictureSearchAppWithDevicesRequest::BindPictureSearchAppWithDevicesRequest()
: RpcServiceRequest("linkvisual", "2018-01-20", "BindPictureSearchAppWithDevices") {
setMethod(HttpRequest::Method::Post);
}
BindPictureSearchAppWithDevicesRequest::~BindPictureSearchAppWithDevicesRequest() {}
std::string BindPictureSearchAppWithDevicesRequest::getIotInstanceId() const {
return iotInstanceId_;
}
void BindPictureSearchAppWithDevicesRequest::setIotInstanceId(const std::string &iotInstanceId) {
iotInstanceId_ = iotInstanceId;
setParameter(std::string("IotInstanceId"), iotInstanceId);
}
std::vector<std::string> BindPictureSearchAppWithDevicesRequest::getDeviceIotIds() const {
return deviceIotIds_;
}
void BindPictureSearchAppWithDevicesRequest::setDeviceIotIds(const std::vector<std::string> &deviceIotIds) {
deviceIotIds_ = deviceIotIds;
}
std::string BindPictureSearchAppWithDevicesRequest::getApiProduct() const {
return apiProduct_;
}
void BindPictureSearchAppWithDevicesRequest::setApiProduct(const std::string &apiProduct) {
apiProduct_ = apiProduct;
setBodyParameter(std::string("ApiProduct"), apiProduct);
}
std::string BindPictureSearchAppWithDevicesRequest::getApiRevision() const {
return apiRevision_;
}
void BindPictureSearchAppWithDevicesRequest::setApiRevision(const std::string &apiRevision) {
apiRevision_ = apiRevision;
setBodyParameter(std::string("ApiRevision"), apiRevision);
}
std::string BindPictureSearchAppWithDevicesRequest::getAppInstanceId() const {
return appInstanceId_;
}
void BindPictureSearchAppWithDevicesRequest::setAppInstanceId(const std::string &appInstanceId) {
appInstanceId_ = appInstanceId;
setParameter(std::string("AppInstanceId"), appInstanceId);
}

View File

@@ -0,0 +1,65 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/BindPictureSearchAppWithDevicesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Linkvisual;
using namespace AlibabaCloud::Linkvisual::Model;
BindPictureSearchAppWithDevicesResult::BindPictureSearchAppWithDevicesResult() :
ServiceResult()
{}
BindPictureSearchAppWithDevicesResult::BindPictureSearchAppWithDevicesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
BindPictureSearchAppWithDevicesResult::~BindPictureSearchAppWithDevicesResult()
{}
void BindPictureSearchAppWithDevicesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string BindPictureSearchAppWithDevicesResult::getErrorMessage()const
{
return errorMessage_;
}
std::string BindPictureSearchAppWithDevicesResult::getCode()const
{
return code_;
}
bool BindPictureSearchAppWithDevicesResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,90 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/CheckFaceUserDoExistOnDeviceRequest.h>
using AlibabaCloud::Linkvisual::Model::CheckFaceUserDoExistOnDeviceRequest;
CheckFaceUserDoExistOnDeviceRequest::CheckFaceUserDoExistOnDeviceRequest()
: RpcServiceRequest("linkvisual", "2018-01-20", "CheckFaceUserDoExistOnDevice") {
setMethod(HttpRequest::Method::Post);
}
CheckFaceUserDoExistOnDeviceRequest::~CheckFaceUserDoExistOnDeviceRequest() {}
std::string CheckFaceUserDoExistOnDeviceRequest::getIsolationId() const {
return isolationId_;
}
void CheckFaceUserDoExistOnDeviceRequest::setIsolationId(const std::string &isolationId) {
isolationId_ = isolationId;
setParameter(std::string("IsolationId"), isolationId);
}
std::string CheckFaceUserDoExistOnDeviceRequest::getUserId() const {
return userId_;
}
void CheckFaceUserDoExistOnDeviceRequest::setUserId(const std::string &userId) {
userId_ = userId;
setParameter(std::string("UserId"), userId);
}
std::string CheckFaceUserDoExistOnDeviceRequest::getIotInstanceId() const {
return iotInstanceId_;
}
void CheckFaceUserDoExistOnDeviceRequest::setIotInstanceId(const std::string &iotInstanceId) {
iotInstanceId_ = iotInstanceId;
setParameter(std::string("IotInstanceId"), iotInstanceId);
}
std::string CheckFaceUserDoExistOnDeviceRequest::getProductKey() const {
return productKey_;
}
void CheckFaceUserDoExistOnDeviceRequest::setProductKey(const std::string &productKey) {
productKey_ = productKey;
setParameter(std::string("ProductKey"), productKey);
}
std::string CheckFaceUserDoExistOnDeviceRequest::getApiProduct() const {
return apiProduct_;
}
void CheckFaceUserDoExistOnDeviceRequest::setApiProduct(const std::string &apiProduct) {
apiProduct_ = apiProduct;
setBodyParameter(std::string("ApiProduct"), apiProduct);
}
std::string CheckFaceUserDoExistOnDeviceRequest::getApiRevision() const {
return apiRevision_;
}
void CheckFaceUserDoExistOnDeviceRequest::setApiRevision(const std::string &apiRevision) {
apiRevision_ = apiRevision;
setBodyParameter(std::string("ApiRevision"), apiRevision);
}
std::string CheckFaceUserDoExistOnDeviceRequest::getDeviceName() const {
return deviceName_;
}
void CheckFaceUserDoExistOnDeviceRequest::setDeviceName(const std::string &deviceName) {
deviceName_ = deviceName;
setParameter(std::string("DeviceName"), deviceName);
}

View File

@@ -0,0 +1,73 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/CheckFaceUserDoExistOnDeviceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Linkvisual;
using namespace AlibabaCloud::Linkvisual::Model;
CheckFaceUserDoExistOnDeviceResult::CheckFaceUserDoExistOnDeviceResult() :
ServiceResult()
{}
CheckFaceUserDoExistOnDeviceResult::CheckFaceUserDoExistOnDeviceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CheckFaceUserDoExistOnDeviceResult::~CheckFaceUserDoExistOnDeviceResult()
{}
void CheckFaceUserDoExistOnDeviceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["DoExist"].isNull())
data_.doExist = dataNode["DoExist"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
CheckFaceUserDoExistOnDeviceResult::Data CheckFaceUserDoExistOnDeviceResult::getData()const
{
return data_;
}
std::string CheckFaceUserDoExistOnDeviceResult::getErrorMessage()const
{
return errorMessage_;
}
std::string CheckFaceUserDoExistOnDeviceResult::getCode()const
{
return code_;
}
bool CheckFaceUserDoExistOnDeviceResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,81 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/ClearFaceDeviceDBRequest.h>
using AlibabaCloud::Linkvisual::Model::ClearFaceDeviceDBRequest;
ClearFaceDeviceDBRequest::ClearFaceDeviceDBRequest()
: RpcServiceRequest("linkvisual", "2018-01-20", "ClearFaceDeviceDB") {
setMethod(HttpRequest::Method::Post);
}
ClearFaceDeviceDBRequest::~ClearFaceDeviceDBRequest() {}
std::string ClearFaceDeviceDBRequest::getIsolationId() const {
return isolationId_;
}
void ClearFaceDeviceDBRequest::setIsolationId(const std::string &isolationId) {
isolationId_ = isolationId;
setParameter(std::string("IsolationId"), isolationId);
}
std::string ClearFaceDeviceDBRequest::getIotInstanceId() const {
return iotInstanceId_;
}
void ClearFaceDeviceDBRequest::setIotInstanceId(const std::string &iotInstanceId) {
iotInstanceId_ = iotInstanceId;
setParameter(std::string("IotInstanceId"), iotInstanceId);
}
std::string ClearFaceDeviceDBRequest::getProductKey() const {
return productKey_;
}
void ClearFaceDeviceDBRequest::setProductKey(const std::string &productKey) {
productKey_ = productKey;
setParameter(std::string("ProductKey"), productKey);
}
std::string ClearFaceDeviceDBRequest::getApiProduct() const {
return apiProduct_;
}
void ClearFaceDeviceDBRequest::setApiProduct(const std::string &apiProduct) {
apiProduct_ = apiProduct;
setBodyParameter(std::string("ApiProduct"), apiProduct);
}
std::string ClearFaceDeviceDBRequest::getApiRevision() const {
return apiRevision_;
}
void ClearFaceDeviceDBRequest::setApiRevision(const std::string &apiRevision) {
apiRevision_ = apiRevision;
setBodyParameter(std::string("ApiRevision"), apiRevision);
}
std::string ClearFaceDeviceDBRequest::getDeviceName() const {
return deviceName_;
}
void ClearFaceDeviceDBRequest::setDeviceName(const std::string &deviceName) {
deviceName_ = deviceName;
setParameter(std::string("DeviceName"), deviceName);
}

View File

@@ -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.
*/
#include <alibabacloud/linkvisual/model/ClearFaceDeviceDBResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Linkvisual;
using namespace AlibabaCloud::Linkvisual::Model;
ClearFaceDeviceDBResult::ClearFaceDeviceDBResult() :
ServiceResult()
{}
ClearFaceDeviceDBResult::ClearFaceDeviceDBResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ClearFaceDeviceDBResult::~ClearFaceDeviceDBResult()
{}
void ClearFaceDeviceDBResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Data"].isNull())
data_ = value["Data"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string ClearFaceDeviceDBResult::getData()const
{
return data_;
}
std::string ClearFaceDeviceDBResult::getErrorMessage()const
{
return errorMessage_;
}
std::string ClearFaceDeviceDBResult::getCode()const
{
return code_;
}
bool ClearFaceDeviceDBResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,90 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/CreateEventRecordPlanRequest.h>
using AlibabaCloud::Linkvisual::Model::CreateEventRecordPlanRequest;
CreateEventRecordPlanRequest::CreateEventRecordPlanRequest()
: RpcServiceRequest("linkvisual", "2018-01-20", "CreateEventRecordPlan") {
setMethod(HttpRequest::Method::Post);
}
CreateEventRecordPlanRequest::~CreateEventRecordPlanRequest() {}
std::string CreateEventRecordPlanRequest::getEventTypes() const {
return eventTypes_;
}
void CreateEventRecordPlanRequest::setEventTypes(const std::string &eventTypes) {
eventTypes_ = eventTypes;
setParameter(std::string("EventTypes"), eventTypes);
}
int CreateEventRecordPlanRequest::getPreRecordDuration() const {
return preRecordDuration_;
}
void CreateEventRecordPlanRequest::setPreRecordDuration(int preRecordDuration) {
preRecordDuration_ = preRecordDuration;
setParameter(std::string("PreRecordDuration"), std::to_string(preRecordDuration));
}
int CreateEventRecordPlanRequest::getRecordDuration() const {
return recordDuration_;
}
void CreateEventRecordPlanRequest::setRecordDuration(int recordDuration) {
recordDuration_ = recordDuration;
setParameter(std::string("RecordDuration"), std::to_string(recordDuration));
}
std::string CreateEventRecordPlanRequest::getTemplateId() const {
return templateId_;
}
void CreateEventRecordPlanRequest::setTemplateId(const std::string &templateId) {
templateId_ = templateId;
setParameter(std::string("TemplateId"), templateId);
}
std::string CreateEventRecordPlanRequest::getApiProduct() const {
return apiProduct_;
}
void CreateEventRecordPlanRequest::setApiProduct(const std::string &apiProduct) {
apiProduct_ = apiProduct;
setBodyParameter(std::string("ApiProduct"), apiProduct);
}
std::string CreateEventRecordPlanRequest::getName() const {
return name_;
}
void CreateEventRecordPlanRequest::setName(const std::string &name) {
name_ = name;
setParameter(std::string("Name"), name);
}
std::string CreateEventRecordPlanRequest::getApiRevision() const {
return apiRevision_;
}
void CreateEventRecordPlanRequest::setApiRevision(const std::string &apiRevision) {
apiRevision_ = apiRevision;
setBodyParameter(std::string("ApiRevision"), apiRevision);
}

View File

@@ -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.
*/
#include <alibabacloud/linkvisual/model/CreateEventRecordPlanResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Linkvisual;
using namespace AlibabaCloud::Linkvisual::Model;
CreateEventRecordPlanResult::CreateEventRecordPlanResult() :
ServiceResult()
{}
CreateEventRecordPlanResult::CreateEventRecordPlanResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateEventRecordPlanResult::~CreateEventRecordPlanResult()
{}
void CreateEventRecordPlanResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Data"].isNull())
data_ = value["Data"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string CreateEventRecordPlanResult::getData()const
{
return data_;
}
std::string CreateEventRecordPlanResult::getErrorMessage()const
{
return errorMessage_;
}
std::string CreateEventRecordPlanResult::getCode()const
{
return code_;
}
bool CreateEventRecordPlanResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,126 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/CreateGbDeviceRequest.h>
using AlibabaCloud::Linkvisual::Model::CreateGbDeviceRequest;
CreateGbDeviceRequest::CreateGbDeviceRequest()
: RpcServiceRequest("linkvisual", "2018-01-20", "CreateGbDevice") {
setMethod(HttpRequest::Method::Post);
}
CreateGbDeviceRequest::~CreateGbDeviceRequest() {}
std::string CreateGbDeviceRequest::getSubProductKey() const {
return subProductKey_;
}
void CreateGbDeviceRequest::setSubProductKey(const std::string &subProductKey) {
subProductKey_ = subProductKey;
setParameter(std::string("SubProductKey"), subProductKey);
}
std::string CreateGbDeviceRequest::getGbId() const {
return gbId_;
}
void CreateGbDeviceRequest::setGbId(const std::string &gbId) {
gbId_ = gbId;
setParameter(std::string("GbId"), gbId);
}
std::string CreateGbDeviceRequest::getDescription() const {
return description_;
}
void CreateGbDeviceRequest::setDescription(const std::string &description) {
description_ = description;
setParameter(std::string("Description"), description);
}
int CreateGbDeviceRequest::getDeviceType() const {
return deviceType_;
}
void CreateGbDeviceRequest::setDeviceType(int deviceType) {
deviceType_ = deviceType;
setParameter(std::string("DeviceType"), std::to_string(deviceType));
}
std::string CreateGbDeviceRequest::getPassword() const {
return password_;
}
void CreateGbDeviceRequest::setPassword(const std::string &password) {
password_ = password;
setParameter(std::string("Password"), password);
}
std::string CreateGbDeviceRequest::getIotInstanceId() const {
return iotInstanceId_;
}
void CreateGbDeviceRequest::setIotInstanceId(const std::string &iotInstanceId) {
iotInstanceId_ = iotInstanceId;
setParameter(std::string("IotInstanceId"), iotInstanceId);
}
int CreateGbDeviceRequest::getDeviceProtocol() const {
return deviceProtocol_;
}
void CreateGbDeviceRequest::setDeviceProtocol(int deviceProtocol) {
deviceProtocol_ = deviceProtocol;
setParameter(std::string("DeviceProtocol"), std::to_string(deviceProtocol));
}
std::string CreateGbDeviceRequest::getProductKey() const {
return productKey_;
}
void CreateGbDeviceRequest::setProductKey(const std::string &productKey) {
productKey_ = productKey;
setParameter(std::string("ProductKey"), productKey);
}
std::string CreateGbDeviceRequest::getMediaNetProtocol() const {
return mediaNetProtocol_;
}
void CreateGbDeviceRequest::setMediaNetProtocol(const std::string &mediaNetProtocol) {
mediaNetProtocol_ = mediaNetProtocol;
setParameter(std::string("MediaNetProtocol"), mediaNetProtocol);
}
std::string CreateGbDeviceRequest::getApiProduct() const {
return apiProduct_;
}
void CreateGbDeviceRequest::setApiProduct(const std::string &apiProduct) {
apiProduct_ = apiProduct;
setBodyParameter(std::string("ApiProduct"), apiProduct);
}
std::string CreateGbDeviceRequest::getApiRevision() const {
return apiRevision_;
}
void CreateGbDeviceRequest::setApiRevision(const std::string &apiRevision) {
apiRevision_ = apiRevision;
setBodyParameter(std::string("ApiRevision"), apiRevision);
}

View File

@@ -0,0 +1,75 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/CreateGbDeviceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Linkvisual;
using namespace AlibabaCloud::Linkvisual::Model;
CreateGbDeviceResult::CreateGbDeviceResult() :
ServiceResult()
{}
CreateGbDeviceResult::CreateGbDeviceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateGbDeviceResult::~CreateGbDeviceResult()
{}
void CreateGbDeviceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["DeviceName"].isNull())
data_.deviceName = dataNode["DeviceName"].asString();
if(!dataNode["IotId"].isNull())
data_.iotId = dataNode["IotId"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
CreateGbDeviceResult::Data CreateGbDeviceResult::getData()const
{
return data_;
}
std::string CreateGbDeviceResult::getErrorMessage()const
{
return errorMessage_;
}
std::string CreateGbDeviceResult::getCode()const
{
return code_;
}
bool CreateGbDeviceResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,71 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/CreateLocalFileUploadJobRequest.h>
using AlibabaCloud::Linkvisual::Model::CreateLocalFileUploadJobRequest;
CreateLocalFileUploadJobRequest::CreateLocalFileUploadJobRequest()
: RpcServiceRequest("linkvisual", "2018-01-20", "CreateLocalFileUploadJob") {
setMethod(HttpRequest::Method::Post);
}
CreateLocalFileUploadJobRequest::~CreateLocalFileUploadJobRequest() {}
std::string CreateLocalFileUploadJobRequest::getIotInstanceId() const {
return iotInstanceId_;
}
void CreateLocalFileUploadJobRequest::setIotInstanceId(const std::string &iotInstanceId) {
iotInstanceId_ = iotInstanceId;
setParameter(std::string("IotInstanceId"), iotInstanceId);
}
std::vector<CreateLocalFileUploadJobRequest::TimeSlot> CreateLocalFileUploadJobRequest::getTimeSlot() const {
return timeSlot_;
}
void CreateLocalFileUploadJobRequest::setTimeSlot(const std::vector<CreateLocalFileUploadJobRequest::TimeSlot> &timeSlot) {
timeSlot_ = timeSlot;
for(int dep1 = 0; dep1 != timeSlot.size(); dep1++) {
auto timeSlotObj = timeSlot.at(dep1);
std::string timeSlotObjStr = std::string("TimeSlot") + "." + std::to_string(dep1 + 1);
setParameter(timeSlotObjStr + ".EndTime", std::to_string(timeSlotObj.endTime));
setParameter(timeSlotObjStr + ".StartTime", std::to_string(timeSlotObj.startTime));
setParameter(timeSlotObjStr + ".ProductKey", timeSlotObj.productKey);
setParameter(timeSlotObjStr + ".DeviceName", timeSlotObj.deviceName);
setParameter(timeSlotObjStr + ".IotId", timeSlotObj.iotId);
}
}
std::string CreateLocalFileUploadJobRequest::getApiProduct() const {
return apiProduct_;
}
void CreateLocalFileUploadJobRequest::setApiProduct(const std::string &apiProduct) {
apiProduct_ = apiProduct;
setBodyParameter(std::string("ApiProduct"), apiProduct);
}
std::string CreateLocalFileUploadJobRequest::getApiRevision() const {
return apiRevision_;
}
void CreateLocalFileUploadJobRequest::setApiRevision(const std::string &apiRevision) {
apiRevision_ = apiRevision;
setBodyParameter(std::string("ApiRevision"), apiRevision);
}

View File

@@ -0,0 +1,73 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/CreateLocalFileUploadJobResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Linkvisual;
using namespace AlibabaCloud::Linkvisual::Model;
CreateLocalFileUploadJobResult::CreateLocalFileUploadJobResult() :
ServiceResult()
{}
CreateLocalFileUploadJobResult::CreateLocalFileUploadJobResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateLocalFileUploadJobResult::~CreateLocalFileUploadJobResult()
{}
void CreateLocalFileUploadJobResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["JobId"].isNull())
data_.jobId = dataNode["JobId"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
CreateLocalFileUploadJobResult::Data CreateLocalFileUploadJobResult::getData()const
{
return data_;
}
std::string CreateLocalFileUploadJobResult::getErrorMessage()const
{
return errorMessage_;
}
std::string CreateLocalFileUploadJobResult::getCode()const
{
return code_;
}
bool CreateLocalFileUploadJobResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,117 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/CreateLocalRecordDownloadByTimeJobRequest.h>
using AlibabaCloud::Linkvisual::Model::CreateLocalRecordDownloadByTimeJobRequest;
CreateLocalRecordDownloadByTimeJobRequest::CreateLocalRecordDownloadByTimeJobRequest()
: RpcServiceRequest("linkvisual", "2018-01-20", "CreateLocalRecordDownloadByTimeJob") {
setMethod(HttpRequest::Method::Post);
}
CreateLocalRecordDownloadByTimeJobRequest::~CreateLocalRecordDownloadByTimeJobRequest() {}
float CreateLocalRecordDownloadByTimeJobRequest::getSpeed() const {
return speed_;
}
void CreateLocalRecordDownloadByTimeJobRequest::setSpeed(float speed) {
speed_ = speed;
setParameter(std::string("Speed"), std::to_string(speed));
}
std::string CreateLocalRecordDownloadByTimeJobRequest::getIotId() const {
return iotId_;
}
void CreateLocalRecordDownloadByTimeJobRequest::setIotId(const std::string &iotId) {
iotId_ = iotId;
setParameter(std::string("IotId"), iotId);
}
std::string CreateLocalRecordDownloadByTimeJobRequest::getIotInstanceId() const {
return iotInstanceId_;
}
void CreateLocalRecordDownloadByTimeJobRequest::setIotInstanceId(const std::string &iotInstanceId) {
iotInstanceId_ = iotInstanceId;
setParameter(std::string("IotInstanceId"), iotInstanceId);
}
int CreateLocalRecordDownloadByTimeJobRequest::getStreamType() const {
return streamType_;
}
void CreateLocalRecordDownloadByTimeJobRequest::setStreamType(int streamType) {
streamType_ = streamType;
setParameter(std::string("StreamType"), std::to_string(streamType));
}
int CreateLocalRecordDownloadByTimeJobRequest::getEndTime() const {
return endTime_;
}
void CreateLocalRecordDownloadByTimeJobRequest::setEndTime(int endTime) {
endTime_ = endTime;
setParameter(std::string("EndTime"), std::to_string(endTime));
}
int CreateLocalRecordDownloadByTimeJobRequest::getBeginTime() const {
return beginTime_;
}
void CreateLocalRecordDownloadByTimeJobRequest::setBeginTime(int beginTime) {
beginTime_ = beginTime;
setParameter(std::string("BeginTime"), std::to_string(beginTime));
}
std::string CreateLocalRecordDownloadByTimeJobRequest::getProductKey() const {
return productKey_;
}
void CreateLocalRecordDownloadByTimeJobRequest::setProductKey(const std::string &productKey) {
productKey_ = productKey;
setParameter(std::string("ProductKey"), productKey);
}
std::string CreateLocalRecordDownloadByTimeJobRequest::getApiProduct() const {
return apiProduct_;
}
void CreateLocalRecordDownloadByTimeJobRequest::setApiProduct(const std::string &apiProduct) {
apiProduct_ = apiProduct;
setBodyParameter(std::string("ApiProduct"), apiProduct);
}
std::string CreateLocalRecordDownloadByTimeJobRequest::getApiRevision() const {
return apiRevision_;
}
void CreateLocalRecordDownloadByTimeJobRequest::setApiRevision(const std::string &apiRevision) {
apiRevision_ = apiRevision;
setBodyParameter(std::string("ApiRevision"), apiRevision);
}
std::string CreateLocalRecordDownloadByTimeJobRequest::getDeviceName() const {
return deviceName_;
}
void CreateLocalRecordDownloadByTimeJobRequest::setDeviceName(const std::string &deviceName) {
deviceName_ = deviceName;
setParameter(std::string("DeviceName"), deviceName);
}

View File

@@ -0,0 +1,73 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/CreateLocalRecordDownloadByTimeJobResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Linkvisual;
using namespace AlibabaCloud::Linkvisual::Model;
CreateLocalRecordDownloadByTimeJobResult::CreateLocalRecordDownloadByTimeJobResult() :
ServiceResult()
{}
CreateLocalRecordDownloadByTimeJobResult::CreateLocalRecordDownloadByTimeJobResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateLocalRecordDownloadByTimeJobResult::~CreateLocalRecordDownloadByTimeJobResult()
{}
void CreateLocalRecordDownloadByTimeJobResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["JobId"].isNull())
data_.jobId = dataNode["JobId"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
CreateLocalRecordDownloadByTimeJobResult::Data CreateLocalRecordDownloadByTimeJobResult::getData()const
{
return data_;
}
std::string CreateLocalRecordDownloadByTimeJobResult::getErrorMessage()const
{
return errorMessage_;
}
std::string CreateLocalRecordDownloadByTimeJobResult::getCode()const
{
return code_;
}
bool CreateLocalRecordDownloadByTimeJobResult::getSuccess()const
{
return success_;
}

View File

@@ -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.
*/
#include <alibabacloud/linkvisual/model/CreatePictureSearchAppRequest.h>
using AlibabaCloud::Linkvisual::Model::CreatePictureSearchAppRequest;
CreatePictureSearchAppRequest::CreatePictureSearchAppRequest()
: RpcServiceRequest("linkvisual", "2018-01-20", "CreatePictureSearchApp") {
setMethod(HttpRequest::Method::Post);
}
CreatePictureSearchAppRequest::~CreatePictureSearchAppRequest() {}
std::string CreatePictureSearchAppRequest::getIotInstanceId() const {
return iotInstanceId_;
}
void CreatePictureSearchAppRequest::setIotInstanceId(const std::string &iotInstanceId) {
iotInstanceId_ = iotInstanceId;
setParameter(std::string("IotInstanceId"), iotInstanceId);
}
std::string CreatePictureSearchAppRequest::getApiProduct() const {
return apiProduct_;
}
void CreatePictureSearchAppRequest::setApiProduct(const std::string &apiProduct) {
apiProduct_ = apiProduct;
setBodyParameter(std::string("ApiProduct"), apiProduct);
}
std::string CreatePictureSearchAppRequest::getName() const {
return name_;
}
void CreatePictureSearchAppRequest::setName(const std::string &name) {
name_ = name;
setParameter(std::string("Name"), name);
}
std::string CreatePictureSearchAppRequest::getApiRevision() const {
return apiRevision_;
}
void CreatePictureSearchAppRequest::setApiRevision(const std::string &apiRevision) {
apiRevision_ = apiRevision;
setBodyParameter(std::string("ApiRevision"), apiRevision);
}
std::string CreatePictureSearchAppRequest::getDesc() const {
return desc_;
}
void CreatePictureSearchAppRequest::setDesc(const std::string &desc) {
desc_ = desc;
setParameter(std::string("Desc"), desc);
}

View File

@@ -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.
*/
#include <alibabacloud/linkvisual/model/CreatePictureSearchAppResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Linkvisual;
using namespace AlibabaCloud::Linkvisual::Model;
CreatePictureSearchAppResult::CreatePictureSearchAppResult() :
ServiceResult()
{}
CreatePictureSearchAppResult::CreatePictureSearchAppResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreatePictureSearchAppResult::~CreatePictureSearchAppResult()
{}
void CreatePictureSearchAppResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Data"].isNull())
data_ = value["Data"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string CreatePictureSearchAppResult::getData()const
{
return data_;
}
std::string CreatePictureSearchAppResult::getErrorMessage()const
{
return errorMessage_;
}
std::string CreatePictureSearchAppResult::getCode()const
{
return code_;
}
bool CreatePictureSearchAppResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,108 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/CreatePictureSearchJobRequest.h>
using AlibabaCloud::Linkvisual::Model::CreatePictureSearchJobRequest;
CreatePictureSearchJobRequest::CreatePictureSearchJobRequest()
: RpcServiceRequest("linkvisual", "2018-01-20", "CreatePictureSearchJob") {
setMethod(HttpRequest::Method::Post);
}
CreatePictureSearchJobRequest::~CreatePictureSearchJobRequest() {}
float CreatePictureSearchJobRequest::getThreshold() const {
return threshold_;
}
void CreatePictureSearchJobRequest::setThreshold(float threshold) {
threshold_ = threshold;
setParameter(std::string("Threshold"), std::to_string(threshold));
}
std::string CreatePictureSearchJobRequest::getSearchPicUrl() const {
return searchPicUrl_;
}
void CreatePictureSearchJobRequest::setSearchPicUrl(const std::string &searchPicUrl) {
searchPicUrl_ = searchPicUrl;
setParameter(std::string("SearchPicUrl"), searchPicUrl);
}
long CreatePictureSearchJobRequest::getStartTime() const {
return startTime_;
}
void CreatePictureSearchJobRequest::setStartTime(long startTime) {
startTime_ = startTime;
setParameter(std::string("StartTime"), std::to_string(startTime));
}
int CreatePictureSearchJobRequest::getPictureSearchType() const {
return pictureSearchType_;
}
void CreatePictureSearchJobRequest::setPictureSearchType(int pictureSearchType) {
pictureSearchType_ = pictureSearchType;
setParameter(std::string("PictureSearchType"), std::to_string(pictureSearchType));
}
float CreatePictureSearchJobRequest::getBodyThreshold() const {
return bodyThreshold_;
}
void CreatePictureSearchJobRequest::setBodyThreshold(float bodyThreshold) {
bodyThreshold_ = bodyThreshold;
setParameter(std::string("BodyThreshold"), std::to_string(bodyThreshold));
}
long CreatePictureSearchJobRequest::getEndTime() const {
return endTime_;
}
void CreatePictureSearchJobRequest::setEndTime(long endTime) {
endTime_ = endTime;
setParameter(std::string("EndTime"), std::to_string(endTime));
}
std::string CreatePictureSearchJobRequest::getApiProduct() const {
return apiProduct_;
}
void CreatePictureSearchJobRequest::setApiProduct(const std::string &apiProduct) {
apiProduct_ = apiProduct;
setBodyParameter(std::string("ApiProduct"), apiProduct);
}
std::string CreatePictureSearchJobRequest::getApiRevision() const {
return apiRevision_;
}
void CreatePictureSearchJobRequest::setApiRevision(const std::string &apiRevision) {
apiRevision_ = apiRevision;
setBodyParameter(std::string("ApiRevision"), apiRevision);
}
std::string CreatePictureSearchJobRequest::getAppInstanceId() const {
return appInstanceId_;
}
void CreatePictureSearchJobRequest::setAppInstanceId(const std::string &appInstanceId) {
appInstanceId_ = appInstanceId;
setParameter(std::string("AppInstanceId"), appInstanceId);
}

View File

@@ -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.
*/
#include <alibabacloud/linkvisual/model/CreatePictureSearchJobResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Linkvisual;
using namespace AlibabaCloud::Linkvisual::Model;
CreatePictureSearchJobResult::CreatePictureSearchJobResult() :
ServiceResult()
{}
CreatePictureSearchJobResult::CreatePictureSearchJobResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreatePictureSearchJobResult::~CreatePictureSearchJobResult()
{}
void CreatePictureSearchJobResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Data"].isNull())
data_ = value["Data"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string CreatePictureSearchJobResult::getData()const
{
return data_;
}
std::string CreatePictureSearchJobResult::getErrorMessage()const
{
return errorMessage_;
}
std::string CreatePictureSearchJobResult::getCode()const
{
return code_;
}
bool CreatePictureSearchJobResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,117 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/CreateRecordDownloadByTimeJobRequest.h>
using AlibabaCloud::Linkvisual::Model::CreateRecordDownloadByTimeJobRequest;
CreateRecordDownloadByTimeJobRequest::CreateRecordDownloadByTimeJobRequest()
: RpcServiceRequest("linkvisual", "2018-01-20", "CreateRecordDownloadByTimeJob") {
setMethod(HttpRequest::Method::Post);
}
CreateRecordDownloadByTimeJobRequest::~CreateRecordDownloadByTimeJobRequest() {}
std::string CreateRecordDownloadByTimeJobRequest::getIotId() const {
return iotId_;
}
void CreateRecordDownloadByTimeJobRequest::setIotId(const std::string &iotId) {
iotId_ = iotId;
setParameter(std::string("IotId"), iotId);
}
std::string CreateRecordDownloadByTimeJobRequest::getIotInstanceId() const {
return iotInstanceId_;
}
void CreateRecordDownloadByTimeJobRequest::setIotInstanceId(const std::string &iotInstanceId) {
iotInstanceId_ = iotInstanceId;
setParameter(std::string("IotInstanceId"), iotInstanceId);
}
int CreateRecordDownloadByTimeJobRequest::getRecordType() const {
return recordType_;
}
void CreateRecordDownloadByTimeJobRequest::setRecordType(int recordType) {
recordType_ = recordType;
setParameter(std::string("RecordType"), std::to_string(recordType));
}
int CreateRecordDownloadByTimeJobRequest::getStreamType() const {
return streamType_;
}
void CreateRecordDownloadByTimeJobRequest::setStreamType(int streamType) {
streamType_ = streamType;
setParameter(std::string("StreamType"), std::to_string(streamType));
}
int CreateRecordDownloadByTimeJobRequest::getEndTime() const {
return endTime_;
}
void CreateRecordDownloadByTimeJobRequest::setEndTime(int endTime) {
endTime_ = endTime;
setParameter(std::string("EndTime"), std::to_string(endTime));
}
int CreateRecordDownloadByTimeJobRequest::getBeginTime() const {
return beginTime_;
}
void CreateRecordDownloadByTimeJobRequest::setBeginTime(int beginTime) {
beginTime_ = beginTime;
setParameter(std::string("BeginTime"), std::to_string(beginTime));
}
std::string CreateRecordDownloadByTimeJobRequest::getProductKey() const {
return productKey_;
}
void CreateRecordDownloadByTimeJobRequest::setProductKey(const std::string &productKey) {
productKey_ = productKey;
setParameter(std::string("ProductKey"), productKey);
}
std::string CreateRecordDownloadByTimeJobRequest::getApiProduct() const {
return apiProduct_;
}
void CreateRecordDownloadByTimeJobRequest::setApiProduct(const std::string &apiProduct) {
apiProduct_ = apiProduct;
setBodyParameter(std::string("ApiProduct"), apiProduct);
}
std::string CreateRecordDownloadByTimeJobRequest::getApiRevision() const {
return apiRevision_;
}
void CreateRecordDownloadByTimeJobRequest::setApiRevision(const std::string &apiRevision) {
apiRevision_ = apiRevision;
setBodyParameter(std::string("ApiRevision"), apiRevision);
}
std::string CreateRecordDownloadByTimeJobRequest::getDeviceName() const {
return deviceName_;
}
void CreateRecordDownloadByTimeJobRequest::setDeviceName(const std::string &deviceName) {
deviceName_ = deviceName;
setParameter(std::string("DeviceName"), deviceName);
}

View File

@@ -0,0 +1,73 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/CreateRecordDownloadByTimeJobResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Linkvisual;
using namespace AlibabaCloud::Linkvisual::Model;
CreateRecordDownloadByTimeJobResult::CreateRecordDownloadByTimeJobResult() :
ServiceResult()
{}
CreateRecordDownloadByTimeJobResult::CreateRecordDownloadByTimeJobResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateRecordDownloadByTimeJobResult::~CreateRecordDownloadByTimeJobResult()
{}
void CreateRecordDownloadByTimeJobResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["JobId"].isNull())
data_.jobId = dataNode["JobId"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
CreateRecordDownloadByTimeJobResult::Data CreateRecordDownloadByTimeJobResult::getData()const
{
return data_;
}
std::string CreateRecordDownloadByTimeJobResult::getErrorMessage()const
{
return errorMessage_;
}
std::string CreateRecordDownloadByTimeJobResult::getCode()const
{
return code_;
}
bool CreateRecordDownloadByTimeJobResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,63 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/CreateRecordPlanRequest.h>
using AlibabaCloud::Linkvisual::Model::CreateRecordPlanRequest;
CreateRecordPlanRequest::CreateRecordPlanRequest()
: RpcServiceRequest("linkvisual", "2018-01-20", "CreateRecordPlan") {
setMethod(HttpRequest::Method::Post);
}
CreateRecordPlanRequest::~CreateRecordPlanRequest() {}
std::string CreateRecordPlanRequest::getTemplateId() const {
return templateId_;
}
void CreateRecordPlanRequest::setTemplateId(const std::string &templateId) {
templateId_ = templateId;
setParameter(std::string("TemplateId"), templateId);
}
std::string CreateRecordPlanRequest::getApiProduct() const {
return apiProduct_;
}
void CreateRecordPlanRequest::setApiProduct(const std::string &apiProduct) {
apiProduct_ = apiProduct;
setBodyParameter(std::string("ApiProduct"), apiProduct);
}
std::string CreateRecordPlanRequest::getName() const {
return name_;
}
void CreateRecordPlanRequest::setName(const std::string &name) {
name_ = name;
setParameter(std::string("Name"), name);
}
std::string CreateRecordPlanRequest::getApiRevision() const {
return apiRevision_;
}
void CreateRecordPlanRequest::setApiRevision(const std::string &apiRevision) {
apiRevision_ = apiRevision;
setBodyParameter(std::string("ApiRevision"), apiRevision);
}

View File

@@ -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.
*/
#include <alibabacloud/linkvisual/model/CreateRecordPlanResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Linkvisual;
using namespace AlibabaCloud::Linkvisual::Model;
CreateRecordPlanResult::CreateRecordPlanResult() :
ServiceResult()
{}
CreateRecordPlanResult::CreateRecordPlanResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateRecordPlanResult::~CreateRecordPlanResult()
{}
void CreateRecordPlanResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Data"].isNull())
data_ = value["Data"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string CreateRecordPlanResult::getData()const
{
return data_;
}
std::string CreateRecordPlanResult::getErrorMessage()const
{
return errorMessage_;
}
std::string CreateRecordPlanResult::getCode()const
{
return code_;
}
bool CreateRecordPlanResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,126 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/CreateRtmpDeviceRequest.h>
using AlibabaCloud::Linkvisual::Model::CreateRtmpDeviceRequest;
CreateRtmpDeviceRequest::CreateRtmpDeviceRequest()
: RpcServiceRequest("linkvisual", "2018-01-20", "CreateRtmpDevice") {
setMethod(HttpRequest::Method::Post);
}
CreateRtmpDeviceRequest::~CreateRtmpDeviceRequest() {}
std::string CreateRtmpDeviceRequest::getDescription() const {
return description_;
}
void CreateRtmpDeviceRequest::setDescription(const std::string &description) {
description_ = description;
setParameter(std::string("Description"), description);
}
std::string CreateRtmpDeviceRequest::getPushAuthKey() const {
return pushAuthKey_;
}
void CreateRtmpDeviceRequest::setPushAuthKey(const std::string &pushAuthKey) {
pushAuthKey_ = pushAuthKey;
setParameter(std::string("PushAuthKey"), pushAuthKey);
}
std::string CreateRtmpDeviceRequest::getIotInstanceId() const {
return iotInstanceId_;
}
void CreateRtmpDeviceRequest::setIotInstanceId(const std::string &iotInstanceId) {
iotInstanceId_ = iotInstanceId;
setParameter(std::string("IotInstanceId"), iotInstanceId);
}
int CreateRtmpDeviceRequest::getPushKeyExpireTime() const {
return pushKeyExpireTime_;
}
void CreateRtmpDeviceRequest::setPushKeyExpireTime(int pushKeyExpireTime) {
pushKeyExpireTime_ = pushKeyExpireTime;
setParameter(std::string("PushKeyExpireTime"), std::to_string(pushKeyExpireTime));
}
std::string CreateRtmpDeviceRequest::getPullAuthKey() const {
return pullAuthKey_;
}
void CreateRtmpDeviceRequest::setPullAuthKey(const std::string &pullAuthKey) {
pullAuthKey_ = pullAuthKey;
setParameter(std::string("PullAuthKey"), pullAuthKey);
}
std::string CreateRtmpDeviceRequest::getSubStreamName() const {
return subStreamName_;
}
void CreateRtmpDeviceRequest::setSubStreamName(const std::string &subStreamName) {
subStreamName_ = subStreamName;
setParameter(std::string("SubStreamName"), subStreamName);
}
std::string CreateRtmpDeviceRequest::getProductKey() const {
return productKey_;
}
void CreateRtmpDeviceRequest::setProductKey(const std::string &productKey) {
productKey_ = productKey;
setParameter(std::string("ProductKey"), productKey);
}
std::string CreateRtmpDeviceRequest::getApiProduct() const {
return apiProduct_;
}
void CreateRtmpDeviceRequest::setApiProduct(const std::string &apiProduct) {
apiProduct_ = apiProduct;
setBodyParameter(std::string("ApiProduct"), apiProduct);
}
std::string CreateRtmpDeviceRequest::getApiRevision() const {
return apiRevision_;
}
void CreateRtmpDeviceRequest::setApiRevision(const std::string &apiRevision) {
apiRevision_ = apiRevision;
setBodyParameter(std::string("ApiRevision"), apiRevision);
}
std::string CreateRtmpDeviceRequest::getDeviceName() const {
return deviceName_;
}
void CreateRtmpDeviceRequest::setDeviceName(const std::string &deviceName) {
deviceName_ = deviceName;
setParameter(std::string("DeviceName"), deviceName);
}
int CreateRtmpDeviceRequest::getPullKeyExpireTime() const {
return pullKeyExpireTime_;
}
void CreateRtmpDeviceRequest::setPullKeyExpireTime(int pullKeyExpireTime) {
pullKeyExpireTime_ = pullKeyExpireTime;
setParameter(std::string("PullKeyExpireTime"), std::to_string(pullKeyExpireTime));
}

View File

@@ -0,0 +1,77 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/CreateRtmpDeviceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Linkvisual;
using namespace AlibabaCloud::Linkvisual::Model;
CreateRtmpDeviceResult::CreateRtmpDeviceResult() :
ServiceResult()
{}
CreateRtmpDeviceResult::CreateRtmpDeviceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateRtmpDeviceResult::~CreateRtmpDeviceResult()
{}
void CreateRtmpDeviceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["DeviceName"].isNull())
data_.deviceName = dataNode["DeviceName"].asString();
if(!dataNode["StreamName"].isNull())
data_.streamName = dataNode["StreamName"].asString();
if(!dataNode["IotId"].isNull())
data_.iotId = dataNode["IotId"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
CreateRtmpDeviceResult::Data CreateRtmpDeviceResult::getData()const
{
return data_;
}
std::string CreateRtmpDeviceResult::getErrorMessage()const
{
return errorMessage_;
}
std::string CreateRtmpDeviceResult::getCode()const
{
return code_;
}
bool CreateRtmpDeviceResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,78 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/CreateTimeTemplateRequest.h>
using AlibabaCloud::Linkvisual::Model::CreateTimeTemplateRequest;
CreateTimeTemplateRequest::CreateTimeTemplateRequest()
: RpcServiceRequest("linkvisual", "2018-01-20", "CreateTimeTemplate") {
setMethod(HttpRequest::Method::Post);
}
CreateTimeTemplateRequest::~CreateTimeTemplateRequest() {}
std::vector<CreateTimeTemplateRequest::TimeSections> CreateTimeTemplateRequest::getTimeSections() const {
return timeSections_;
}
void CreateTimeTemplateRequest::setTimeSections(const std::vector<CreateTimeTemplateRequest::TimeSections> &timeSections) {
timeSections_ = timeSections;
for(int dep1 = 0; dep1 != timeSections.size(); dep1++) {
auto timeSectionsObj = timeSections.at(dep1);
std::string timeSectionsObjStr = std::string("TimeSections") + "." + std::to_string(dep1 + 1);
setParameter(timeSectionsObjStr + ".DayOfWeek", std::to_string(timeSectionsObj.dayOfWeek));
setParameter(timeSectionsObjStr + ".Begin", std::to_string(timeSectionsObj.begin));
setParameter(timeSectionsObjStr + ".End", std::to_string(timeSectionsObj.end));
}
}
int CreateTimeTemplateRequest::getAllDay() const {
return allDay_;
}
void CreateTimeTemplateRequest::setAllDay(int allDay) {
allDay_ = allDay;
setParameter(std::string("AllDay"), std::to_string(allDay));
}
std::string CreateTimeTemplateRequest::getApiProduct() const {
return apiProduct_;
}
void CreateTimeTemplateRequest::setApiProduct(const std::string &apiProduct) {
apiProduct_ = apiProduct;
setBodyParameter(std::string("ApiProduct"), apiProduct);
}
std::string CreateTimeTemplateRequest::getName() const {
return name_;
}
void CreateTimeTemplateRequest::setName(const std::string &name) {
name_ = name;
setParameter(std::string("Name"), name);
}
std::string CreateTimeTemplateRequest::getApiRevision() const {
return apiRevision_;
}
void CreateTimeTemplateRequest::setApiRevision(const std::string &apiRevision) {
apiRevision_ = apiRevision;
setBodyParameter(std::string("ApiRevision"), apiRevision);
}

View File

@@ -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.
*/
#include <alibabacloud/linkvisual/model/CreateTimeTemplateResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Linkvisual;
using namespace AlibabaCloud::Linkvisual::Model;
CreateTimeTemplateResult::CreateTimeTemplateResult() :
ServiceResult()
{}
CreateTimeTemplateResult::CreateTimeTemplateResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateTimeTemplateResult::~CreateTimeTemplateResult()
{}
void CreateTimeTemplateResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Data"].isNull())
data_ = value["Data"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string CreateTimeTemplateResult::getData()const
{
return data_;
}
std::string CreateTimeTemplateResult::getErrorMessage()const
{
return errorMessage_;
}
std::string CreateTimeTemplateResult::getCode()const
{
return code_;
}
bool CreateTimeTemplateResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,90 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/DeleteEventRecordPlanDeviceRequest.h>
using AlibabaCloud::Linkvisual::Model::DeleteEventRecordPlanDeviceRequest;
DeleteEventRecordPlanDeviceRequest::DeleteEventRecordPlanDeviceRequest()
: RpcServiceRequest("linkvisual", "2018-01-20", "DeleteEventRecordPlanDevice") {
setMethod(HttpRequest::Method::Post);
}
DeleteEventRecordPlanDeviceRequest::~DeleteEventRecordPlanDeviceRequest() {}
std::string DeleteEventRecordPlanDeviceRequest::getIotId() const {
return iotId_;
}
void DeleteEventRecordPlanDeviceRequest::setIotId(const std::string &iotId) {
iotId_ = iotId;
setParameter(std::string("IotId"), iotId);
}
std::string DeleteEventRecordPlanDeviceRequest::getIotInstanceId() const {
return iotInstanceId_;
}
void DeleteEventRecordPlanDeviceRequest::setIotInstanceId(const std::string &iotInstanceId) {
iotInstanceId_ = iotInstanceId;
setParameter(std::string("IotInstanceId"), iotInstanceId);
}
int DeleteEventRecordPlanDeviceRequest::getStreamType() const {
return streamType_;
}
void DeleteEventRecordPlanDeviceRequest::setStreamType(int streamType) {
streamType_ = streamType;
setParameter(std::string("StreamType"), std::to_string(streamType));
}
std::string DeleteEventRecordPlanDeviceRequest::getProductKey() const {
return productKey_;
}
void DeleteEventRecordPlanDeviceRequest::setProductKey(const std::string &productKey) {
productKey_ = productKey;
setParameter(std::string("ProductKey"), productKey);
}
std::string DeleteEventRecordPlanDeviceRequest::getApiProduct() const {
return apiProduct_;
}
void DeleteEventRecordPlanDeviceRequest::setApiProduct(const std::string &apiProduct) {
apiProduct_ = apiProduct;
setBodyParameter(std::string("ApiProduct"), apiProduct);
}
std::string DeleteEventRecordPlanDeviceRequest::getApiRevision() const {
return apiRevision_;
}
void DeleteEventRecordPlanDeviceRequest::setApiRevision(const std::string &apiRevision) {
apiRevision_ = apiRevision;
setBodyParameter(std::string("ApiRevision"), apiRevision);
}
std::string DeleteEventRecordPlanDeviceRequest::getDeviceName() const {
return deviceName_;
}
void DeleteEventRecordPlanDeviceRequest::setDeviceName(const std::string &deviceName) {
deviceName_ = deviceName;
setParameter(std::string("DeviceName"), deviceName);
}

View File

@@ -0,0 +1,65 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/DeleteEventRecordPlanDeviceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Linkvisual;
using namespace AlibabaCloud::Linkvisual::Model;
DeleteEventRecordPlanDeviceResult::DeleteEventRecordPlanDeviceResult() :
ServiceResult()
{}
DeleteEventRecordPlanDeviceResult::DeleteEventRecordPlanDeviceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteEventRecordPlanDeviceResult::~DeleteEventRecordPlanDeviceResult()
{}
void DeleteEventRecordPlanDeviceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string DeleteEventRecordPlanDeviceResult::getErrorMessage()const
{
return errorMessage_;
}
std::string DeleteEventRecordPlanDeviceResult::getCode()const
{
return code_;
}
bool DeleteEventRecordPlanDeviceResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,54 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/DeleteEventRecordPlanRequest.h>
using AlibabaCloud::Linkvisual::Model::DeleteEventRecordPlanRequest;
DeleteEventRecordPlanRequest::DeleteEventRecordPlanRequest()
: RpcServiceRequest("linkvisual", "2018-01-20", "DeleteEventRecordPlan") {
setMethod(HttpRequest::Method::Post);
}
DeleteEventRecordPlanRequest::~DeleteEventRecordPlanRequest() {}
std::string DeleteEventRecordPlanRequest::getApiProduct() const {
return apiProduct_;
}
void DeleteEventRecordPlanRequest::setApiProduct(const std::string &apiProduct) {
apiProduct_ = apiProduct;
setBodyParameter(std::string("ApiProduct"), apiProduct);
}
std::string DeleteEventRecordPlanRequest::getApiRevision() const {
return apiRevision_;
}
void DeleteEventRecordPlanRequest::setApiRevision(const std::string &apiRevision) {
apiRevision_ = apiRevision;
setBodyParameter(std::string("ApiRevision"), apiRevision);
}
std::string DeleteEventRecordPlanRequest::getPlanId() const {
return planId_;
}
void DeleteEventRecordPlanRequest::setPlanId(const std::string &planId) {
planId_ = planId;
setParameter(std::string("PlanId"), planId);
}

View File

@@ -0,0 +1,65 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/DeleteEventRecordPlanResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Linkvisual;
using namespace AlibabaCloud::Linkvisual::Model;
DeleteEventRecordPlanResult::DeleteEventRecordPlanResult() :
ServiceResult()
{}
DeleteEventRecordPlanResult::DeleteEventRecordPlanResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteEventRecordPlanResult::~DeleteEventRecordPlanResult()
{}
void DeleteEventRecordPlanResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string DeleteEventRecordPlanResult::getErrorMessage()const
{
return errorMessage_;
}
std::string DeleteEventRecordPlanResult::getCode()const
{
return code_;
}
bool DeleteEventRecordPlanResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,63 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/DeleteFaceDeviceGroupRequest.h>
using AlibabaCloud::Linkvisual::Model::DeleteFaceDeviceGroupRequest;
DeleteFaceDeviceGroupRequest::DeleteFaceDeviceGroupRequest()
: RpcServiceRequest("linkvisual", "2018-01-20", "DeleteFaceDeviceGroup") {
setMethod(HttpRequest::Method::Post);
}
DeleteFaceDeviceGroupRequest::~DeleteFaceDeviceGroupRequest() {}
std::string DeleteFaceDeviceGroupRequest::getIsolationId() const {
return isolationId_;
}
void DeleteFaceDeviceGroupRequest::setIsolationId(const std::string &isolationId) {
isolationId_ = isolationId;
setParameter(std::string("IsolationId"), isolationId);
}
std::string DeleteFaceDeviceGroupRequest::getDeviceGroupId() const {
return deviceGroupId_;
}
void DeleteFaceDeviceGroupRequest::setDeviceGroupId(const std::string &deviceGroupId) {
deviceGroupId_ = deviceGroupId;
setParameter(std::string("DeviceGroupId"), deviceGroupId);
}
std::string DeleteFaceDeviceGroupRequest::getApiProduct() const {
return apiProduct_;
}
void DeleteFaceDeviceGroupRequest::setApiProduct(const std::string &apiProduct) {
apiProduct_ = apiProduct;
setBodyParameter(std::string("ApiProduct"), apiProduct);
}
std::string DeleteFaceDeviceGroupRequest::getApiRevision() const {
return apiRevision_;
}
void DeleteFaceDeviceGroupRequest::setApiRevision(const std::string &apiRevision) {
apiRevision_ = apiRevision;
setBodyParameter(std::string("ApiRevision"), apiRevision);
}

View File

@@ -0,0 +1,65 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/DeleteFaceDeviceGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Linkvisual;
using namespace AlibabaCloud::Linkvisual::Model;
DeleteFaceDeviceGroupResult::DeleteFaceDeviceGroupResult() :
ServiceResult()
{}
DeleteFaceDeviceGroupResult::DeleteFaceDeviceGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteFaceDeviceGroupResult::~DeleteFaceDeviceGroupResult()
{}
void DeleteFaceDeviceGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string DeleteFaceDeviceGroupResult::getErrorMessage()const
{
return errorMessage_;
}
std::string DeleteFaceDeviceGroupResult::getCode()const
{
return code_;
}
bool DeleteFaceDeviceGroupResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,63 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/DeleteFaceUserGroupAndDeviceGroupRelationRequest.h>
using AlibabaCloud::Linkvisual::Model::DeleteFaceUserGroupAndDeviceGroupRelationRequest;
DeleteFaceUserGroupAndDeviceGroupRelationRequest::DeleteFaceUserGroupAndDeviceGroupRelationRequest()
: RpcServiceRequest("linkvisual", "2018-01-20", "DeleteFaceUserGroupAndDeviceGroupRelation") {
setMethod(HttpRequest::Method::Post);
}
DeleteFaceUserGroupAndDeviceGroupRelationRequest::~DeleteFaceUserGroupAndDeviceGroupRelationRequest() {}
std::string DeleteFaceUserGroupAndDeviceGroupRelationRequest::getIsolationId() const {
return isolationId_;
}
void DeleteFaceUserGroupAndDeviceGroupRelationRequest::setIsolationId(const std::string &isolationId) {
isolationId_ = isolationId;
setParameter(std::string("IsolationId"), isolationId);
}
std::string DeleteFaceUserGroupAndDeviceGroupRelationRequest::getControlId() const {
return controlId_;
}
void DeleteFaceUserGroupAndDeviceGroupRelationRequest::setControlId(const std::string &controlId) {
controlId_ = controlId;
setParameter(std::string("ControlId"), controlId);
}
std::string DeleteFaceUserGroupAndDeviceGroupRelationRequest::getApiProduct() const {
return apiProduct_;
}
void DeleteFaceUserGroupAndDeviceGroupRelationRequest::setApiProduct(const std::string &apiProduct) {
apiProduct_ = apiProduct;
setBodyParameter(std::string("ApiProduct"), apiProduct);
}
std::string DeleteFaceUserGroupAndDeviceGroupRelationRequest::getApiRevision() const {
return apiRevision_;
}
void DeleteFaceUserGroupAndDeviceGroupRelationRequest::setApiRevision(const std::string &apiRevision) {
apiRevision_ = apiRevision;
setBodyParameter(std::string("ApiRevision"), apiRevision);
}

View File

@@ -0,0 +1,65 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/DeleteFaceUserGroupAndDeviceGroupRelationResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Linkvisual;
using namespace AlibabaCloud::Linkvisual::Model;
DeleteFaceUserGroupAndDeviceGroupRelationResult::DeleteFaceUserGroupAndDeviceGroupRelationResult() :
ServiceResult()
{}
DeleteFaceUserGroupAndDeviceGroupRelationResult::DeleteFaceUserGroupAndDeviceGroupRelationResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteFaceUserGroupAndDeviceGroupRelationResult::~DeleteFaceUserGroupAndDeviceGroupRelationResult()
{}
void DeleteFaceUserGroupAndDeviceGroupRelationResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string DeleteFaceUserGroupAndDeviceGroupRelationResult::getErrorMessage()const
{
return errorMessage_;
}
std::string DeleteFaceUserGroupAndDeviceGroupRelationResult::getCode()const
{
return code_;
}
bool DeleteFaceUserGroupAndDeviceGroupRelationResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,63 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/DeleteFaceUserGroupRequest.h>
using AlibabaCloud::Linkvisual::Model::DeleteFaceUserGroupRequest;
DeleteFaceUserGroupRequest::DeleteFaceUserGroupRequest()
: RpcServiceRequest("linkvisual", "2018-01-20", "DeleteFaceUserGroup") {
setMethod(HttpRequest::Method::Post);
}
DeleteFaceUserGroupRequest::~DeleteFaceUserGroupRequest() {}
std::string DeleteFaceUserGroupRequest::getIsolationId() const {
return isolationId_;
}
void DeleteFaceUserGroupRequest::setIsolationId(const std::string &isolationId) {
isolationId_ = isolationId;
setParameter(std::string("IsolationId"), isolationId);
}
std::string DeleteFaceUserGroupRequest::getUserGroupId() const {
return userGroupId_;
}
void DeleteFaceUserGroupRequest::setUserGroupId(const std::string &userGroupId) {
userGroupId_ = userGroupId;
setParameter(std::string("UserGroupId"), userGroupId);
}
std::string DeleteFaceUserGroupRequest::getApiProduct() const {
return apiProduct_;
}
void DeleteFaceUserGroupRequest::setApiProduct(const std::string &apiProduct) {
apiProduct_ = apiProduct;
setBodyParameter(std::string("ApiProduct"), apiProduct);
}
std::string DeleteFaceUserGroupRequest::getApiRevision() const {
return apiRevision_;
}
void DeleteFaceUserGroupRequest::setApiRevision(const std::string &apiRevision) {
apiRevision_ = apiRevision;
setBodyParameter(std::string("ApiRevision"), apiRevision);
}

View File

@@ -0,0 +1,65 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/DeleteFaceUserGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Linkvisual;
using namespace AlibabaCloud::Linkvisual::Model;
DeleteFaceUserGroupResult::DeleteFaceUserGroupResult() :
ServiceResult()
{}
DeleteFaceUserGroupResult::DeleteFaceUserGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteFaceUserGroupResult::~DeleteFaceUserGroupResult()
{}
void DeleteFaceUserGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string DeleteFaceUserGroupResult::getErrorMessage()const
{
return errorMessage_;
}
std::string DeleteFaceUserGroupResult::getCode()const
{
return code_;
}
bool DeleteFaceUserGroupResult::getSuccess()const
{
return success_;
}

View File

@@ -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.
*/
#include <alibabacloud/linkvisual/model/DeleteFaceUserPictureRequest.h>
using AlibabaCloud::Linkvisual::Model::DeleteFaceUserPictureRequest;
DeleteFaceUserPictureRequest::DeleteFaceUserPictureRequest()
: RpcServiceRequest("linkvisual", "2018-01-20", "DeleteFaceUserPicture") {
setMethod(HttpRequest::Method::Post);
}
DeleteFaceUserPictureRequest::~DeleteFaceUserPictureRequest() {}
std::string DeleteFaceUserPictureRequest::getIsolationId() const {
return isolationId_;
}
void DeleteFaceUserPictureRequest::setIsolationId(const std::string &isolationId) {
isolationId_ = isolationId;
setParameter(std::string("IsolationId"), isolationId);
}
std::string DeleteFaceUserPictureRequest::getUserId() const {
return userId_;
}
void DeleteFaceUserPictureRequest::setUserId(const std::string &userId) {
userId_ = userId;
setParameter(std::string("UserId"), userId);
}
std::string DeleteFaceUserPictureRequest::getApiProduct() const {
return apiProduct_;
}
void DeleteFaceUserPictureRequest::setApiProduct(const std::string &apiProduct) {
apiProduct_ = apiProduct;
setBodyParameter(std::string("ApiProduct"), apiProduct);
}
std::string DeleteFaceUserPictureRequest::getApiRevision() const {
return apiRevision_;
}
void DeleteFaceUserPictureRequest::setApiRevision(const std::string &apiRevision) {
apiRevision_ = apiRevision;
setBodyParameter(std::string("ApiRevision"), apiRevision);
}
std::string DeleteFaceUserPictureRequest::getFacePicMd5() const {
return facePicMd5_;
}
void DeleteFaceUserPictureRequest::setFacePicMd5(const std::string &facePicMd5) {
facePicMd5_ = facePicMd5;
setParameter(std::string("FacePicMd5"), facePicMd5);
}

View File

@@ -0,0 +1,65 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/DeleteFaceUserPictureResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Linkvisual;
using namespace AlibabaCloud::Linkvisual::Model;
DeleteFaceUserPictureResult::DeleteFaceUserPictureResult() :
ServiceResult()
{}
DeleteFaceUserPictureResult::DeleteFaceUserPictureResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteFaceUserPictureResult::~DeleteFaceUserPictureResult()
{}
void DeleteFaceUserPictureResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string DeleteFaceUserPictureResult::getErrorMessage()const
{
return errorMessage_;
}
std::string DeleteFaceUserPictureResult::getCode()const
{
return code_;
}
bool DeleteFaceUserPictureResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,63 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/DeleteFaceUserRequest.h>
using AlibabaCloud::Linkvisual::Model::DeleteFaceUserRequest;
DeleteFaceUserRequest::DeleteFaceUserRequest()
: RpcServiceRequest("linkvisual", "2018-01-20", "DeleteFaceUser") {
setMethod(HttpRequest::Method::Post);
}
DeleteFaceUserRequest::~DeleteFaceUserRequest() {}
std::string DeleteFaceUserRequest::getIsolationId() const {
return isolationId_;
}
void DeleteFaceUserRequest::setIsolationId(const std::string &isolationId) {
isolationId_ = isolationId;
setParameter(std::string("IsolationId"), isolationId);
}
std::string DeleteFaceUserRequest::getUserId() const {
return userId_;
}
void DeleteFaceUserRequest::setUserId(const std::string &userId) {
userId_ = userId;
setParameter(std::string("UserId"), userId);
}
std::string DeleteFaceUserRequest::getApiProduct() const {
return apiProduct_;
}
void DeleteFaceUserRequest::setApiProduct(const std::string &apiProduct) {
apiProduct_ = apiProduct;
setBodyParameter(std::string("ApiProduct"), apiProduct);
}
std::string DeleteFaceUserRequest::getApiRevision() const {
return apiRevision_;
}
void DeleteFaceUserRequest::setApiRevision(const std::string &apiRevision) {
apiRevision_ = apiRevision;
setBodyParameter(std::string("ApiRevision"), apiRevision);
}

View File

@@ -0,0 +1,65 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/DeleteFaceUserResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Linkvisual;
using namespace AlibabaCloud::Linkvisual::Model;
DeleteFaceUserResult::DeleteFaceUserResult() :
ServiceResult()
{}
DeleteFaceUserResult::DeleteFaceUserResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteFaceUserResult::~DeleteFaceUserResult()
{}
void DeleteFaceUserResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string DeleteFaceUserResult::getErrorMessage()const
{
return errorMessage_;
}
std::string DeleteFaceUserResult::getCode()const
{
return code_;
}
bool DeleteFaceUserResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,63 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/DeleteLocalFileUploadJobRequest.h>
using AlibabaCloud::Linkvisual::Model::DeleteLocalFileUploadJobRequest;
DeleteLocalFileUploadJobRequest::DeleteLocalFileUploadJobRequest()
: RpcServiceRequest("linkvisual", "2018-01-20", "DeleteLocalFileUploadJob") {
setMethod(HttpRequest::Method::Post);
}
DeleteLocalFileUploadJobRequest::~DeleteLocalFileUploadJobRequest() {}
std::string DeleteLocalFileUploadJobRequest::getJobId() const {
return jobId_;
}
void DeleteLocalFileUploadJobRequest::setJobId(const std::string &jobId) {
jobId_ = jobId;
setParameter(std::string("JobId"), jobId);
}
std::string DeleteLocalFileUploadJobRequest::getIotInstanceId() const {
return iotInstanceId_;
}
void DeleteLocalFileUploadJobRequest::setIotInstanceId(const std::string &iotInstanceId) {
iotInstanceId_ = iotInstanceId;
setParameter(std::string("IotInstanceId"), iotInstanceId);
}
std::string DeleteLocalFileUploadJobRequest::getApiProduct() const {
return apiProduct_;
}
void DeleteLocalFileUploadJobRequest::setApiProduct(const std::string &apiProduct) {
apiProduct_ = apiProduct;
setBodyParameter(std::string("ApiProduct"), apiProduct);
}
std::string DeleteLocalFileUploadJobRequest::getApiRevision() const {
return apiRevision_;
}
void DeleteLocalFileUploadJobRequest::setApiRevision(const std::string &apiRevision) {
apiRevision_ = apiRevision;
setBodyParameter(std::string("ApiRevision"), apiRevision);
}

View File

@@ -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.
*/
#include <alibabacloud/linkvisual/model/DeleteLocalFileUploadJobResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Linkvisual;
using namespace AlibabaCloud::Linkvisual::Model;
DeleteLocalFileUploadJobResult::DeleteLocalFileUploadJobResult() :
ServiceResult()
{}
DeleteLocalFileUploadJobResult::DeleteLocalFileUploadJobResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteLocalFileUploadJobResult::~DeleteLocalFileUploadJobResult()
{}
void DeleteLocalFileUploadJobResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Data"].isNull())
data_ = value["Data"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string DeleteLocalFileUploadJobResult::getData()const
{
return data_;
}
std::string DeleteLocalFileUploadJobResult::getErrorMessage()const
{
return errorMessage_;
}
std::string DeleteLocalFileUploadJobResult::getCode()const
{
return code_;
}
bool DeleteLocalFileUploadJobResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,89 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/DeletePictureRequest.h>
using AlibabaCloud::Linkvisual::Model::DeletePictureRequest;
DeletePictureRequest::DeletePictureRequest()
: RpcServiceRequest("linkvisual", "2018-01-20", "DeletePicture") {
setMethod(HttpRequest::Method::Post);
}
DeletePictureRequest::~DeletePictureRequest() {}
std::string DeletePictureRequest::getIotId() const {
return iotId_;
}
void DeletePictureRequest::setIotId(const std::string &iotId) {
iotId_ = iotId;
setParameter(std::string("IotId"), iotId);
}
std::string DeletePictureRequest::getIotInstanceId() const {
return iotInstanceId_;
}
void DeletePictureRequest::setIotInstanceId(const std::string &iotInstanceId) {
iotInstanceId_ = iotInstanceId;
setParameter(std::string("IotInstanceId"), iotInstanceId);
}
std::vector<std::string> DeletePictureRequest::getPictureIdList() const {
return pictureIdList_;
}
void DeletePictureRequest::setPictureIdList(const std::vector<std::string> &pictureIdList) {
pictureIdList_ = pictureIdList;
}
std::string DeletePictureRequest::getProductKey() const {
return productKey_;
}
void DeletePictureRequest::setProductKey(const std::string &productKey) {
productKey_ = productKey;
setParameter(std::string("ProductKey"), productKey);
}
std::string DeletePictureRequest::getApiProduct() const {
return apiProduct_;
}
void DeletePictureRequest::setApiProduct(const std::string &apiProduct) {
apiProduct_ = apiProduct;
setBodyParameter(std::string("ApiProduct"), apiProduct);
}
std::string DeletePictureRequest::getApiRevision() const {
return apiRevision_;
}
void DeletePictureRequest::setApiRevision(const std::string &apiRevision) {
apiRevision_ = apiRevision;
setBodyParameter(std::string("ApiRevision"), apiRevision);
}
std::string DeletePictureRequest::getDeviceName() const {
return deviceName_;
}
void DeletePictureRequest::setDeviceName(const std::string &deviceName) {
deviceName_ = deviceName;
setParameter(std::string("DeviceName"), deviceName);
}

View File

@@ -0,0 +1,73 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/DeletePictureResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Linkvisual;
using namespace AlibabaCloud::Linkvisual::Model;
DeletePictureResult::DeletePictureResult() :
ServiceResult()
{}
DeletePictureResult::DeletePictureResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeletePictureResult::~DeletePictureResult()
{}
void DeletePictureResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["DeletedCount"].isNull())
data_.deletedCount = std::stoi(dataNode["DeletedCount"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
DeletePictureResult::Data DeletePictureResult::getData()const
{
return data_;
}
std::string DeletePictureResult::getErrorMessage()const
{
return errorMessage_;
}
std::string DeletePictureResult::getCode()const
{
return code_;
}
bool DeletePictureResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,90 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/DeleteRecordPlanDeviceRequest.h>
using AlibabaCloud::Linkvisual::Model::DeleteRecordPlanDeviceRequest;
DeleteRecordPlanDeviceRequest::DeleteRecordPlanDeviceRequest()
: RpcServiceRequest("linkvisual", "2018-01-20", "DeleteRecordPlanDevice") {
setMethod(HttpRequest::Method::Post);
}
DeleteRecordPlanDeviceRequest::~DeleteRecordPlanDeviceRequest() {}
std::string DeleteRecordPlanDeviceRequest::getIotId() const {
return iotId_;
}
void DeleteRecordPlanDeviceRequest::setIotId(const std::string &iotId) {
iotId_ = iotId;
setParameter(std::string("IotId"), iotId);
}
std::string DeleteRecordPlanDeviceRequest::getIotInstanceId() const {
return iotInstanceId_;
}
void DeleteRecordPlanDeviceRequest::setIotInstanceId(const std::string &iotInstanceId) {
iotInstanceId_ = iotInstanceId;
setParameter(std::string("IotInstanceId"), iotInstanceId);
}
int DeleteRecordPlanDeviceRequest::getStreamType() const {
return streamType_;
}
void DeleteRecordPlanDeviceRequest::setStreamType(int streamType) {
streamType_ = streamType;
setParameter(std::string("StreamType"), std::to_string(streamType));
}
std::string DeleteRecordPlanDeviceRequest::getProductKey() const {
return productKey_;
}
void DeleteRecordPlanDeviceRequest::setProductKey(const std::string &productKey) {
productKey_ = productKey;
setParameter(std::string("ProductKey"), productKey);
}
std::string DeleteRecordPlanDeviceRequest::getApiProduct() const {
return apiProduct_;
}
void DeleteRecordPlanDeviceRequest::setApiProduct(const std::string &apiProduct) {
apiProduct_ = apiProduct;
setBodyParameter(std::string("ApiProduct"), apiProduct);
}
std::string DeleteRecordPlanDeviceRequest::getApiRevision() const {
return apiRevision_;
}
void DeleteRecordPlanDeviceRequest::setApiRevision(const std::string &apiRevision) {
apiRevision_ = apiRevision;
setBodyParameter(std::string("ApiRevision"), apiRevision);
}
std::string DeleteRecordPlanDeviceRequest::getDeviceName() const {
return deviceName_;
}
void DeleteRecordPlanDeviceRequest::setDeviceName(const std::string &deviceName) {
deviceName_ = deviceName;
setParameter(std::string("DeviceName"), deviceName);
}

View File

@@ -0,0 +1,65 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/DeleteRecordPlanDeviceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Linkvisual;
using namespace AlibabaCloud::Linkvisual::Model;
DeleteRecordPlanDeviceResult::DeleteRecordPlanDeviceResult() :
ServiceResult()
{}
DeleteRecordPlanDeviceResult::DeleteRecordPlanDeviceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteRecordPlanDeviceResult::~DeleteRecordPlanDeviceResult()
{}
void DeleteRecordPlanDeviceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string DeleteRecordPlanDeviceResult::getErrorMessage()const
{
return errorMessage_;
}
std::string DeleteRecordPlanDeviceResult::getCode()const
{
return code_;
}
bool DeleteRecordPlanDeviceResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,54 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/DeleteRecordPlanRequest.h>
using AlibabaCloud::Linkvisual::Model::DeleteRecordPlanRequest;
DeleteRecordPlanRequest::DeleteRecordPlanRequest()
: RpcServiceRequest("linkvisual", "2018-01-20", "DeleteRecordPlan") {
setMethod(HttpRequest::Method::Post);
}
DeleteRecordPlanRequest::~DeleteRecordPlanRequest() {}
std::string DeleteRecordPlanRequest::getApiProduct() const {
return apiProduct_;
}
void DeleteRecordPlanRequest::setApiProduct(const std::string &apiProduct) {
apiProduct_ = apiProduct;
setBodyParameter(std::string("ApiProduct"), apiProduct);
}
std::string DeleteRecordPlanRequest::getApiRevision() const {
return apiRevision_;
}
void DeleteRecordPlanRequest::setApiRevision(const std::string &apiRevision) {
apiRevision_ = apiRevision;
setBodyParameter(std::string("ApiRevision"), apiRevision);
}
std::string DeleteRecordPlanRequest::getPlanId() const {
return planId_;
}
void DeleteRecordPlanRequest::setPlanId(const std::string &planId) {
planId_ = planId;
setParameter(std::string("PlanId"), planId);
}

View File

@@ -0,0 +1,65 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/DeleteRecordPlanResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Linkvisual;
using namespace AlibabaCloud::Linkvisual::Model;
DeleteRecordPlanResult::DeleteRecordPlanResult() :
ServiceResult()
{}
DeleteRecordPlanResult::DeleteRecordPlanResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteRecordPlanResult::~DeleteRecordPlanResult()
{}
void DeleteRecordPlanResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string DeleteRecordPlanResult::getErrorMessage()const
{
return errorMessage_;
}
std::string DeleteRecordPlanResult::getCode()const
{
return code_;
}
bool DeleteRecordPlanResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,89 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/DeleteRecordRequest.h>
using AlibabaCloud::Linkvisual::Model::DeleteRecordRequest;
DeleteRecordRequest::DeleteRecordRequest()
: RpcServiceRequest("linkvisual", "2018-01-20", "DeleteRecord") {
setMethod(HttpRequest::Method::Post);
}
DeleteRecordRequest::~DeleteRecordRequest() {}
std::string DeleteRecordRequest::getIotId() const {
return iotId_;
}
void DeleteRecordRequest::setIotId(const std::string &iotId) {
iotId_ = iotId;
setParameter(std::string("IotId"), iotId);
}
std::string DeleteRecordRequest::getIotInstanceId() const {
return iotInstanceId_;
}
void DeleteRecordRequest::setIotInstanceId(const std::string &iotInstanceId) {
iotInstanceId_ = iotInstanceId;
setParameter(std::string("IotInstanceId"), iotInstanceId);
}
std::string DeleteRecordRequest::getProductKey() const {
return productKey_;
}
void DeleteRecordRequest::setProductKey(const std::string &productKey) {
productKey_ = productKey;
setParameter(std::string("ProductKey"), productKey);
}
std::vector<std::string> DeleteRecordRequest::getFileNameList() const {
return fileNameList_;
}
void DeleteRecordRequest::setFileNameList(const std::vector<std::string> &fileNameList) {
fileNameList_ = fileNameList;
}
std::string DeleteRecordRequest::getApiProduct() const {
return apiProduct_;
}
void DeleteRecordRequest::setApiProduct(const std::string &apiProduct) {
apiProduct_ = apiProduct;
setBodyParameter(std::string("ApiProduct"), apiProduct);
}
std::string DeleteRecordRequest::getApiRevision() const {
return apiRevision_;
}
void DeleteRecordRequest::setApiRevision(const std::string &apiRevision) {
apiRevision_ = apiRevision;
setBodyParameter(std::string("ApiRevision"), apiRevision);
}
std::string DeleteRecordRequest::getDeviceName() const {
return deviceName_;
}
void DeleteRecordRequest::setDeviceName(const std::string &deviceName) {
deviceName_ = deviceName;
setParameter(std::string("DeviceName"), deviceName);
}

View File

@@ -0,0 +1,73 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/DeleteRecordResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Linkvisual;
using namespace AlibabaCloud::Linkvisual::Model;
DeleteRecordResult::DeleteRecordResult() :
ServiceResult()
{}
DeleteRecordResult::DeleteRecordResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteRecordResult::~DeleteRecordResult()
{}
void DeleteRecordResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["DeletedCount"].isNull())
data_.deletedCount = std::stoi(dataNode["DeletedCount"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
DeleteRecordResult::Data DeleteRecordResult::getData()const
{
return data_;
}
std::string DeleteRecordResult::getErrorMessage()const
{
return errorMessage_;
}
std::string DeleteRecordResult::getCode()const
{
return code_;
}
bool DeleteRecordResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,81 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/DeleteRtmpDeviceRequest.h>
using AlibabaCloud::Linkvisual::Model::DeleteRtmpDeviceRequest;
DeleteRtmpDeviceRequest::DeleteRtmpDeviceRequest()
: RpcServiceRequest("linkvisual", "2018-01-20", "DeleteRtmpDevice") {
setMethod(HttpRequest::Method::Post);
}
DeleteRtmpDeviceRequest::~DeleteRtmpDeviceRequest() {}
std::string DeleteRtmpDeviceRequest::getIotId() const {
return iotId_;
}
void DeleteRtmpDeviceRequest::setIotId(const std::string &iotId) {
iotId_ = iotId;
setParameter(std::string("IotId"), iotId);
}
std::string DeleteRtmpDeviceRequest::getIotInstanceId() const {
return iotInstanceId_;
}
void DeleteRtmpDeviceRequest::setIotInstanceId(const std::string &iotInstanceId) {
iotInstanceId_ = iotInstanceId;
setParameter(std::string("IotInstanceId"), iotInstanceId);
}
std::string DeleteRtmpDeviceRequest::getProductKey() const {
return productKey_;
}
void DeleteRtmpDeviceRequest::setProductKey(const std::string &productKey) {
productKey_ = productKey;
setParameter(std::string("ProductKey"), productKey);
}
std::string DeleteRtmpDeviceRequest::getApiProduct() const {
return apiProduct_;
}
void DeleteRtmpDeviceRequest::setApiProduct(const std::string &apiProduct) {
apiProduct_ = apiProduct;
setBodyParameter(std::string("ApiProduct"), apiProduct);
}
std::string DeleteRtmpDeviceRequest::getApiRevision() const {
return apiRevision_;
}
void DeleteRtmpDeviceRequest::setApiRevision(const std::string &apiRevision) {
apiRevision_ = apiRevision;
setBodyParameter(std::string("ApiRevision"), apiRevision);
}
std::string DeleteRtmpDeviceRequest::getDeviceName() const {
return deviceName_;
}
void DeleteRtmpDeviceRequest::setDeviceName(const std::string &deviceName) {
deviceName_ = deviceName;
setParameter(std::string("DeviceName"), deviceName);
}

View File

@@ -0,0 +1,65 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/DeleteRtmpDeviceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Linkvisual;
using namespace AlibabaCloud::Linkvisual::Model;
DeleteRtmpDeviceResult::DeleteRtmpDeviceResult() :
ServiceResult()
{}
DeleteRtmpDeviceResult::DeleteRtmpDeviceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteRtmpDeviceResult::~DeleteRtmpDeviceResult()
{}
void DeleteRtmpDeviceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string DeleteRtmpDeviceResult::getErrorMessage()const
{
return errorMessage_;
}
std::string DeleteRtmpDeviceResult::getCode()const
{
return code_;
}
bool DeleteRtmpDeviceResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,90 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/DeleteRtmpKeyRequest.h>
using AlibabaCloud::Linkvisual::Model::DeleteRtmpKeyRequest;
DeleteRtmpKeyRequest::DeleteRtmpKeyRequest()
: RpcServiceRequest("linkvisual", "2018-01-20", "DeleteRtmpKey") {
setMethod(HttpRequest::Method::Post);
}
DeleteRtmpKeyRequest::~DeleteRtmpKeyRequest() {}
int DeleteRtmpKeyRequest::getType() const {
return type_;
}
void DeleteRtmpKeyRequest::setType(int type) {
type_ = type;
setParameter(std::string("Type"), std::to_string(type));
}
std::string DeleteRtmpKeyRequest::getIotId() const {
return iotId_;
}
void DeleteRtmpKeyRequest::setIotId(const std::string &iotId) {
iotId_ = iotId;
setParameter(std::string("IotId"), iotId);
}
std::string DeleteRtmpKeyRequest::getIotInstanceId() const {
return iotInstanceId_;
}
void DeleteRtmpKeyRequest::setIotInstanceId(const std::string &iotInstanceId) {
iotInstanceId_ = iotInstanceId;
setParameter(std::string("IotInstanceId"), iotInstanceId);
}
std::string DeleteRtmpKeyRequest::getProductKey() const {
return productKey_;
}
void DeleteRtmpKeyRequest::setProductKey(const std::string &productKey) {
productKey_ = productKey;
setParameter(std::string("ProductKey"), productKey);
}
std::string DeleteRtmpKeyRequest::getApiProduct() const {
return apiProduct_;
}
void DeleteRtmpKeyRequest::setApiProduct(const std::string &apiProduct) {
apiProduct_ = apiProduct;
setBodyParameter(std::string("ApiProduct"), apiProduct);
}
std::string DeleteRtmpKeyRequest::getApiRevision() const {
return apiRevision_;
}
void DeleteRtmpKeyRequest::setApiRevision(const std::string &apiRevision) {
apiRevision_ = apiRevision;
setBodyParameter(std::string("ApiRevision"), apiRevision);
}
std::string DeleteRtmpKeyRequest::getDeviceName() const {
return deviceName_;
}
void DeleteRtmpKeyRequest::setDeviceName(const std::string &deviceName) {
deviceName_ = deviceName;
setParameter(std::string("DeviceName"), deviceName);
}

View File

@@ -0,0 +1,65 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/DeleteRtmpKeyResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Linkvisual;
using namespace AlibabaCloud::Linkvisual::Model;
DeleteRtmpKeyResult::DeleteRtmpKeyResult() :
ServiceResult()
{}
DeleteRtmpKeyResult::DeleteRtmpKeyResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteRtmpKeyResult::~DeleteRtmpKeyResult()
{}
void DeleteRtmpKeyResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string DeleteRtmpKeyResult::getErrorMessage()const
{
return errorMessage_;
}
std::string DeleteRtmpKeyResult::getCode()const
{
return code_;
}
bool DeleteRtmpKeyResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,54 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/DeleteTimeTemplateRequest.h>
using AlibabaCloud::Linkvisual::Model::DeleteTimeTemplateRequest;
DeleteTimeTemplateRequest::DeleteTimeTemplateRequest()
: RpcServiceRequest("linkvisual", "2018-01-20", "DeleteTimeTemplate") {
setMethod(HttpRequest::Method::Post);
}
DeleteTimeTemplateRequest::~DeleteTimeTemplateRequest() {}
std::string DeleteTimeTemplateRequest::getTemplateId() const {
return templateId_;
}
void DeleteTimeTemplateRequest::setTemplateId(const std::string &templateId) {
templateId_ = templateId;
setParameter(std::string("TemplateId"), templateId);
}
std::string DeleteTimeTemplateRequest::getApiProduct() const {
return apiProduct_;
}
void DeleteTimeTemplateRequest::setApiProduct(const std::string &apiProduct) {
apiProduct_ = apiProduct;
setBodyParameter(std::string("ApiProduct"), apiProduct);
}
std::string DeleteTimeTemplateRequest::getApiRevision() const {
return apiRevision_;
}
void DeleteTimeTemplateRequest::setApiRevision(const std::string &apiRevision) {
apiRevision_ = apiRevision;
setBodyParameter(std::string("ApiRevision"), apiRevision);
}

View File

@@ -0,0 +1,65 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/DeleteTimeTemplateResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Linkvisual;
using namespace AlibabaCloud::Linkvisual::Model;
DeleteTimeTemplateResult::DeleteTimeTemplateResult() :
ServiceResult()
{}
DeleteTimeTemplateResult::DeleteTimeTemplateResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteTimeTemplateResult::~DeleteTimeTemplateResult()
{}
void DeleteTimeTemplateResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string DeleteTimeTemplateResult::getErrorMessage()const
{
return errorMessage_;
}
std::string DeleteTimeTemplateResult::getCode()const
{
return code_;
}
bool DeleteTimeTemplateResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,54 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/DetectUserFaceByUrlRequest.h>
using AlibabaCloud::Linkvisual::Model::DetectUserFaceByUrlRequest;
DetectUserFaceByUrlRequest::DetectUserFaceByUrlRequest()
: RpcServiceRequest("linkvisual", "2018-01-20", "DetectUserFaceByUrl") {
setMethod(HttpRequest::Method::Post);
}
DetectUserFaceByUrlRequest::~DetectUserFaceByUrlRequest() {}
std::string DetectUserFaceByUrlRequest::getFacePicUrl() const {
return facePicUrl_;
}
void DetectUserFaceByUrlRequest::setFacePicUrl(const std::string &facePicUrl) {
facePicUrl_ = facePicUrl;
setParameter(std::string("FacePicUrl"), facePicUrl);
}
std::string DetectUserFaceByUrlRequest::getApiProduct() const {
return apiProduct_;
}
void DetectUserFaceByUrlRequest::setApiProduct(const std::string &apiProduct) {
apiProduct_ = apiProduct;
setBodyParameter(std::string("ApiProduct"), apiProduct);
}
std::string DetectUserFaceByUrlRequest::getApiRevision() const {
return apiRevision_;
}
void DetectUserFaceByUrlRequest::setApiRevision(const std::string &apiRevision) {
apiRevision_ = apiRevision;
setBodyParameter(std::string("ApiRevision"), apiRevision);
}

View File

@@ -0,0 +1,98 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/DetectUserFaceByUrlResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Linkvisual;
using namespace AlibabaCloud::Linkvisual::Model;
DetectUserFaceByUrlResult::DetectUserFaceByUrlResult() :
ServiceResult()
{}
DetectUserFaceByUrlResult::DetectUserFaceByUrlResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DetectUserFaceByUrlResult::~DetectUserFaceByUrlResult()
{}
void DetectUserFaceByUrlResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDataNode = value["Data"]["dataItem"];
for (auto valueDatadataItem : allDataNode)
{
DataItem dataObject;
if(!valueDatadataItem["BlurScore"].isNull())
dataObject.blurScore = std::stof(valueDatadataItem["BlurScore"].asString());
if(!valueDatadataItem["Gender"].isNull())
dataObject.gender = std::stoi(valueDatadataItem["Gender"].asString());
if(!valueDatadataItem["OcclusionScore"].isNull())
dataObject.occlusionScore = std::stof(valueDatadataItem["OcclusionScore"].asString());
if(!valueDatadataItem["GoodForLibrary"].isNull())
dataObject.goodForLibrary = valueDatadataItem["GoodForLibrary"].asString() == "true";
if(!valueDatadataItem["GoodForRecognition"].isNull())
dataObject.goodForRecognition = valueDatadataItem["GoodForRecognition"].asString() == "true";
if(!valueDatadataItem["Age"].isNull())
dataObject.age = std::stoi(valueDatadataItem["Age"].asString());
if(!valueDatadataItem["FaceProbability"].isNull())
dataObject.faceProbability = std::stof(valueDatadataItem["FaceProbability"].asString());
if(!valueDatadataItem["PoseScore"].isNull())
dataObject.poseScore = std::stof(valueDatadataItem["PoseScore"].asString());
auto allFaceRects = value["FaceRects"]["FaceRectsData"];
for (auto value : allFaceRects)
dataObject.faceRects.push_back(value.asString());
auto allLandmarks = value["Landmarks"]["LandmarksData"];
for (auto value : allLandmarks)
dataObject.landmarks.push_back(value.asString());
data_.push_back(dataObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::vector<DetectUserFaceByUrlResult::DataItem> DetectUserFaceByUrlResult::getData()const
{
return data_;
}
std::string DetectUserFaceByUrlResult::getErrorMessage()const
{
return errorMessage_;
}
std::string DetectUserFaceByUrlResult::getCode()const
{
return code_;
}
bool DetectUserFaceByUrlResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,63 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/GetPictureSearchJobStatusRequest.h>
using AlibabaCloud::Linkvisual::Model::GetPictureSearchJobStatusRequest;
GetPictureSearchJobStatusRequest::GetPictureSearchJobStatusRequest()
: RpcServiceRequest("linkvisual", "2018-01-20", "GetPictureSearchJobStatus") {
setMethod(HttpRequest::Method::Post);
}
GetPictureSearchJobStatusRequest::~GetPictureSearchJobStatusRequest() {}
std::string GetPictureSearchJobStatusRequest::getJobId() const {
return jobId_;
}
void GetPictureSearchJobStatusRequest::setJobId(const std::string &jobId) {
jobId_ = jobId;
setParameter(std::string("JobId"), jobId);
}
std::string GetPictureSearchJobStatusRequest::getApiProduct() const {
return apiProduct_;
}
void GetPictureSearchJobStatusRequest::setApiProduct(const std::string &apiProduct) {
apiProduct_ = apiProduct;
setBodyParameter(std::string("ApiProduct"), apiProduct);
}
std::string GetPictureSearchJobStatusRequest::getApiRevision() const {
return apiRevision_;
}
void GetPictureSearchJobStatusRequest::setApiRevision(const std::string &apiRevision) {
apiRevision_ = apiRevision;
setBodyParameter(std::string("ApiRevision"), apiRevision);
}
std::string GetPictureSearchJobStatusRequest::getAppInstanceId() const {
return appInstanceId_;
}
void GetPictureSearchJobStatusRequest::setAppInstanceId(const std::string &appInstanceId) {
appInstanceId_ = appInstanceId;
setParameter(std::string("AppInstanceId"), appInstanceId);
}

View File

@@ -0,0 +1,85 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/GetPictureSearchJobStatusResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Linkvisual;
using namespace AlibabaCloud::Linkvisual::Model;
GetPictureSearchJobStatusResult::GetPictureSearchJobStatusResult() :
ServiceResult()
{}
GetPictureSearchJobStatusResult::GetPictureSearchJobStatusResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetPictureSearchJobStatusResult::~GetPictureSearchJobStatusResult()
{}
void GetPictureSearchJobStatusResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["EndTime"].isNull())
data_.endTime = std::stol(dataNode["EndTime"].asString());
if(!dataNode["StartTime"].isNull())
data_.startTime = std::stol(dataNode["StartTime"].asString());
if(!dataNode["JobStatus"].isNull())
data_.jobStatus = std::stoi(dataNode["JobStatus"].asString());
if(!dataNode["SearchPicUrl"].isNull())
data_.searchPicUrl = dataNode["SearchPicUrl"].asString();
if(!dataNode["CreateTime"].isNull())
data_.createTime = std::stol(dataNode["CreateTime"].asString());
if(!dataNode["JobId"].isNull())
data_.jobId = dataNode["JobId"].asString();
if(!dataNode["Threshold"].isNull())
data_.threshold = std::stof(dataNode["Threshold"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
GetPictureSearchJobStatusResult::Data GetPictureSearchJobStatusResult::getData()const
{
return data_;
}
std::string GetPictureSearchJobStatusResult::getErrorMessage()const
{
return errorMessage_;
}
std::string GetPictureSearchJobStatusResult::getCode()const
{
return code_;
}
bool GetPictureSearchJobStatusResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,126 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/PictureSearchPictureRequest.h>
using AlibabaCloud::Linkvisual::Model::PictureSearchPictureRequest;
PictureSearchPictureRequest::PictureSearchPictureRequest()
: RpcServiceRequest("linkvisual", "2018-01-20", "PictureSearchPicture") {
setMethod(HttpRequest::Method::Post);
}
PictureSearchPictureRequest::~PictureSearchPictureRequest() {}
float PictureSearchPictureRequest::getThreshold() const {
return threshold_;
}
void PictureSearchPictureRequest::setThreshold(float threshold) {
threshold_ = threshold;
setParameter(std::string("Threshold"), std::to_string(threshold));
}
std::string PictureSearchPictureRequest::getSearchPicUrl() const {
return searchPicUrl_;
}
void PictureSearchPictureRequest::setSearchPicUrl(const std::string &searchPicUrl) {
searchPicUrl_ = searchPicUrl;
setParameter(std::string("SearchPicUrl"), searchPicUrl);
}
long PictureSearchPictureRequest::getStartTime() const {
return startTime_;
}
void PictureSearchPictureRequest::setStartTime(long startTime) {
startTime_ = startTime;
setParameter(std::string("StartTime"), std::to_string(startTime));
}
int PictureSearchPictureRequest::getPictureSearchType() const {
return pictureSearchType_;
}
void PictureSearchPictureRequest::setPictureSearchType(int pictureSearchType) {
pictureSearchType_ = pictureSearchType;
setParameter(std::string("PictureSearchType"), std::to_string(pictureSearchType));
}
int PictureSearchPictureRequest::getPageSize() const {
return pageSize_;
}
void PictureSearchPictureRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), std::to_string(pageSize));
}
long PictureSearchPictureRequest::getEndTime() const {
return endTime_;
}
void PictureSearchPictureRequest::setEndTime(long endTime) {
endTime_ = endTime;
setParameter(std::string("EndTime"), std::to_string(endTime));
}
int PictureSearchPictureRequest::getCurrentPage() const {
return currentPage_;
}
void PictureSearchPictureRequest::setCurrentPage(int currentPage) {
currentPage_ = currentPage;
setParameter(std::string("CurrentPage"), std::to_string(currentPage));
}
bool PictureSearchPictureRequest::getContainPicUrl() const {
return containPicUrl_;
}
void PictureSearchPictureRequest::setContainPicUrl(bool containPicUrl) {
containPicUrl_ = containPicUrl;
setParameter(std::string("ContainPicUrl"), containPicUrl ? "true" : "false");
}
std::string PictureSearchPictureRequest::getApiProduct() const {
return apiProduct_;
}
void PictureSearchPictureRequest::setApiProduct(const std::string &apiProduct) {
apiProduct_ = apiProduct;
setBodyParameter(std::string("ApiProduct"), apiProduct);
}
std::string PictureSearchPictureRequest::getApiRevision() const {
return apiRevision_;
}
void PictureSearchPictureRequest::setApiRevision(const std::string &apiRevision) {
apiRevision_ = apiRevision;
setBodyParameter(std::string("ApiRevision"), apiRevision);
}
std::string PictureSearchPictureRequest::getAppInstanceId() const {
return appInstanceId_;
}
void PictureSearchPictureRequest::setAppInstanceId(const std::string &appInstanceId) {
appInstanceId_ = appInstanceId;
setParameter(std::string("AppInstanceId"), appInstanceId);
}

View File

@@ -0,0 +1,99 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/PictureSearchPictureResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Linkvisual;
using namespace AlibabaCloud::Linkvisual::Model;
PictureSearchPictureResult::PictureSearchPictureResult() :
ServiceResult()
{}
PictureSearchPictureResult::PictureSearchPictureResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
PictureSearchPictureResult::~PictureSearchPictureResult()
{}
void PictureSearchPictureResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["CurrentPage"].isNull())
data_.currentPage = std::stoi(dataNode["CurrentPage"].asString());
if(!dataNode["PageSize"].isNull())
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
if(!dataNode["Total"].isNull())
data_.total = std::stoi(dataNode["Total"].asString());
if(!dataNode["PageCount"].isNull())
data_.pageCount = std::stoi(dataNode["PageCount"].asString());
auto allPageDataNode = dataNode["PageData"]["searchData"];
for (auto dataNodePageDatasearchData : allPageDataNode)
{
Data::SearchData searchDataObject;
if(!dataNodePageDatasearchData["PicUrl"].isNull())
searchDataObject.picUrl = dataNodePageDatasearchData["PicUrl"].asString();
if(!dataNodePageDatasearchData["EventTime"].isNull())
searchDataObject.eventTime = std::stol(dataNodePageDatasearchData["EventTime"].asString());
if(!dataNodePageDatasearchData["GatewayIotId"].isNull())
searchDataObject.gatewayIotId = dataNodePageDatasearchData["GatewayIotId"].asString();
if(!dataNodePageDatasearchData["VectorId"].isNull())
searchDataObject.vectorId = dataNodePageDatasearchData["VectorId"].asString();
if(!dataNodePageDatasearchData["Threshold"].isNull())
searchDataObject.threshold = std::stof(dataNodePageDatasearchData["Threshold"].asString());
if(!dataNodePageDatasearchData["VectorType"].isNull())
searchDataObject.vectorType = std::stoi(dataNodePageDatasearchData["VectorType"].asString());
if(!dataNodePageDatasearchData["IotId"].isNull())
searchDataObject.iotId = dataNodePageDatasearchData["IotId"].asString();
data_.pageData.push_back(searchDataObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
PictureSearchPictureResult::Data PictureSearchPictureResult::getData()const
{
return data_;
}
std::string PictureSearchPictureResult::getErrorMessage()const
{
return errorMessage_;
}
std::string PictureSearchPictureResult::getCode()const
{
return code_;
}
bool PictureSearchPictureResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,153 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/QueryCarProcessEventsRequest.h>
using AlibabaCloud::Linkvisual::Model::QueryCarProcessEventsRequest;
QueryCarProcessEventsRequest::QueryCarProcessEventsRequest()
: RpcServiceRequest("linkvisual", "2018-01-20", "QueryCarProcessEvents") {
setMethod(HttpRequest::Method::Post);
}
QueryCarProcessEventsRequest::~QueryCarProcessEventsRequest() {}
int QueryCarProcessEventsRequest::getActionType() const {
return actionType_;
}
void QueryCarProcessEventsRequest::setActionType(int actionType) {
actionType_ = actionType;
setParameter(std::string("ActionType"), std::to_string(actionType));
}
std::string QueryCarProcessEventsRequest::getSubProductKey() const {
return subProductKey_;
}
void QueryCarProcessEventsRequest::setSubProductKey(const std::string &subProductKey) {
subProductKey_ = subProductKey;
setParameter(std::string("SubProductKey"), subProductKey);
}
std::string QueryCarProcessEventsRequest::getPlateNo() const {
return plateNo_;
}
void QueryCarProcessEventsRequest::setPlateNo(const std::string &plateNo) {
plateNo_ = plateNo;
setParameter(std::string("PlateNo"), plateNo);
}
std::string QueryCarProcessEventsRequest::getIotId() const {
return iotId_;
}
void QueryCarProcessEventsRequest::setIotId(const std::string &iotId) {
iotId_ = iotId;
setParameter(std::string("IotId"), iotId);
}
std::string QueryCarProcessEventsRequest::getSubDeviceName() const {
return subDeviceName_;
}
void QueryCarProcessEventsRequest::setSubDeviceName(const std::string &subDeviceName) {
subDeviceName_ = subDeviceName;
setParameter(std::string("SubDeviceName"), subDeviceName);
}
std::string QueryCarProcessEventsRequest::getIotInstanceId() const {
return iotInstanceId_;
}
void QueryCarProcessEventsRequest::setIotInstanceId(const std::string &iotInstanceId) {
iotInstanceId_ = iotInstanceId;
setParameter(std::string("IotInstanceId"), iotInstanceId);
}
int QueryCarProcessEventsRequest::getPageSize() const {
return pageSize_;
}
void QueryCarProcessEventsRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), std::to_string(pageSize));
}
long QueryCarProcessEventsRequest::getEndTime() const {
return endTime_;
}
void QueryCarProcessEventsRequest::setEndTime(long endTime) {
endTime_ = endTime;
setParameter(std::string("EndTime"), std::to_string(endTime));
}
long QueryCarProcessEventsRequest::getBeginTime() const {
return beginTime_;
}
void QueryCarProcessEventsRequest::setBeginTime(long beginTime) {
beginTime_ = beginTime;
setParameter(std::string("BeginTime"), std::to_string(beginTime));
}
int QueryCarProcessEventsRequest::getCurrentPage() const {
return currentPage_;
}
void QueryCarProcessEventsRequest::setCurrentPage(int currentPage) {
currentPage_ = currentPage;
setParameter(std::string("CurrentPage"), std::to_string(currentPage));
}
int QueryCarProcessEventsRequest::getAreaIndex() const {
return areaIndex_;
}
void QueryCarProcessEventsRequest::setAreaIndex(int areaIndex) {
areaIndex_ = areaIndex;
setParameter(std::string("AreaIndex"), std::to_string(areaIndex));
}
std::string QueryCarProcessEventsRequest::getApiProduct() const {
return apiProduct_;
}
void QueryCarProcessEventsRequest::setApiProduct(const std::string &apiProduct) {
apiProduct_ = apiProduct;
setBodyParameter(std::string("ApiProduct"), apiProduct);
}
std::string QueryCarProcessEventsRequest::getApiRevision() const {
return apiRevision_;
}
void QueryCarProcessEventsRequest::setApiRevision(const std::string &apiRevision) {
apiRevision_ = apiRevision;
setBodyParameter(std::string("ApiRevision"), apiRevision);
}
std::string QueryCarProcessEventsRequest::getSubIotId() const {
return subIotId_;
}
void QueryCarProcessEventsRequest::setSubIotId(const std::string &subIotId) {
subIotId_ = subIotId;
setParameter(std::string("SubIotId"), subIotId);
}

View File

@@ -0,0 +1,115 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/QueryCarProcessEventsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Linkvisual;
using namespace AlibabaCloud::Linkvisual::Model;
QueryCarProcessEventsResult::QueryCarProcessEventsResult() :
ServiceResult()
{}
QueryCarProcessEventsResult::QueryCarProcessEventsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryCarProcessEventsResult::~QueryCarProcessEventsResult()
{}
void QueryCarProcessEventsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["CurrentPage"].isNull())
data_.currentPage = std::stoi(dataNode["CurrentPage"].asString());
if(!dataNode["PageSize"].isNull())
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
if(!dataNode["Total"].isNull())
data_.total = std::stoi(dataNode["Total"].asString());
if(!dataNode["PageCount"].isNull())
data_.pageCount = std::stoi(dataNode["PageCount"].asString());
auto allPageDataNode = dataNode["PageData"]["pageDataItem"];
for (auto dataNodePageDatapageDataItem : allPageDataNode)
{
Data::PageDataItem pageDataItemObject;
if(!dataNodePageDatapageDataItem["EventPicUrl"].isNull())
pageDataItemObject.eventPicUrl = dataNodePageDatapageDataItem["EventPicUrl"].asString();
if(!dataNodePageDatapageDataItem["EventTime"].isNull())
pageDataItemObject.eventTime = std::stol(dataNodePageDatapageDataItem["EventTime"].asString());
if(!dataNodePageDatapageDataItem["ActionType"].isNull())
pageDataItemObject.actionType = std::stoi(dataNodePageDatapageDataItem["ActionType"].asString());
if(!dataNodePageDatapageDataItem["Confidence"].isNull())
pageDataItemObject.confidence = std::stoi(dataNodePageDatapageDataItem["Confidence"].asString());
if(!dataNodePageDatapageDataItem["SubProductKey"].isNull())
pageDataItemObject.subProductKey = dataNodePageDatapageDataItem["SubProductKey"].asString();
if(!dataNodePageDatapageDataItem["EventId"].isNull())
pageDataItemObject.eventId = dataNodePageDatapageDataItem["EventId"].asString();
if(!dataNodePageDatapageDataItem["SubIotId"].isNull())
pageDataItemObject.subIotId = dataNodePageDatapageDataItem["SubIotId"].asString();
if(!dataNodePageDatapageDataItem["AreaIndex"].isNull())
pageDataItemObject.areaIndex = std::stoi(dataNodePageDatapageDataItem["AreaIndex"].asString());
if(!dataNodePageDatapageDataItem["EventType"].isNull())
pageDataItemObject.eventType = std::stoi(dataNodePageDatapageDataItem["EventType"].asString());
if(!dataNodePageDatapageDataItem["EventPicId"].isNull())
pageDataItemObject.eventPicId = dataNodePageDatapageDataItem["EventPicId"].asString();
if(!dataNodePageDatapageDataItem["TaskId"].isNull())
pageDataItemObject.taskId = dataNodePageDatapageDataItem["TaskId"].asString();
if(!dataNodePageDatapageDataItem["SubDeviceName"].isNull())
pageDataItemObject.subDeviceName = dataNodePageDatapageDataItem["SubDeviceName"].asString();
if(!dataNodePageDatapageDataItem["IotId"].isNull())
pageDataItemObject.iotId = dataNodePageDatapageDataItem["IotId"].asString();
if(!dataNodePageDatapageDataItem["SubDeviceNickName"].isNull())
pageDataItemObject.subDeviceNickName = dataNodePageDatapageDataItem["SubDeviceNickName"].asString();
if(!dataNodePageDatapageDataItem["PlateNo"].isNull())
pageDataItemObject.plateNo = dataNodePageDatapageDataItem["PlateNo"].asString();
data_.pageData.push_back(pageDataItemObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
QueryCarProcessEventsResult::Data QueryCarProcessEventsResult::getData()const
{
return data_;
}
std::string QueryCarProcessEventsResult::getErrorMessage()const
{
return errorMessage_;
}
std::string QueryCarProcessEventsResult::getCode()const
{
return code_;
}
bool QueryCarProcessEventsResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,90 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/QueryDeviceEventPictureRequest.h>
using AlibabaCloud::Linkvisual::Model::QueryDeviceEventPictureRequest;
QueryDeviceEventPictureRequest::QueryDeviceEventPictureRequest()
: RpcServiceRequest("linkvisual", "2018-01-20", "QueryDeviceEventPicture") {
setMethod(HttpRequest::Method::Post);
}
QueryDeviceEventPictureRequest::~QueryDeviceEventPictureRequest() {}
std::string QueryDeviceEventPictureRequest::getEventId() const {
return eventId_;
}
void QueryDeviceEventPictureRequest::setEventId(const std::string &eventId) {
eventId_ = eventId;
setParameter(std::string("EventId"), eventId);
}
std::string QueryDeviceEventPictureRequest::getIotId() const {
return iotId_;
}
void QueryDeviceEventPictureRequest::setIotId(const std::string &iotId) {
iotId_ = iotId;
setParameter(std::string("IotId"), iotId);
}
std::string QueryDeviceEventPictureRequest::getIotInstanceId() const {
return iotInstanceId_;
}
void QueryDeviceEventPictureRequest::setIotInstanceId(const std::string &iotInstanceId) {
iotInstanceId_ = iotInstanceId;
setParameter(std::string("IotInstanceId"), iotInstanceId);
}
std::string QueryDeviceEventPictureRequest::getProductKey() const {
return productKey_;
}
void QueryDeviceEventPictureRequest::setProductKey(const std::string &productKey) {
productKey_ = productKey;
setParameter(std::string("ProductKey"), productKey);
}
std::string QueryDeviceEventPictureRequest::getApiProduct() const {
return apiProduct_;
}
void QueryDeviceEventPictureRequest::setApiProduct(const std::string &apiProduct) {
apiProduct_ = apiProduct;
setBodyParameter(std::string("ApiProduct"), apiProduct);
}
std::string QueryDeviceEventPictureRequest::getApiRevision() const {
return apiRevision_;
}
void QueryDeviceEventPictureRequest::setApiRevision(const std::string &apiRevision) {
apiRevision_ = apiRevision;
setBodyParameter(std::string("ApiRevision"), apiRevision);
}
std::string QueryDeviceEventPictureRequest::getDeviceName() const {
return deviceName_;
}
void QueryDeviceEventPictureRequest::setDeviceName(const std::string &deviceName) {
deviceName_ = deviceName;
setParameter(std::string("DeviceName"), deviceName);
}

View File

@@ -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.
*/
#include <alibabacloud/linkvisual/model/QueryDeviceEventPictureResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Linkvisual;
using namespace AlibabaCloud::Linkvisual::Model;
QueryDeviceEventPictureResult::QueryDeviceEventPictureResult() :
ServiceResult()
{}
QueryDeviceEventPictureResult::QueryDeviceEventPictureResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryDeviceEventPictureResult::~QueryDeviceEventPictureResult()
{}
void QueryDeviceEventPictureResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string QueryDeviceEventPictureResult::getData()const
{
return data_;
}
std::string QueryDeviceEventPictureResult::getErrorMessage()const
{
return errorMessage_;
}
int QueryDeviceEventPictureResult::getCode()const
{
return code_;
}
bool QueryDeviceEventPictureResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,90 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/QueryDeviceEventRecordRequest.h>
using AlibabaCloud::Linkvisual::Model::QueryDeviceEventRecordRequest;
QueryDeviceEventRecordRequest::QueryDeviceEventRecordRequest()
: RpcServiceRequest("linkvisual", "2018-01-20", "QueryDeviceEventRecord") {
setMethod(HttpRequest::Method::Post);
}
QueryDeviceEventRecordRequest::~QueryDeviceEventRecordRequest() {}
std::string QueryDeviceEventRecordRequest::getEventId() const {
return eventId_;
}
void QueryDeviceEventRecordRequest::setEventId(const std::string &eventId) {
eventId_ = eventId;
setParameter(std::string("EventId"), eventId);
}
std::string QueryDeviceEventRecordRequest::getIotId() const {
return iotId_;
}
void QueryDeviceEventRecordRequest::setIotId(const std::string &iotId) {
iotId_ = iotId;
setParameter(std::string("IotId"), iotId);
}
std::string QueryDeviceEventRecordRequest::getIotInstanceId() const {
return iotInstanceId_;
}
void QueryDeviceEventRecordRequest::setIotInstanceId(const std::string &iotInstanceId) {
iotInstanceId_ = iotInstanceId;
setParameter(std::string("IotInstanceId"), iotInstanceId);
}
std::string QueryDeviceEventRecordRequest::getProductKey() const {
return productKey_;
}
void QueryDeviceEventRecordRequest::setProductKey(const std::string &productKey) {
productKey_ = productKey;
setParameter(std::string("ProductKey"), productKey);
}
std::string QueryDeviceEventRecordRequest::getApiProduct() const {
return apiProduct_;
}
void QueryDeviceEventRecordRequest::setApiProduct(const std::string &apiProduct) {
apiProduct_ = apiProduct;
setBodyParameter(std::string("ApiProduct"), apiProduct);
}
std::string QueryDeviceEventRecordRequest::getApiRevision() const {
return apiRevision_;
}
void QueryDeviceEventRecordRequest::setApiRevision(const std::string &apiRevision) {
apiRevision_ = apiRevision;
setBodyParameter(std::string("ApiRevision"), apiRevision);
}
std::string QueryDeviceEventRecordRequest::getDeviceName() const {
return deviceName_;
}
void QueryDeviceEventRecordRequest::setDeviceName(const std::string &deviceName) {
deviceName_ = deviceName;
setParameter(std::string("DeviceName"), deviceName);
}

View File

@@ -0,0 +1,84 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/QueryDeviceEventRecordResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Linkvisual;
using namespace AlibabaCloud::Linkvisual::Model;
QueryDeviceEventRecordResult::QueryDeviceEventRecordResult() :
ServiceResult()
{}
QueryDeviceEventRecordResult::QueryDeviceEventRecordResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryDeviceEventRecordResult::~QueryDeviceEventRecordResult()
{}
void QueryDeviceEventRecordResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDataNode = value["Data"]["VodInfo"];
for (auto valueDataVodInfo : allDataNode)
{
VodInfo dataObject;
if(!valueDataVodInfo["EndTime"].isNull())
dataObject.endTime = valueDataVodInfo["EndTime"].asString();
if(!valueDataVodInfo["FileName"].isNull())
dataObject.fileName = valueDataVodInfo["FileName"].asString();
if(!valueDataVodInfo["VodUrl"].isNull())
dataObject.vodUrl = valueDataVodInfo["VodUrl"].asString();
if(!valueDataVodInfo["BeginTime"].isNull())
dataObject.beginTime = valueDataVodInfo["BeginTime"].asString();
data_.push_back(dataObject);
}
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::vector<QueryDeviceEventRecordResult::VodInfo> QueryDeviceEventRecordResult::getData()const
{
return data_;
}
std::string QueryDeviceEventRecordResult::getErrorMessage()const
{
return errorMessage_;
}
int QueryDeviceEventRecordResult::getCode()const
{
return code_;
}
bool QueryDeviceEventRecordResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,126 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/QueryDeviceEventRequest.h>
using AlibabaCloud::Linkvisual::Model::QueryDeviceEventRequest;
QueryDeviceEventRequest::QueryDeviceEventRequest()
: RpcServiceRequest("linkvisual", "2018-01-20", "QueryDeviceEvent") {
setMethod(HttpRequest::Method::Post);
}
QueryDeviceEventRequest::~QueryDeviceEventRequest() {}
std::string QueryDeviceEventRequest::getIotId() const {
return iotId_;
}
void QueryDeviceEventRequest::setIotId(const std::string &iotId) {
iotId_ = iotId;
setParameter(std::string("IotId"), iotId);
}
std::string QueryDeviceEventRequest::getIotInstanceId() const {
return iotInstanceId_;
}
void QueryDeviceEventRequest::setIotInstanceId(const std::string &iotInstanceId) {
iotInstanceId_ = iotInstanceId;
setParameter(std::string("IotInstanceId"), iotInstanceId);
}
int QueryDeviceEventRequest::getPageSize() const {
return pageSize_;
}
void QueryDeviceEventRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), std::to_string(pageSize));
}
long QueryDeviceEventRequest::getEndTime() const {
return endTime_;
}
void QueryDeviceEventRequest::setEndTime(long endTime) {
endTime_ = endTime;
setParameter(std::string("EndTime"), std::to_string(endTime));
}
long QueryDeviceEventRequest::getBeginTime() const {
return beginTime_;
}
void QueryDeviceEventRequest::setBeginTime(long beginTime) {
beginTime_ = beginTime;
setParameter(std::string("BeginTime"), std::to_string(beginTime));
}
int QueryDeviceEventRequest::getCurrentPage() const {
return currentPage_;
}
void QueryDeviceEventRequest::setCurrentPage(int currentPage) {
currentPage_ = currentPage;
setParameter(std::string("CurrentPage"), std::to_string(currentPage));
}
std::string QueryDeviceEventRequest::getProductKey() const {
return productKey_;
}
void QueryDeviceEventRequest::setProductKey(const std::string &productKey) {
productKey_ = productKey;
setParameter(std::string("ProductKey"), productKey);
}
std::string QueryDeviceEventRequest::getApiProduct() const {
return apiProduct_;
}
void QueryDeviceEventRequest::setApiProduct(const std::string &apiProduct) {
apiProduct_ = apiProduct;
setBodyParameter(std::string("ApiProduct"), apiProduct);
}
std::string QueryDeviceEventRequest::getApiRevision() const {
return apiRevision_;
}
void QueryDeviceEventRequest::setApiRevision(const std::string &apiRevision) {
apiRevision_ = apiRevision;
setBodyParameter(std::string("ApiRevision"), apiRevision);
}
std::string QueryDeviceEventRequest::getDeviceName() const {
return deviceName_;
}
void QueryDeviceEventRequest::setDeviceName(const std::string &deviceName) {
deviceName_ = deviceName;
setParameter(std::string("DeviceName"), deviceName);
}
int QueryDeviceEventRequest::getEventType() const {
return eventType_;
}
void QueryDeviceEventRequest::setEventType(int eventType) {
eventType_ = eventType;
setParameter(std::string("EventType"), std::to_string(eventType));
}

View File

@@ -0,0 +1,97 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/QueryDeviceEventResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Linkvisual;
using namespace AlibabaCloud::Linkvisual::Model;
QueryDeviceEventResult::QueryDeviceEventResult() :
ServiceResult()
{}
QueryDeviceEventResult::QueryDeviceEventResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryDeviceEventResult::~QueryDeviceEventResult()
{}
void QueryDeviceEventResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["PageSize"].isNull())
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
if(!dataNode["PageCount"].isNull())
data_.pageCount = std::stoi(dataNode["PageCount"].asString());
if(!dataNode["Total"].isNull())
data_.total = std::stoi(dataNode["Total"].asString());
if(!dataNode["Page"].isNull())
data_.page = std::stoi(dataNode["Page"].asString());
auto allListNode = dataNode["List"]["ListItem"];
for (auto dataNodeListListItem : allListNode)
{
Data::ListItem listItemObject;
if(!dataNodeListListItem["EventId"].isNull())
listItemObject.eventId = dataNodeListListItem["EventId"].asString();
if(!dataNodeListListItem["EventTime"].isNull())
listItemObject.eventTime = dataNodeListListItem["EventTime"].asString();
if(!dataNodeListListItem["EventType"].isNull())
listItemObject.eventType = std::stoi(dataNodeListListItem["EventType"].asString());
if(!dataNodeListListItem["EventPicId"].isNull())
listItemObject.eventPicId = dataNodeListListItem["EventPicId"].asString();
if(!dataNodeListListItem["EventDesc"].isNull())
listItemObject.eventDesc = dataNodeListListItem["EventDesc"].asString();
if(!dataNodeListListItem["EventData"].isNull())
listItemObject.eventData = dataNodeListListItem["EventData"].asString();
data_.list.push_back(listItemObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
QueryDeviceEventResult::Data QueryDeviceEventResult::getData()const
{
return data_;
}
std::string QueryDeviceEventResult::getErrorMessage()const
{
return errorMessage_;
}
std::string QueryDeviceEventResult::getCode()const
{
return code_;
}
bool QueryDeviceEventResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,116 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/QueryDevicePictureByListRequest.h>
using AlibabaCloud::Linkvisual::Model::QueryDevicePictureByListRequest;
QueryDevicePictureByListRequest::QueryDevicePictureByListRequest()
: RpcServiceRequest("linkvisual", "2018-01-20", "QueryDevicePictureByList") {
setMethod(HttpRequest::Method::Post);
}
QueryDevicePictureByListRequest::~QueryDevicePictureByListRequest() {}
int QueryDevicePictureByListRequest::getPictureType() const {
return pictureType_;
}
void QueryDevicePictureByListRequest::setPictureType(int pictureType) {
pictureType_ = pictureType;
setParameter(std::string("PictureType"), std::to_string(pictureType));
}
int QueryDevicePictureByListRequest::getThumbWidth() const {
return thumbWidth_;
}
void QueryDevicePictureByListRequest::setThumbWidth(int thumbWidth) {
thumbWidth_ = thumbWidth;
setParameter(std::string("ThumbWidth"), std::to_string(thumbWidth));
}
std::string QueryDevicePictureByListRequest::getIotId() const {
return iotId_;
}
void QueryDevicePictureByListRequest::setIotId(const std::string &iotId) {
iotId_ = iotId;
setParameter(std::string("IotId"), iotId);
}
std::string QueryDevicePictureByListRequest::getIotInstanceId() const {
return iotInstanceId_;
}
void QueryDevicePictureByListRequest::setIotInstanceId(const std::string &iotInstanceId) {
iotInstanceId_ = iotInstanceId;
setParameter(std::string("IotInstanceId"), iotInstanceId);
}
std::vector<std::string> QueryDevicePictureByListRequest::getPictureIdList() const {
return pictureIdList_;
}
void QueryDevicePictureByListRequest::setPictureIdList(const std::vector<std::string> &pictureIdList) {
pictureIdList_ = pictureIdList;
}
int QueryDevicePictureByListRequest::getExpireTime() const {
return expireTime_;
}
void QueryDevicePictureByListRequest::setExpireTime(int expireTime) {
expireTime_ = expireTime;
setParameter(std::string("ExpireTime"), std::to_string(expireTime));
}
std::string QueryDevicePictureByListRequest::getProductKey() const {
return productKey_;
}
void QueryDevicePictureByListRequest::setProductKey(const std::string &productKey) {
productKey_ = productKey;
setParameter(std::string("ProductKey"), productKey);
}
std::string QueryDevicePictureByListRequest::getApiProduct() const {
return apiProduct_;
}
void QueryDevicePictureByListRequest::setApiProduct(const std::string &apiProduct) {
apiProduct_ = apiProduct;
setBodyParameter(std::string("ApiProduct"), apiProduct);
}
std::string QueryDevicePictureByListRequest::getApiRevision() const {
return apiRevision_;
}
void QueryDevicePictureByListRequest::setApiRevision(const std::string &apiRevision) {
apiRevision_ = apiRevision;
setBodyParameter(std::string("ApiRevision"), apiRevision);
}
std::string QueryDevicePictureByListRequest::getDeviceName() const {
return deviceName_;
}
void QueryDevicePictureByListRequest::setDeviceName(const std::string &deviceName) {
deviceName_ = deviceName;
setParameter(std::string("DeviceName"), deviceName);
}

View File

@@ -0,0 +1,86 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/QueryDevicePictureByListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Linkvisual;
using namespace AlibabaCloud::Linkvisual::Model;
QueryDevicePictureByListResult::QueryDevicePictureByListResult() :
ServiceResult()
{}
QueryDevicePictureByListResult::QueryDevicePictureByListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryDevicePictureByListResult::~QueryDevicePictureByListResult()
{}
void QueryDevicePictureByListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDataNode = value["Data"]["picData"];
for (auto valueDatapicData : allDataNode)
{
PicData dataObject;
if(!valueDatapicData["PicId"].isNull())
dataObject.picId = valueDatapicData["PicId"].asString();
if(!valueDatapicData["PicUrl"].isNull())
dataObject.picUrl = valueDatapicData["PicUrl"].asString();
if(!valueDatapicData["PicCreateTime"].isNull())
dataObject.picCreateTime = std::stol(valueDatapicData["PicCreateTime"].asString());
if(!valueDatapicData["ThumbUrl"].isNull())
dataObject.thumbUrl = valueDatapicData["ThumbUrl"].asString();
if(!valueDatapicData["IotId"].isNull())
dataObject.iotId = valueDatapicData["IotId"].asString();
data_.push_back(dataObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::vector<QueryDevicePictureByListResult::PicData> QueryDevicePictureByListResult::getData()const
{
return data_;
}
std::string QueryDevicePictureByListResult::getErrorMessage()const
{
return errorMessage_;
}
std::string QueryDevicePictureByListResult::getCode()const
{
return code_;
}
bool QueryDevicePictureByListResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,117 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/QueryDevicePictureFileRequest.h>
using AlibabaCloud::Linkvisual::Model::QueryDevicePictureFileRequest;
QueryDevicePictureFileRequest::QueryDevicePictureFileRequest()
: RpcServiceRequest("linkvisual", "2018-01-20", "QueryDevicePictureFile") {
setMethod(HttpRequest::Method::Post);
}
QueryDevicePictureFileRequest::~QueryDevicePictureFileRequest() {}
int QueryDevicePictureFileRequest::getPictureType() const {
return pictureType_;
}
void QueryDevicePictureFileRequest::setPictureType(int pictureType) {
pictureType_ = pictureType;
setParameter(std::string("PictureType"), std::to_string(pictureType));
}
int QueryDevicePictureFileRequest::getThumbWidth() const {
return thumbWidth_;
}
void QueryDevicePictureFileRequest::setThumbWidth(int thumbWidth) {
thumbWidth_ = thumbWidth;
setParameter(std::string("ThumbWidth"), std::to_string(thumbWidth));
}
std::string QueryDevicePictureFileRequest::getIotId() const {
return iotId_;
}
void QueryDevicePictureFileRequest::setIotId(const std::string &iotId) {
iotId_ = iotId;
setParameter(std::string("IotId"), iotId);
}
std::string QueryDevicePictureFileRequest::getIotInstanceId() const {
return iotInstanceId_;
}
void QueryDevicePictureFileRequest::setIotInstanceId(const std::string &iotInstanceId) {
iotInstanceId_ = iotInstanceId;
setParameter(std::string("IotInstanceId"), iotInstanceId);
}
int QueryDevicePictureFileRequest::getExpireTime() const {
return expireTime_;
}
void QueryDevicePictureFileRequest::setExpireTime(int expireTime) {
expireTime_ = expireTime;
setParameter(std::string("ExpireTime"), std::to_string(expireTime));
}
std::string QueryDevicePictureFileRequest::getProductKey() const {
return productKey_;
}
void QueryDevicePictureFileRequest::setProductKey(const std::string &productKey) {
productKey_ = productKey;
setParameter(std::string("ProductKey"), productKey);
}
std::string QueryDevicePictureFileRequest::getApiProduct() const {
return apiProduct_;
}
void QueryDevicePictureFileRequest::setApiProduct(const std::string &apiProduct) {
apiProduct_ = apiProduct;
setBodyParameter(std::string("ApiProduct"), apiProduct);
}
std::string QueryDevicePictureFileRequest::getApiRevision() const {
return apiRevision_;
}
void QueryDevicePictureFileRequest::setApiRevision(const std::string &apiRevision) {
apiRevision_ = apiRevision;
setBodyParameter(std::string("ApiRevision"), apiRevision);
}
std::string QueryDevicePictureFileRequest::getDeviceName() const {
return deviceName_;
}
void QueryDevicePictureFileRequest::setDeviceName(const std::string &deviceName) {
deviceName_ = deviceName;
setParameter(std::string("DeviceName"), deviceName);
}
std::string QueryDevicePictureFileRequest::getCaptureId() const {
return captureId_;
}
void QueryDevicePictureFileRequest::setCaptureId(const std::string &captureId) {
captureId_ = captureId;
setParameter(std::string("CaptureId"), captureId);
}

View File

@@ -0,0 +1,81 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/QueryDevicePictureFileResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Linkvisual;
using namespace AlibabaCloud::Linkvisual::Model;
QueryDevicePictureFileResult::QueryDevicePictureFileResult() :
ServiceResult()
{}
QueryDevicePictureFileResult::QueryDevicePictureFileResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryDevicePictureFileResult::~QueryDevicePictureFileResult()
{}
void QueryDevicePictureFileResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["PicId"].isNull())
data_.picId = dataNode["PicId"].asString();
if(!dataNode["PicUrl"].isNull())
data_.picUrl = dataNode["PicUrl"].asString();
if(!dataNode["PicCreateTime"].isNull())
data_.picCreateTime = std::stol(dataNode["PicCreateTime"].asString());
if(!dataNode["ThumbUrl"].isNull())
data_.thumbUrl = dataNode["ThumbUrl"].asString();
if(!dataNode["IotId"].isNull())
data_.iotId = dataNode["IotId"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
QueryDevicePictureFileResult::Data QueryDevicePictureFileResult::getData()const
{
return data_;
}
std::string QueryDevicePictureFileResult::getErrorMessage()const
{
return errorMessage_;
}
std::string QueryDevicePictureFileResult::getCode()const
{
return code_;
}
bool QueryDevicePictureFileResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,54 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/QueryDevicePictureLifeCycleRequest.h>
using AlibabaCloud::Linkvisual::Model::QueryDevicePictureLifeCycleRequest;
QueryDevicePictureLifeCycleRequest::QueryDevicePictureLifeCycleRequest()
: RpcServiceRequest("linkvisual", "2018-01-20", "QueryDevicePictureLifeCycle") {
setMethod(HttpRequest::Method::Post);
}
QueryDevicePictureLifeCycleRequest::~QueryDevicePictureLifeCycleRequest() {}
std::string QueryDevicePictureLifeCycleRequest::getIotId() const {
return iotId_;
}
void QueryDevicePictureLifeCycleRequest::setIotId(const std::string &iotId) {
iotId_ = iotId;
setParameter(std::string("IotId"), iotId);
}
std::string QueryDevicePictureLifeCycleRequest::getApiProduct() const {
return apiProduct_;
}
void QueryDevicePictureLifeCycleRequest::setApiProduct(const std::string &apiProduct) {
apiProduct_ = apiProduct;
setBodyParameter(std::string("ApiProduct"), apiProduct);
}
std::string QueryDevicePictureLifeCycleRequest::getApiRevision() const {
return apiRevision_;
}
void QueryDevicePictureLifeCycleRequest::setApiRevision(const std::string &apiRevision) {
apiRevision_ = apiRevision;
setBodyParameter(std::string("ApiRevision"), apiRevision);
}

View File

@@ -0,0 +1,75 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/QueryDevicePictureLifeCycleResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Linkvisual;
using namespace AlibabaCloud::Linkvisual::Model;
QueryDevicePictureLifeCycleResult::QueryDevicePictureLifeCycleResult() :
ServiceResult()
{}
QueryDevicePictureLifeCycleResult::QueryDevicePictureLifeCycleResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryDevicePictureLifeCycleResult::~QueryDevicePictureLifeCycleResult()
{}
void QueryDevicePictureLifeCycleResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["Day"].isNull())
data_.day = std::stoi(dataNode["Day"].asString());
if(!dataNode["IotId"].isNull())
data_.iotId = dataNode["IotId"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
QueryDevicePictureLifeCycleResult::Data QueryDevicePictureLifeCycleResult::getData()const
{
return data_;
}
std::string QueryDevicePictureLifeCycleResult::getErrorMessage()const
{
return errorMessage_;
}
std::string QueryDevicePictureLifeCycleResult::getCode()const
{
return code_;
}
bool QueryDevicePictureLifeCycleResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,53 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/QueryDeviceRecordLifeCycleRequest.h>
using AlibabaCloud::Linkvisual::Model::QueryDeviceRecordLifeCycleRequest;
QueryDeviceRecordLifeCycleRequest::QueryDeviceRecordLifeCycleRequest()
: RpcServiceRequest("linkvisual", "2018-01-20", "QueryDeviceRecordLifeCycle") {
setMethod(HttpRequest::Method::Post);
}
QueryDeviceRecordLifeCycleRequest::~QueryDeviceRecordLifeCycleRequest() {}
std::vector<std::string> QueryDeviceRecordLifeCycleRequest::getDeviceList() const {
return deviceList_;
}
void QueryDeviceRecordLifeCycleRequest::setDeviceList(const std::vector<std::string> &deviceList) {
deviceList_ = deviceList;
}
std::string QueryDeviceRecordLifeCycleRequest::getApiProduct() const {
return apiProduct_;
}
void QueryDeviceRecordLifeCycleRequest::setApiProduct(const std::string &apiProduct) {
apiProduct_ = apiProduct;
setBodyParameter(std::string("ApiProduct"), apiProduct);
}
std::string QueryDeviceRecordLifeCycleRequest::getApiRevision() const {
return apiRevision_;
}
void QueryDeviceRecordLifeCycleRequest::setApiRevision(const std::string &apiRevision) {
apiRevision_ = apiRevision;
setBodyParameter(std::string("ApiRevision"), apiRevision);
}

View File

@@ -0,0 +1,80 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/QueryDeviceRecordLifeCycleResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Linkvisual;
using namespace AlibabaCloud::Linkvisual::Model;
QueryDeviceRecordLifeCycleResult::QueryDeviceRecordLifeCycleResult() :
ServiceResult()
{}
QueryDeviceRecordLifeCycleResult::QueryDeviceRecordLifeCycleResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryDeviceRecordLifeCycleResult::~QueryDeviceRecordLifeCycleResult()
{}
void QueryDeviceRecordLifeCycleResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDataNode = value["Data"]["DataItem"];
for (auto valueDataDataItem : allDataNode)
{
DataItem dataObject;
if(!valueDataDataItem["Day"].isNull())
dataObject.day = std::stoi(valueDataDataItem["Day"].asString());
if(!valueDataDataItem["IotId"].isNull())
dataObject.iotId = valueDataDataItem["IotId"].asString();
data_.push_back(dataObject);
}
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::vector<QueryDeviceRecordLifeCycleResult::DataItem> QueryDeviceRecordLifeCycleResult::getData()const
{
return data_;
}
std::string QueryDeviceRecordLifeCycleResult::getErrorMessage()const
{
return errorMessage_;
}
int QueryDeviceRecordLifeCycleResult::getCode()const
{
return code_;
}
bool QueryDeviceRecordLifeCycleResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,162 @@
/*
* 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.
*/
#include <alibabacloud/linkvisual/model/QueryDeviceVodUrlByTimeRequest.h>
using AlibabaCloud::Linkvisual::Model::QueryDeviceVodUrlByTimeRequest;
QueryDeviceVodUrlByTimeRequest::QueryDeviceVodUrlByTimeRequest()
: RpcServiceRequest("linkvisual", "2018-01-20", "QueryDeviceVodUrlByTime") {
setMethod(HttpRequest::Method::Post);
}
QueryDeviceVodUrlByTimeRequest::~QueryDeviceVodUrlByTimeRequest() {}
std::string QueryDeviceVodUrlByTimeRequest::getScheme() const {
return scheme_;
}
void QueryDeviceVodUrlByTimeRequest::setScheme(const std::string &scheme) {
scheme_ = scheme;
setParameter(std::string("Scheme"), scheme);
}
bool QueryDeviceVodUrlByTimeRequest::getPlayUnLimited() const {
return playUnLimited_;
}
void QueryDeviceVodUrlByTimeRequest::setPlayUnLimited(bool playUnLimited) {
playUnLimited_ = playUnLimited;
setParameter(std::string("PlayUnLimited"), playUnLimited ? "true" : "false");
}
int QueryDeviceVodUrlByTimeRequest::getEncryptType() const {
return encryptType_;
}
void QueryDeviceVodUrlByTimeRequest::setEncryptType(int encryptType) {
encryptType_ = encryptType;
setParameter(std::string("EncryptType"), std::to_string(encryptType));
}
std::string QueryDeviceVodUrlByTimeRequest::getIotId() const {
return iotId_;
}
void QueryDeviceVodUrlByTimeRequest::setIotId(const std::string &iotId) {
iotId_ = iotId;
setParameter(std::string("IotId"), iotId);
}
std::string QueryDeviceVodUrlByTimeRequest::getIotInstanceId() const {
return iotInstanceId_;
}
void QueryDeviceVodUrlByTimeRequest::setIotInstanceId(const std::string &iotInstanceId) {
iotInstanceId_ = iotInstanceId;
setParameter(std::string("IotInstanceId"), iotInstanceId);
}
bool QueryDeviceVodUrlByTimeRequest::getShouldEncrypt() const {
return shouldEncrypt_;
}
void QueryDeviceVodUrlByTimeRequest::setShouldEncrypt(bool shouldEncrypt) {
shouldEncrypt_ = shouldEncrypt;
setParameter(std::string("ShouldEncrypt"), shouldEncrypt ? "true" : "false");
}
bool QueryDeviceVodUrlByTimeRequest::getEnableStun() const {
return enableStun_;
}
void QueryDeviceVodUrlByTimeRequest::setEnableStun(bool enableStun) {
enableStun_ = enableStun;
setParameter(std::string("EnableStun"), enableStun ? "true" : "false");
}
int QueryDeviceVodUrlByTimeRequest::getEndTime() const {
return endTime_;
}
void QueryDeviceVodUrlByTimeRequest::setEndTime(int endTime) {
endTime_ = endTime;
setParameter(std::string("EndTime"), std::to_string(endTime));
}
int QueryDeviceVodUrlByTimeRequest::getBeginTime() const {
return beginTime_;
}
void QueryDeviceVodUrlByTimeRequest::setBeginTime(int beginTime) {
beginTime_ = beginTime;
setParameter(std::string("BeginTime"), std::to_string(beginTime));
}
std::string QueryDeviceVodUrlByTimeRequest::getProductKey() const {
return productKey_;
}
void QueryDeviceVodUrlByTimeRequest::setProductKey(const std::string &productKey) {
productKey_ = productKey;
setParameter(std::string("ProductKey"), productKey);
}
int QueryDeviceVodUrlByTimeRequest::getSeekTime() const {
return seekTime_;
}
void QueryDeviceVodUrlByTimeRequest::setSeekTime(int seekTime) {
seekTime_ = seekTime;
setParameter(std::string("SeekTime"), std::to_string(seekTime));
}
std::string QueryDeviceVodUrlByTimeRequest::getApiProduct() const {
return apiProduct_;
}
void QueryDeviceVodUrlByTimeRequest::setApiProduct(const std::string &apiProduct) {
apiProduct_ = apiProduct;
setBodyParameter(std::string("ApiProduct"), apiProduct);
}
std::string QueryDeviceVodUrlByTimeRequest::getApiRevision() const {
return apiRevision_;
}
void QueryDeviceVodUrlByTimeRequest::setApiRevision(const std::string &apiRevision) {
apiRevision_ = apiRevision;
setBodyParameter(std::string("ApiRevision"), apiRevision);
}
std::string QueryDeviceVodUrlByTimeRequest::getDeviceName() const {
return deviceName_;
}
void QueryDeviceVodUrlByTimeRequest::setDeviceName(const std::string &deviceName) {
deviceName_ = deviceName;
setParameter(std::string("DeviceName"), deviceName);
}
int QueryDeviceVodUrlByTimeRequest::getUrlValidDuration() const {
return urlValidDuration_;
}
void QueryDeviceVodUrlByTimeRequest::setUrlValidDuration(int urlValidDuration) {
urlValidDuration_ = urlValidDuration;
setParameter(std::string("UrlValidDuration"), std::to_string(urlValidDuration));
}

Some files were not shown because too many files have changed in this diff Show More