Add monitor related.
This commit is contained in:
@@ -87,6 +87,42 @@ VcsClient::AddDeviceOutcomeCallable VcsClient::addDeviceCallable(const AddDevice
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
VcsClient::AddMonitorOutcome VcsClient::addMonitor(const AddMonitorRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return AddMonitorOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return AddMonitorOutcome(AddMonitorResult(outcome.result()));
|
||||
else
|
||||
return AddMonitorOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void VcsClient::addMonitorAsync(const AddMonitorRequest& request, const AddMonitorAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, addMonitor(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
VcsClient::AddMonitorOutcomeCallable VcsClient::addMonitorCallable(const AddMonitorRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<AddMonitorOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->addMonitor(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
VcsClient::CreateCorpOutcome VcsClient::createCorp(const CreateCorpRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -159,6 +195,42 @@ VcsClient::DeleteDeviceOutcomeCallable VcsClient::deleteDeviceCallable(const Del
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
VcsClient::GetBodyOptionsOutcome VcsClient::getBodyOptions(const GetBodyOptionsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetBodyOptionsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetBodyOptionsOutcome(GetBodyOptionsResult(outcome.result()));
|
||||
else
|
||||
return GetBodyOptionsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void VcsClient::getBodyOptionsAsync(const GetBodyOptionsRequest& request, const GetBodyOptionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getBodyOptions(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
VcsClient::GetBodyOptionsOutcomeCallable VcsClient::getBodyOptionsCallable(const GetBodyOptionsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetBodyOptionsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getBodyOptions(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
VcsClient::GetDeviceLiveUrlOutcome VcsClient::getDeviceLiveUrl(const GetDeviceLiveUrlRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -195,6 +267,78 @@ VcsClient::GetDeviceLiveUrlOutcomeCallable VcsClient::getDeviceLiveUrlCallable(c
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
VcsClient::GetDeviceVideoUrlOutcome VcsClient::getDeviceVideoUrl(const GetDeviceVideoUrlRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetDeviceVideoUrlOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetDeviceVideoUrlOutcome(GetDeviceVideoUrlResult(outcome.result()));
|
||||
else
|
||||
return GetDeviceVideoUrlOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void VcsClient::getDeviceVideoUrlAsync(const GetDeviceVideoUrlRequest& request, const GetDeviceVideoUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getDeviceVideoUrl(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
VcsClient::GetDeviceVideoUrlOutcomeCallable VcsClient::getDeviceVideoUrlCallable(const GetDeviceVideoUrlRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetDeviceVideoUrlOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getDeviceVideoUrl(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
VcsClient::GetFaceOptionsOutcome VcsClient::getFaceOptions(const GetFaceOptionsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetFaceOptionsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetFaceOptionsOutcome(GetFaceOptionsResult(outcome.result()));
|
||||
else
|
||||
return GetFaceOptionsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void VcsClient::getFaceOptionsAsync(const GetFaceOptionsRequest& request, const GetFaceOptionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getFaceOptions(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
VcsClient::GetFaceOptionsOutcomeCallable VcsClient::getFaceOptionsCallable(const GetFaceOptionsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetFaceOptionsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getFaceOptions(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
VcsClient::GetInventoryOutcome VcsClient::getInventory(const GetInventoryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -231,6 +375,42 @@ VcsClient::GetInventoryOutcomeCallable VcsClient::getInventoryCallable(const Get
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
VcsClient::GetMonitorResultOutcome VcsClient::getMonitorResult(const GetMonitorResultRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetMonitorResultOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetMonitorResultOutcome(GetMonitorResultResult(outcome.result()));
|
||||
else
|
||||
return GetMonitorResultOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void VcsClient::getMonitorResultAsync(const GetMonitorResultRequest& request, const GetMonitorResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getMonitorResult(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
VcsClient::GetMonitorResultOutcomeCallable VcsClient::getMonitorResultCallable(const GetMonitorResultRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetMonitorResultOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getMonitorResult(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
VcsClient::ListCorpsOutcome VcsClient::listCorps(const ListCorpsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -339,6 +519,42 @@ VcsClient::RecognizeImageOutcomeCallable VcsClient::recognizeImageCallable(const
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
VcsClient::SearchBodyOutcome VcsClient::searchBody(const SearchBodyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SearchBodyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SearchBodyOutcome(SearchBodyResult(outcome.result()));
|
||||
else
|
||||
return SearchBodyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void VcsClient::searchBodyAsync(const SearchBodyRequest& request, const SearchBodyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, searchBody(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
VcsClient::SearchBodyOutcomeCallable VcsClient::searchBodyCallable(const SearchBodyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SearchBodyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->searchBody(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
VcsClient::SearchFaceOutcome VcsClient::searchFace(const SearchFaceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -375,6 +591,42 @@ VcsClient::SearchFaceOutcomeCallable VcsClient::searchFaceCallable(const SearchF
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
VcsClient::StopMonitorOutcome VcsClient::stopMonitor(const StopMonitorRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return StopMonitorOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return StopMonitorOutcome(StopMonitorResult(outcome.result()));
|
||||
else
|
||||
return StopMonitorOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void VcsClient::stopMonitorAsync(const StopMonitorRequest& request, const StopMonitorAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, stopMonitor(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
VcsClient::StopMonitorOutcomeCallable VcsClient::stopMonitorCallable(const StopMonitorRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<StopMonitorOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->stopMonitor(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
VcsClient::UpdateCorpOutcome VcsClient::updateCorp(const UpdateCorpRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -447,3 +699,39 @@ VcsClient::UpdateDeviceOutcomeCallable VcsClient::updateDeviceCallable(const Upd
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
VcsClient::UpdateMonitorOutcome VcsClient::updateMonitor(const UpdateMonitorRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateMonitorOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateMonitorOutcome(UpdateMonitorResult(outcome.result()));
|
||||
else
|
||||
return UpdateMonitorOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void VcsClient::updateMonitorAsync(const UpdateMonitorRequest& request, const UpdateMonitorAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateMonitor(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
VcsClient::UpdateMonitorOutcomeCallable VcsClient::updateMonitorCallable(const UpdateMonitorRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateMonitorOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateMonitor(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
@@ -60,6 +60,17 @@ void AddDeviceRequest::setGbId(const std::string& gbId)
|
||||
setBodyParameter("GbId", gbId);
|
||||
}
|
||||
|
||||
std::string AddDeviceRequest::getBitRate()const
|
||||
{
|
||||
return bitRate_;
|
||||
}
|
||||
|
||||
void AddDeviceRequest::setBitRate(const std::string& bitRate)
|
||||
{
|
||||
bitRate_ = bitRate;
|
||||
setBodyParameter("BitRate", bitRate);
|
||||
}
|
||||
|
||||
std::string AddDeviceRequest::getDeviceDirection()const
|
||||
{
|
||||
return deviceDirection_;
|
||||
@@ -71,17 +82,6 @@ void AddDeviceRequest::setDeviceDirection(const std::string& deviceDirection)
|
||||
setBodyParameter("DeviceDirection", deviceDirection);
|
||||
}
|
||||
|
||||
std::string AddDeviceRequest::getDeviceRate()const
|
||||
{
|
||||
return deviceRate_;
|
||||
}
|
||||
|
||||
void AddDeviceRequest::setDeviceRate(const std::string& deviceRate)
|
||||
{
|
||||
deviceRate_ = deviceRate;
|
||||
setBodyParameter("DeviceRate", deviceRate);
|
||||
}
|
||||
|
||||
std::string AddDeviceRequest::getDeviceAddress()const
|
||||
{
|
||||
return deviceAddress_;
|
||||
|
||||
73
vcs/src/model/AddMonitorRequest.cc
Normal file
73
vcs/src/model/AddMonitorRequest.cc
Normal 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/vcs/model/AddMonitorRequest.h>
|
||||
|
||||
using AlibabaCloud::Vcs::Model::AddMonitorRequest;
|
||||
|
||||
AddMonitorRequest::AddMonitorRequest() :
|
||||
RpcServiceRequest("vcs", "2020-05-15", "AddMonitor")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddMonitorRequest::~AddMonitorRequest()
|
||||
{}
|
||||
|
||||
std::string AddMonitorRequest::getMonitorType()const
|
||||
{
|
||||
return monitorType_;
|
||||
}
|
||||
|
||||
void AddMonitorRequest::setMonitorType(const std::string& monitorType)
|
||||
{
|
||||
monitorType_ = monitorType;
|
||||
setBodyParameter("MonitorType", monitorType);
|
||||
}
|
||||
|
||||
std::string AddMonitorRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void AddMonitorRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
std::string AddMonitorRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void AddMonitorRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setBodyParameter("Description", description);
|
||||
}
|
||||
|
||||
int AddMonitorRequest::getBatchIndicator()const
|
||||
{
|
||||
return batchIndicator_;
|
||||
}
|
||||
|
||||
void AddMonitorRequest::setBatchIndicator(int batchIndicator)
|
||||
{
|
||||
batchIndicator_ = batchIndicator;
|
||||
setBodyParameter("BatchIndicator", std::to_string(batchIndicator));
|
||||
}
|
||||
|
||||
65
vcs/src/model/AddMonitorResult.cc
Normal file
65
vcs/src/model/AddMonitorResult.cc
Normal 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/vcs/model/AddMonitorResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vcs;
|
||||
using namespace AlibabaCloud::Vcs::Model;
|
||||
|
||||
AddMonitorResult::AddMonitorResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddMonitorResult::AddMonitorResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddMonitorResult::~AddMonitorResult()
|
||||
{}
|
||||
|
||||
void AddMonitorResult::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["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string AddMonitorResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string AddMonitorResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string AddMonitorResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
40
vcs/src/model/GetBodyOptionsRequest.cc
Normal file
40
vcs/src/model/GetBodyOptionsRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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/vcs/model/GetBodyOptionsRequest.h>
|
||||
|
||||
using AlibabaCloud::Vcs::Model::GetBodyOptionsRequest;
|
||||
|
||||
GetBodyOptionsRequest::GetBodyOptionsRequest() :
|
||||
RpcServiceRequest("vcs", "2020-05-15", "GetBodyOptions")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetBodyOptionsRequest::~GetBodyOptionsRequest()
|
||||
{}
|
||||
|
||||
std::string GetBodyOptionsRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void GetBodyOptionsRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
83
vcs/src/model/GetBodyOptionsResult.cc
Normal file
83
vcs/src/model/GetBodyOptionsResult.cc
Normal file
@@ -0,0 +1,83 @@
|
||||
/*
|
||||
* 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/vcs/model/GetBodyOptionsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vcs;
|
||||
using namespace AlibabaCloud::Vcs::Model;
|
||||
|
||||
GetBodyOptionsResult::GetBodyOptionsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetBodyOptionsResult::GetBodyOptionsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetBodyOptionsResult::~GetBodyOptionsResult()
|
||||
{}
|
||||
|
||||
void GetBodyOptionsResult::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["Key"].isNull())
|
||||
dataObject.key = valueDataDataItem["Key"].asString();
|
||||
if(!valueDataDataItem["Name"].isNull())
|
||||
dataObject.name = valueDataDataItem["Name"].asString();
|
||||
auto allOptionListNode = allDataNode["OptionList"]["OptionListItem"];
|
||||
for (auto allDataNodeOptionListOptionListItem : allOptionListNode)
|
||||
{
|
||||
DataItem::OptionListItem optionListObject;
|
||||
if(!allDataNodeOptionListOptionListItem["Key"].isNull())
|
||||
optionListObject.key = allDataNodeOptionListOptionListItem["Key"].asString();
|
||||
if(!allDataNodeOptionListOptionListItem["Name"].isNull())
|
||||
optionListObject.name = allDataNodeOptionListOptionListItem["Name"].asString();
|
||||
dataObject.optionList.push_back(optionListObject);
|
||||
}
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetBodyOptionsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<GetBodyOptionsResult::DataItem> GetBodyOptionsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetBodyOptionsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -49,14 +49,3 @@ void GetDeviceLiveUrlRequest::setGbId(const std::string& gbId)
|
||||
setBodyParameter("GbId", gbId);
|
||||
}
|
||||
|
||||
long GetDeviceLiveUrlRequest::getDeviceId()const
|
||||
{
|
||||
return deviceId_;
|
||||
}
|
||||
|
||||
void GetDeviceLiveUrlRequest::setDeviceId(long deviceId)
|
||||
{
|
||||
deviceId_ = deviceId;
|
||||
setBodyParameter("DeviceId", std::to_string(deviceId));
|
||||
}
|
||||
|
||||
|
||||
73
vcs/src/model/GetDeviceVideoUrlRequest.cc
Normal file
73
vcs/src/model/GetDeviceVideoUrlRequest.cc
Normal 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/vcs/model/GetDeviceVideoUrlRequest.h>
|
||||
|
||||
using AlibabaCloud::Vcs::Model::GetDeviceVideoUrlRequest;
|
||||
|
||||
GetDeviceVideoUrlRequest::GetDeviceVideoUrlRequest() :
|
||||
RpcServiceRequest("vcs", "2020-05-15", "GetDeviceVideoUrl")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetDeviceVideoUrlRequest::~GetDeviceVideoUrlRequest()
|
||||
{}
|
||||
|
||||
std::string GetDeviceVideoUrlRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void GetDeviceVideoUrlRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
std::string GetDeviceVideoUrlRequest::getGbId()const
|
||||
{
|
||||
return gbId_;
|
||||
}
|
||||
|
||||
void GetDeviceVideoUrlRequest::setGbId(const std::string& gbId)
|
||||
{
|
||||
gbId_ = gbId;
|
||||
setBodyParameter("GbId", gbId);
|
||||
}
|
||||
|
||||
long GetDeviceVideoUrlRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void GetDeviceVideoUrlRequest::setEndTime(long endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setBodyParameter("EndTime", std::to_string(endTime));
|
||||
}
|
||||
|
||||
long GetDeviceVideoUrlRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void GetDeviceVideoUrlRequest::setStartTime(long startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setBodyParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
65
vcs/src/model/GetDeviceVideoUrlResult.cc
Normal file
65
vcs/src/model/GetDeviceVideoUrlResult.cc
Normal 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/vcs/model/GetDeviceVideoUrlResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vcs;
|
||||
using namespace AlibabaCloud::Vcs::Model;
|
||||
|
||||
GetDeviceVideoUrlResult::GetDeviceVideoUrlResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetDeviceVideoUrlResult::GetDeviceVideoUrlResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetDeviceVideoUrlResult::~GetDeviceVideoUrlResult()
|
||||
{}
|
||||
|
||||
void GetDeviceVideoUrlResult::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["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Url"].isNull())
|
||||
url_ = value["Url"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetDeviceVideoUrlResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string GetDeviceVideoUrlResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
std::string GetDeviceVideoUrlResult::getUrl()const
|
||||
{
|
||||
return url_;
|
||||
}
|
||||
|
||||
40
vcs/src/model/GetFaceOptionsRequest.cc
Normal file
40
vcs/src/model/GetFaceOptionsRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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/vcs/model/GetFaceOptionsRequest.h>
|
||||
|
||||
using AlibabaCloud::Vcs::Model::GetFaceOptionsRequest;
|
||||
|
||||
GetFaceOptionsRequest::GetFaceOptionsRequest() :
|
||||
RpcServiceRequest("vcs", "2020-05-15", "GetFaceOptions")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetFaceOptionsRequest::~GetFaceOptionsRequest()
|
||||
{}
|
||||
|
||||
std::string GetFaceOptionsRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void GetFaceOptionsRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
83
vcs/src/model/GetFaceOptionsResult.cc
Normal file
83
vcs/src/model/GetFaceOptionsResult.cc
Normal file
@@ -0,0 +1,83 @@
|
||||
/*
|
||||
* 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/vcs/model/GetFaceOptionsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vcs;
|
||||
using namespace AlibabaCloud::Vcs::Model;
|
||||
|
||||
GetFaceOptionsResult::GetFaceOptionsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetFaceOptionsResult::GetFaceOptionsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetFaceOptionsResult::~GetFaceOptionsResult()
|
||||
{}
|
||||
|
||||
void GetFaceOptionsResult::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["Key"].isNull())
|
||||
dataObject.key = valueDataDataItem["Key"].asString();
|
||||
if(!valueDataDataItem["Name"].isNull())
|
||||
dataObject.name = valueDataDataItem["Name"].asString();
|
||||
auto allOptionListNode = allDataNode["OptionList"]["OptionListItem"];
|
||||
for (auto allDataNodeOptionListOptionListItem : allOptionListNode)
|
||||
{
|
||||
DataItem::OptionListItem optionListObject;
|
||||
if(!allDataNodeOptionListOptionListItem["Key"].isNull())
|
||||
optionListObject.key = allDataNodeOptionListOptionListItem["Key"].asString();
|
||||
if(!allDataNodeOptionListOptionListItem["Name"].isNull())
|
||||
optionListObject.name = allDataNodeOptionListOptionListItem["Name"].asString();
|
||||
dataObject.optionList.push_back(optionListObject);
|
||||
}
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetFaceOptionsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<GetFaceOptionsResult::DataItem> GetFaceOptionsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetFaceOptionsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
84
vcs/src/model/GetMonitorResultRequest.cc
Normal file
84
vcs/src/model/GetMonitorResultRequest.cc
Normal 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/vcs/model/GetMonitorResultRequest.h>
|
||||
|
||||
using AlibabaCloud::Vcs::Model::GetMonitorResultRequest;
|
||||
|
||||
GetMonitorResultRequest::GetMonitorResultRequest() :
|
||||
RpcServiceRequest("vcs", "2020-05-15", "GetMonitorResult")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetMonitorResultRequest::~GetMonitorResultRequest()
|
||||
{}
|
||||
|
||||
std::string GetMonitorResultRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void GetMonitorResultRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
long GetMonitorResultRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void GetMonitorResultRequest::setEndTime(long endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setBodyParameter("EndTime", std::to_string(endTime));
|
||||
}
|
||||
|
||||
long GetMonitorResultRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void GetMonitorResultRequest::setStartTime(long startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setBodyParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
std::string GetMonitorResultRequest::getMinRecordId()const
|
||||
{
|
||||
return minRecordId_;
|
||||
}
|
||||
|
||||
void GetMonitorResultRequest::setMinRecordId(const std::string& minRecordId)
|
||||
{
|
||||
minRecordId_ = minRecordId;
|
||||
setBodyParameter("MinRecordId", minRecordId);
|
||||
}
|
||||
|
||||
std::string GetMonitorResultRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void GetMonitorResultRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setBodyParameter("TaskId", taskId);
|
||||
}
|
||||
|
||||
120
vcs/src/model/GetMonitorResultResult.cc
Normal file
120
vcs/src/model/GetMonitorResultResult.cc
Normal file
@@ -0,0 +1,120 @@
|
||||
/*
|
||||
* 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/vcs/model/GetMonitorResultResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vcs;
|
||||
using namespace AlibabaCloud::Vcs::Model;
|
||||
|
||||
GetMonitorResultResult::GetMonitorResultResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetMonitorResultResult::GetMonitorResultResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetMonitorResultResult::~GetMonitorResultResult()
|
||||
{}
|
||||
|
||||
void GetMonitorResultResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRecordsNode = value["Records"]["RecordsItem"];
|
||||
for (auto valueRecordsRecordsItem : allRecordsNode)
|
||||
{
|
||||
RecordsItem recordsObject;
|
||||
if(!valueRecordsRecordsItem["GbId"].isNull())
|
||||
recordsObject.gbId = valueRecordsRecordsItem["GbId"].asString();
|
||||
if(!valueRecordsRecordsItem["ShotTime"].isNull())
|
||||
recordsObject.shotTime = valueRecordsRecordsItem["ShotTime"].asString();
|
||||
if(!valueRecordsRecordsItem["MonitorPicUrl"].isNull())
|
||||
recordsObject.monitorPicUrl = valueRecordsRecordsItem["MonitorPicUrl"].asString();
|
||||
if(!valueRecordsRecordsItem["ShotPicUrl"].isNull())
|
||||
recordsObject.shotPicUrl = valueRecordsRecordsItem["ShotPicUrl"].asString();
|
||||
records_.push_back(recordsObject);
|
||||
}
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["MaxRecordId"].isNull())
|
||||
data_.maxRecordId = dataNode["MaxRecordId"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Score"].isNull())
|
||||
score_ = value["Score"].asString();
|
||||
if(!value["LeftTopX"].isNull())
|
||||
leftTopX_ = value["LeftTopX"].asString();
|
||||
if(!value["LeftTopY"].isNull())
|
||||
leftTopY_ = value["LeftTopY"].asString();
|
||||
if(!value["RightBottomX"].isNull())
|
||||
rightBottomX_ = value["RightBottomX"].asString();
|
||||
if(!value["RightBottomY"].isNull())
|
||||
rightBottomY_ = value["RightBottomY"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetMonitorResultResult::getScore()const
|
||||
{
|
||||
return score_;
|
||||
}
|
||||
|
||||
std::string GetMonitorResultResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string GetMonitorResultResult::getRightBottomX()const
|
||||
{
|
||||
return rightBottomX_;
|
||||
}
|
||||
|
||||
std::string GetMonitorResultResult::getRightBottomY()const
|
||||
{
|
||||
return rightBottomY_;
|
||||
}
|
||||
|
||||
GetMonitorResultResult::Data GetMonitorResultResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetMonitorResultResult::getLeftTopY()const
|
||||
{
|
||||
return leftTopY_;
|
||||
}
|
||||
|
||||
std::vector<GetMonitorResultResult::RecordsItem> GetMonitorResultResult::getRecords()const
|
||||
{
|
||||
return records_;
|
||||
}
|
||||
|
||||
std::string GetMonitorResultResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
std::string GetMonitorResultResult::getLeftTopX()const
|
||||
{
|
||||
return leftTopX_;
|
||||
}
|
||||
|
||||
@@ -58,8 +58,8 @@ void ListDevicesResult::parse(const std::string &payload)
|
||||
recordObject.bitRate = dataNodeRecordsRecord["BitRate"].asString();
|
||||
if(!dataNodeRecordsRecord["CoverImageUrl"].isNull())
|
||||
recordObject.coverImageUrl = dataNodeRecordsRecord["CoverImageUrl"].asString();
|
||||
if(!dataNodeRecordsRecord["GBid"].isNull())
|
||||
recordObject.gBid = dataNodeRecordsRecord["GBid"].asString();
|
||||
if(!dataNodeRecordsRecord["GbId"].isNull())
|
||||
recordObject.gbId = dataNodeRecordsRecord["GbId"].asString();
|
||||
if(!dataNodeRecordsRecord["DeviceAddress"].isNull())
|
||||
recordObject.deviceAddress = dataNodeRecordsRecord["DeviceAddress"].asString();
|
||||
if(!dataNodeRecordsRecord["DeviceDirection"].isNull())
|
||||
|
||||
106
vcs/src/model/SearchBodyRequest.cc
Normal file
106
vcs/src/model/SearchBodyRequest.cc
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/vcs/model/SearchBodyRequest.h>
|
||||
|
||||
using AlibabaCloud::Vcs::Model::SearchBodyRequest;
|
||||
|
||||
SearchBodyRequest::SearchBodyRequest() :
|
||||
RpcServiceRequest("vcs", "2020-05-15", "SearchBody")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SearchBodyRequest::~SearchBodyRequest()
|
||||
{}
|
||||
|
||||
std::string SearchBodyRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void SearchBodyRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
std::string SearchBodyRequest::getGbId()const
|
||||
{
|
||||
return gbId_;
|
||||
}
|
||||
|
||||
void SearchBodyRequest::setGbId(const std::string& gbId)
|
||||
{
|
||||
gbId_ = gbId;
|
||||
setBodyParameter("GbId", gbId);
|
||||
}
|
||||
|
||||
long SearchBodyRequest::getStartTimeStamp()const
|
||||
{
|
||||
return startTimeStamp_;
|
||||
}
|
||||
|
||||
void SearchBodyRequest::setStartTimeStamp(long startTimeStamp)
|
||||
{
|
||||
startTimeStamp_ = startTimeStamp;
|
||||
setBodyParameter("StartTimeStamp", std::to_string(startTimeStamp));
|
||||
}
|
||||
|
||||
long SearchBodyRequest::getEndTimeStamp()const
|
||||
{
|
||||
return endTimeStamp_;
|
||||
}
|
||||
|
||||
void SearchBodyRequest::setEndTimeStamp(long endTimeStamp)
|
||||
{
|
||||
endTimeStamp_ = endTimeStamp;
|
||||
setBodyParameter("EndTimeStamp", std::to_string(endTimeStamp));
|
||||
}
|
||||
|
||||
int SearchBodyRequest::getPageNo()const
|
||||
{
|
||||
return pageNo_;
|
||||
}
|
||||
|
||||
void SearchBodyRequest::setPageNo(int pageNo)
|
||||
{
|
||||
pageNo_ = pageNo;
|
||||
setBodyParameter("PageNo", std::to_string(pageNo));
|
||||
}
|
||||
|
||||
int SearchBodyRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void SearchBodyRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string SearchBodyRequest::getOptionList()const
|
||||
{
|
||||
return optionList_;
|
||||
}
|
||||
|
||||
void SearchBodyRequest::setOptionList(const std::string& optionList)
|
||||
{
|
||||
optionList_ = optionList;
|
||||
setBodyParameter("OptionList", optionList);
|
||||
}
|
||||
|
||||
94
vcs/src/model/SearchBodyResult.cc
Normal file
94
vcs/src/model/SearchBodyResult.cc
Normal file
@@ -0,0 +1,94 @@
|
||||
/*
|
||||
* 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/vcs/model/SearchBodyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vcs;
|
||||
using namespace AlibabaCloud::Vcs::Model;
|
||||
|
||||
SearchBodyResult::SearchBodyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SearchBodyResult::SearchBodyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SearchBodyResult::~SearchBodyResult()
|
||||
{}
|
||||
|
||||
void SearchBodyResult::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["PageNo"].isNull())
|
||||
data_.pageNo = std::stoi(dataNode["PageNo"].asString());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
if(!dataNode["TotalCount"].isNull())
|
||||
data_.totalCount = std::stoi(dataNode["TotalCount"].asString());
|
||||
if(!dataNode["TotalPage"].isNull())
|
||||
data_.totalPage = std::stoi(dataNode["TotalPage"].asString());
|
||||
auto allRecordsNode = dataNode["Records"]["Record"];
|
||||
for (auto dataNodeRecordsRecord : allRecordsNode)
|
||||
{
|
||||
Data::Record recordObject;
|
||||
if(!dataNodeRecordsRecord["GbId"].isNull())
|
||||
recordObject.gbId = dataNodeRecordsRecord["GbId"].asString();
|
||||
if(!dataNodeRecordsRecord["ImageUrl"].isNull())
|
||||
recordObject.imageUrl = dataNodeRecordsRecord["ImageUrl"].asString();
|
||||
if(!dataNodeRecordsRecord["LeftTopX"].isNull())
|
||||
recordObject.leftTopX = std::stof(dataNodeRecordsRecord["LeftTopX"].asString());
|
||||
if(!dataNodeRecordsRecord["LeftTopY"].isNull())
|
||||
recordObject.leftTopY = std::stof(dataNodeRecordsRecord["LeftTopY"].asString());
|
||||
if(!dataNodeRecordsRecord["RightBottomX"].isNull())
|
||||
recordObject.rightBottomX = std::stof(dataNodeRecordsRecord["RightBottomX"].asString());
|
||||
if(!dataNodeRecordsRecord["RightBottomY"].isNull())
|
||||
recordObject.rightBottomY = std::stof(dataNodeRecordsRecord["RightBottomY"].asString());
|
||||
if(!dataNodeRecordsRecord["Score"].isNull())
|
||||
recordObject.score = std::stof(dataNodeRecordsRecord["Score"].asString());
|
||||
if(!dataNodeRecordsRecord["TargetImageUrl"].isNull())
|
||||
recordObject.targetImageUrl = dataNodeRecordsRecord["TargetImageUrl"].asString();
|
||||
data_.records.push_back(recordObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string SearchBodyResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
SearchBodyResult::Data SearchBodyResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string SearchBodyResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
40
vcs/src/model/StopMonitorRequest.cc
Normal file
40
vcs/src/model/StopMonitorRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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/vcs/model/StopMonitorRequest.h>
|
||||
|
||||
using AlibabaCloud::Vcs::Model::StopMonitorRequest;
|
||||
|
||||
StopMonitorRequest::StopMonitorRequest() :
|
||||
RpcServiceRequest("vcs", "2020-05-15", "StopMonitor")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
StopMonitorRequest::~StopMonitorRequest()
|
||||
{}
|
||||
|
||||
std::string StopMonitorRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void StopMonitorRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setBodyParameter("TaskId", taskId);
|
||||
}
|
||||
|
||||
65
vcs/src/model/StopMonitorResult.cc
Normal file
65
vcs/src/model/StopMonitorResult.cc
Normal 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/vcs/model/StopMonitorResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vcs;
|
||||
using namespace AlibabaCloud::Vcs::Model;
|
||||
|
||||
StopMonitorResult::StopMonitorResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
StopMonitorResult::StopMonitorResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
StopMonitorResult::~StopMonitorResult()
|
||||
{}
|
||||
|
||||
void StopMonitorResult::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["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string StopMonitorResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string StopMonitorResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string StopMonitorResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -60,6 +60,17 @@ void UpdateDeviceRequest::setGbId(const std::string& gbId)
|
||||
setBodyParameter("GbId", gbId);
|
||||
}
|
||||
|
||||
std::string UpdateDeviceRequest::getBitRate()const
|
||||
{
|
||||
return bitRate_;
|
||||
}
|
||||
|
||||
void UpdateDeviceRequest::setBitRate(const std::string& bitRate)
|
||||
{
|
||||
bitRate_ = bitRate;
|
||||
setBodyParameter("BitRate", bitRate);
|
||||
}
|
||||
|
||||
std::string UpdateDeviceRequest::getDeviceDirection()const
|
||||
{
|
||||
return deviceDirection_;
|
||||
@@ -71,17 +82,6 @@ void UpdateDeviceRequest::setDeviceDirection(const std::string& deviceDirection)
|
||||
setBodyParameter("DeviceDirection", deviceDirection);
|
||||
}
|
||||
|
||||
std::string UpdateDeviceRequest::getDeviceRate()const
|
||||
{
|
||||
return deviceRate_;
|
||||
}
|
||||
|
||||
void UpdateDeviceRequest::setDeviceRate(const std::string& deviceRate)
|
||||
{
|
||||
deviceRate_ = deviceRate;
|
||||
setBodyParameter("DeviceRate", deviceRate);
|
||||
}
|
||||
|
||||
std::string UpdateDeviceRequest::getDeviceAddress()const
|
||||
{
|
||||
return deviceAddress_;
|
||||
|
||||
150
vcs/src/model/UpdateMonitorRequest.cc
Normal file
150
vcs/src/model/UpdateMonitorRequest.cc
Normal file
@@ -0,0 +1,150 @@
|
||||
/*
|
||||
* 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/vcs/model/UpdateMonitorRequest.h>
|
||||
|
||||
using AlibabaCloud::Vcs::Model::UpdateMonitorRequest;
|
||||
|
||||
UpdateMonitorRequest::UpdateMonitorRequest() :
|
||||
RpcServiceRequest("vcs", "2020-05-15", "UpdateMonitor")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateMonitorRequest::~UpdateMonitorRequest()
|
||||
{}
|
||||
|
||||
std::string UpdateMonitorRequest::getDeviceOperateType()const
|
||||
{
|
||||
return deviceOperateType_;
|
||||
}
|
||||
|
||||
void UpdateMonitorRequest::setDeviceOperateType(const std::string& deviceOperateType)
|
||||
{
|
||||
deviceOperateType_ = deviceOperateType;
|
||||
setBodyParameter("DeviceOperateType", deviceOperateType);
|
||||
}
|
||||
|
||||
std::string UpdateMonitorRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void UpdateMonitorRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
std::string UpdateMonitorRequest::getPicList()const
|
||||
{
|
||||
return picList_;
|
||||
}
|
||||
|
||||
void UpdateMonitorRequest::setPicList(const std::string& picList)
|
||||
{
|
||||
picList_ = picList;
|
||||
setBodyParameter("PicList", picList);
|
||||
}
|
||||
|
||||
std::string UpdateMonitorRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void UpdateMonitorRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setBodyParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string UpdateMonitorRequest::getRuleName()const
|
||||
{
|
||||
return ruleName_;
|
||||
}
|
||||
|
||||
void UpdateMonitorRequest::setRuleName(const std::string& ruleName)
|
||||
{
|
||||
ruleName_ = ruleName;
|
||||
setBodyParameter("RuleName", ruleName);
|
||||
}
|
||||
|
||||
std::string UpdateMonitorRequest::getPicOperateType()const
|
||||
{
|
||||
return picOperateType_;
|
||||
}
|
||||
|
||||
void UpdateMonitorRequest::setPicOperateType(const std::string& picOperateType)
|
||||
{
|
||||
picOperateType_ = picOperateType;
|
||||
setBodyParameter("PicOperateType", picOperateType);
|
||||
}
|
||||
|
||||
std::string UpdateMonitorRequest::getAttributeName()const
|
||||
{
|
||||
return attributeName_;
|
||||
}
|
||||
|
||||
void UpdateMonitorRequest::setAttributeName(const std::string& attributeName)
|
||||
{
|
||||
attributeName_ = attributeName;
|
||||
setBodyParameter("AttributeName", attributeName);
|
||||
}
|
||||
|
||||
std::string UpdateMonitorRequest::getAttributeValueList()const
|
||||
{
|
||||
return attributeValueList_;
|
||||
}
|
||||
|
||||
void UpdateMonitorRequest::setAttributeValueList(const std::string& attributeValueList)
|
||||
{
|
||||
attributeValueList_ = attributeValueList;
|
||||
setBodyParameter("AttributeValueList", attributeValueList);
|
||||
}
|
||||
|
||||
std::string UpdateMonitorRequest::getDeviceList()const
|
||||
{
|
||||
return deviceList_;
|
||||
}
|
||||
|
||||
void UpdateMonitorRequest::setDeviceList(const std::string& deviceList)
|
||||
{
|
||||
deviceList_ = deviceList;
|
||||
setBodyParameter("DeviceList", deviceList);
|
||||
}
|
||||
|
||||
std::string UpdateMonitorRequest::getAttributeOperateType()const
|
||||
{
|
||||
return attributeOperateType_;
|
||||
}
|
||||
|
||||
void UpdateMonitorRequest::setAttributeOperateType(const std::string& attributeOperateType)
|
||||
{
|
||||
attributeOperateType_ = attributeOperateType;
|
||||
setBodyParameter("AttributeOperateType", attributeOperateType);
|
||||
}
|
||||
|
||||
std::string UpdateMonitorRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void UpdateMonitorRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setBodyParameter("TaskId", taskId);
|
||||
}
|
||||
|
||||
65
vcs/src/model/UpdateMonitorResult.cc
Normal file
65
vcs/src/model/UpdateMonitorResult.cc
Normal 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/vcs/model/UpdateMonitorResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vcs;
|
||||
using namespace AlibabaCloud::Vcs::Model;
|
||||
|
||||
UpdateMonitorResult::UpdateMonitorResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateMonitorResult::UpdateMonitorResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateMonitorResult::~UpdateMonitorResult()
|
||||
{}
|
||||
|
||||
void UpdateMonitorResult::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["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string UpdateMonitorResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string UpdateMonitorResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string UpdateMonitorResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user