Add video summarization related API.
This commit is contained in:
73
vcs/src/model/AddDataSourceRequest.cc
Normal file
73
vcs/src/model/AddDataSourceRequest.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/AddDataSourceRequest.h>
|
||||
|
||||
using AlibabaCloud::Vcs::Model::AddDataSourceRequest;
|
||||
|
||||
AddDataSourceRequest::AddDataSourceRequest() :
|
||||
RpcServiceRequest("vcs", "2020-05-15", "AddDataSource")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddDataSourceRequest::~AddDataSourceRequest()
|
||||
{}
|
||||
|
||||
std::string AddDataSourceRequest::getDataSourceType()const
|
||||
{
|
||||
return dataSourceType_;
|
||||
}
|
||||
|
||||
void AddDataSourceRequest::setDataSourceType(const std::string& dataSourceType)
|
||||
{
|
||||
dataSourceType_ = dataSourceType;
|
||||
setBodyParameter("DataSourceType", dataSourceType);
|
||||
}
|
||||
|
||||
std::string AddDataSourceRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void AddDataSourceRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
std::string AddDataSourceRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void AddDataSourceRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setBodyParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string AddDataSourceRequest::getDataSourceName()const
|
||||
{
|
||||
return dataSourceName_;
|
||||
}
|
||||
|
||||
void AddDataSourceRequest::setDataSourceName(const std::string& dataSourceName)
|
||||
{
|
||||
dataSourceName_ = dataSourceName;
|
||||
setBodyParameter("DataSourceName", dataSourceName);
|
||||
}
|
||||
|
||||
70
vcs/src/model/AddDataSourceResult.cc
Normal file
70
vcs/src/model/AddDataSourceResult.cc
Normal file
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* 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/AddDataSourceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vcs;
|
||||
using namespace AlibabaCloud::Vcs::Model;
|
||||
|
||||
AddDataSourceResult::AddDataSourceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddDataSourceResult::AddDataSourceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddDataSourceResult::~AddDataSourceResult()
|
||||
{}
|
||||
|
||||
void AddDataSourceResult::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["DataSourceId"].isNull())
|
||||
data_.dataSourceId = dataNode["DataSourceId"].asString();
|
||||
if(!dataNode["KafkaTopic"].isNull())
|
||||
data_.kafkaTopic = dataNode["KafkaTopic"].asString();
|
||||
if(!dataNode["OssPath"].isNull())
|
||||
data_.ossPath = dataNode["OssPath"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string AddDataSourceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
AddDataSourceResult::Data AddDataSourceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string AddDataSourceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
117
vcs/src/model/CreateVideoComposeTaskRequest.cc
Normal file
117
vcs/src/model/CreateVideoComposeTaskRequest.cc
Normal 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/vcs/model/CreateVideoComposeTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Vcs::Model::CreateVideoComposeTaskRequest;
|
||||
|
||||
CreateVideoComposeTaskRequest::CreateVideoComposeTaskRequest() :
|
||||
RpcServiceRequest("vcs", "2020-05-15", "CreateVideoComposeTask")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateVideoComposeTaskRequest::~CreateVideoComposeTaskRequest()
|
||||
{}
|
||||
|
||||
std::string CreateVideoComposeTaskRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void CreateVideoComposeTaskRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
std::string CreateVideoComposeTaskRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void CreateVideoComposeTaskRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setBodyParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
std::string CreateVideoComposeTaskRequest::getPicUrlList()const
|
||||
{
|
||||
return picUrlList_;
|
||||
}
|
||||
|
||||
void CreateVideoComposeTaskRequest::setPicUrlList(const std::string& picUrlList)
|
||||
{
|
||||
picUrlList_ = picUrlList;
|
||||
setBodyParameter("PicUrlList", picUrlList);
|
||||
}
|
||||
|
||||
std::string CreateVideoComposeTaskRequest::getAudioUrl()const
|
||||
{
|
||||
return audioUrl_;
|
||||
}
|
||||
|
||||
void CreateVideoComposeTaskRequest::setAudioUrl(const std::string& audioUrl)
|
||||
{
|
||||
audioUrl_ = audioUrl;
|
||||
setBodyParameter("AudioUrl", audioUrl);
|
||||
}
|
||||
|
||||
std::string CreateVideoComposeTaskRequest::getBucketName()const
|
||||
{
|
||||
return bucketName_;
|
||||
}
|
||||
|
||||
void CreateVideoComposeTaskRequest::setBucketName(const std::string& bucketName)
|
||||
{
|
||||
bucketName_ = bucketName;
|
||||
setBodyParameter("BucketName", bucketName);
|
||||
}
|
||||
|
||||
std::string CreateVideoComposeTaskRequest::getImageParameters()const
|
||||
{
|
||||
return imageParameters_;
|
||||
}
|
||||
|
||||
void CreateVideoComposeTaskRequest::setImageParameters(const std::string& imageParameters)
|
||||
{
|
||||
imageParameters_ = imageParameters;
|
||||
setBodyParameter("ImageParameters", imageParameters);
|
||||
}
|
||||
|
||||
std::string CreateVideoComposeTaskRequest::getVideoRate()const
|
||||
{
|
||||
return videoRate_;
|
||||
}
|
||||
|
||||
void CreateVideoComposeTaskRequest::setVideoRate(const std::string& videoRate)
|
||||
{
|
||||
videoRate_ = videoRate;
|
||||
setBodyParameter("VideoRate", videoRate);
|
||||
}
|
||||
|
||||
std::string CreateVideoComposeTaskRequest::getVideoFormat()const
|
||||
{
|
||||
return videoFormat_;
|
||||
}
|
||||
|
||||
void CreateVideoComposeTaskRequest::setVideoFormat(const std::string& videoFormat)
|
||||
{
|
||||
videoFormat_ = videoFormat;
|
||||
setBodyParameter("VideoFormat", videoFormat);
|
||||
}
|
||||
|
||||
68
vcs/src/model/CreateVideoComposeTaskResult.cc
Normal file
68
vcs/src/model/CreateVideoComposeTaskResult.cc
Normal file
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* 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/CreateVideoComposeTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vcs;
|
||||
using namespace AlibabaCloud::Vcs::Model;
|
||||
|
||||
CreateVideoComposeTaskResult::CreateVideoComposeTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateVideoComposeTaskResult::CreateVideoComposeTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateVideoComposeTaskResult::~CreateVideoComposeTaskResult()
|
||||
{}
|
||||
|
||||
void CreateVideoComposeTaskResult::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["DomainName"].isNull())
|
||||
data_.domainName = std::stoi(dataNode["DomainName"].asString());
|
||||
if(!dataNode["BucketName"].isNull())
|
||||
data_.bucketName = std::stoi(dataNode["BucketName"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateVideoComposeTaskResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
CreateVideoComposeTaskResult::Data CreateVideoComposeTaskResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateVideoComposeTaskResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
95
vcs/src/model/CreateVideoSummaryTaskRequest.cc
Normal file
95
vcs/src/model/CreateVideoSummaryTaskRequest.cc
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* 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/CreateVideoSummaryTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Vcs::Model::CreateVideoSummaryTaskRequest;
|
||||
|
||||
CreateVideoSummaryTaskRequest::CreateVideoSummaryTaskRequest() :
|
||||
RpcServiceRequest("vcs", "2020-05-15", "CreateVideoSummaryTask")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateVideoSummaryTaskRequest::~CreateVideoSummaryTaskRequest()
|
||||
{}
|
||||
|
||||
std::string CreateVideoSummaryTaskRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void CreateVideoSummaryTaskRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
std::string CreateVideoSummaryTaskRequest::getLiveVideoSummary()const
|
||||
{
|
||||
return liveVideoSummary_;
|
||||
}
|
||||
|
||||
void CreateVideoSummaryTaskRequest::setLiveVideoSummary(const std::string& liveVideoSummary)
|
||||
{
|
||||
liveVideoSummary_ = liveVideoSummary;
|
||||
setBodyParameter("LiveVideoSummary", liveVideoSummary);
|
||||
}
|
||||
|
||||
std::string CreateVideoSummaryTaskRequest::getStartTimeStamp()const
|
||||
{
|
||||
return startTimeStamp_;
|
||||
}
|
||||
|
||||
void CreateVideoSummaryTaskRequest::setStartTimeStamp(const std::string& startTimeStamp)
|
||||
{
|
||||
startTimeStamp_ = startTimeStamp;
|
||||
setBodyParameter("StartTimeStamp", startTimeStamp);
|
||||
}
|
||||
|
||||
std::string CreateVideoSummaryTaskRequest::getDeviceId()const
|
||||
{
|
||||
return deviceId_;
|
||||
}
|
||||
|
||||
void CreateVideoSummaryTaskRequest::setDeviceId(const std::string& deviceId)
|
||||
{
|
||||
deviceId_ = deviceId;
|
||||
setBodyParameter("DeviceId", deviceId);
|
||||
}
|
||||
|
||||
std::string CreateVideoSummaryTaskRequest::getEndTimeStamp()const
|
||||
{
|
||||
return endTimeStamp_;
|
||||
}
|
||||
|
||||
void CreateVideoSummaryTaskRequest::setEndTimeStamp(const std::string& endTimeStamp)
|
||||
{
|
||||
endTimeStamp_ = endTimeStamp;
|
||||
setBodyParameter("EndTimeStamp", endTimeStamp);
|
||||
}
|
||||
|
||||
std::string CreateVideoSummaryTaskRequest::getOptionList()const
|
||||
{
|
||||
return optionList_;
|
||||
}
|
||||
|
||||
void CreateVideoSummaryTaskRequest::setOptionList(const std::string& optionList)
|
||||
{
|
||||
optionList_ = optionList;
|
||||
setBodyParameter("OptionList", optionList);
|
||||
}
|
||||
|
||||
65
vcs/src/model/CreateVideoSummaryTaskResult.cc
Normal file
65
vcs/src/model/CreateVideoSummaryTaskResult.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/CreateVideoSummaryTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vcs;
|
||||
using namespace AlibabaCloud::Vcs::Model;
|
||||
|
||||
CreateVideoSummaryTaskResult::CreateVideoSummaryTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateVideoSummaryTaskResult::CreateVideoSummaryTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateVideoSummaryTaskResult::~CreateVideoSummaryTaskResult()
|
||||
{}
|
||||
|
||||
void CreateVideoSummaryTaskResult::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 CreateVideoSummaryTaskResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string CreateVideoSummaryTaskResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateVideoSummaryTaskResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
51
vcs/src/model/DeleteDataSourceRequest.cc
Normal file
51
vcs/src/model/DeleteDataSourceRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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/DeleteDataSourceRequest.h>
|
||||
|
||||
using AlibabaCloud::Vcs::Model::DeleteDataSourceRequest;
|
||||
|
||||
DeleteDataSourceRequest::DeleteDataSourceRequest() :
|
||||
RpcServiceRequest("vcs", "2020-05-15", "DeleteDataSource")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteDataSourceRequest::~DeleteDataSourceRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteDataSourceRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void DeleteDataSourceRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
std::string DeleteDataSourceRequest::getDataSourceId()const
|
||||
{
|
||||
return dataSourceId_;
|
||||
}
|
||||
|
||||
void DeleteDataSourceRequest::setDataSourceId(const std::string& dataSourceId)
|
||||
{
|
||||
dataSourceId_ = dataSourceId;
|
||||
setBodyParameter("DataSourceId", dataSourceId);
|
||||
}
|
||||
|
||||
65
vcs/src/model/DeleteDataSourceResult.cc
Normal file
65
vcs/src/model/DeleteDataSourceResult.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/DeleteDataSourceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vcs;
|
||||
using namespace AlibabaCloud::Vcs::Model;
|
||||
|
||||
DeleteDataSourceResult::DeleteDataSourceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteDataSourceResult::DeleteDataSourceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteDataSourceResult::~DeleteDataSourceResult()
|
||||
{}
|
||||
|
||||
void DeleteDataSourceResult::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 DeleteDataSourceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteDataSourceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DeleteDataSourceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
51
vcs/src/model/DeleteVideoSummaryTaskRequest.cc
Normal file
51
vcs/src/model/DeleteVideoSummaryTaskRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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/DeleteVideoSummaryTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Vcs::Model::DeleteVideoSummaryTaskRequest;
|
||||
|
||||
DeleteVideoSummaryTaskRequest::DeleteVideoSummaryTaskRequest() :
|
||||
RpcServiceRequest("vcs", "2020-05-15", "DeleteVideoSummaryTask")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteVideoSummaryTaskRequest::~DeleteVideoSummaryTaskRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteVideoSummaryTaskRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void DeleteVideoSummaryTaskRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
std::string DeleteVideoSummaryTaskRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void DeleteVideoSummaryTaskRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setBodyParameter("TaskId", taskId);
|
||||
}
|
||||
|
||||
65
vcs/src/model/DeleteVideoSummaryTaskResult.cc
Normal file
65
vcs/src/model/DeleteVideoSummaryTaskResult.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/DeleteVideoSummaryTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vcs;
|
||||
using namespace AlibabaCloud::Vcs::Model;
|
||||
|
||||
DeleteVideoSummaryTaskResult::DeleteVideoSummaryTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteVideoSummaryTaskResult::DeleteVideoSummaryTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteVideoSummaryTaskResult::~DeleteVideoSummaryTaskResult()
|
||||
{}
|
||||
|
||||
void DeleteVideoSummaryTaskResult::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 DeleteVideoSummaryTaskResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteVideoSummaryTaskResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DeleteVideoSummaryTaskResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
51
vcs/src/model/GetVideoComposeResultRequest.cc
Normal file
51
vcs/src/model/GetVideoComposeResultRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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/GetVideoComposeResultRequest.h>
|
||||
|
||||
using AlibabaCloud::Vcs::Model::GetVideoComposeResultRequest;
|
||||
|
||||
GetVideoComposeResultRequest::GetVideoComposeResultRequest() :
|
||||
RpcServiceRequest("vcs", "2020-05-15", "GetVideoComposeResult")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetVideoComposeResultRequest::~GetVideoComposeResultRequest()
|
||||
{}
|
||||
|
||||
std::string GetVideoComposeResultRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void GetVideoComposeResultRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
std::string GetVideoComposeResultRequest::getTaskRequestId()const
|
||||
{
|
||||
return taskRequestId_;
|
||||
}
|
||||
|
||||
void GetVideoComposeResultRequest::setTaskRequestId(const std::string& taskRequestId)
|
||||
{
|
||||
taskRequestId_ = taskRequestId;
|
||||
setBodyParameter("TaskRequestId", taskRequestId);
|
||||
}
|
||||
|
||||
58
vcs/src/model/GetVideoComposeResultResult.cc
Normal file
58
vcs/src/model/GetVideoComposeResultResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* 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/GetVideoComposeResultResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vcs;
|
||||
using namespace AlibabaCloud::Vcs::Model;
|
||||
|
||||
GetVideoComposeResultResult::GetVideoComposeResultResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetVideoComposeResultResult::GetVideoComposeResultResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetVideoComposeResultResult::~GetVideoComposeResultResult()
|
||||
{}
|
||||
|
||||
void GetVideoComposeResultResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["VideoUrl"].isNull())
|
||||
videoUrl_ = value["VideoUrl"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetVideoComposeResultResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string GetVideoComposeResultResult::getVideoUrl()const
|
||||
{
|
||||
return videoUrl_;
|
||||
}
|
||||
|
||||
51
vcs/src/model/GetVideoSummaryTaskResultRequest.cc
Normal file
51
vcs/src/model/GetVideoSummaryTaskResultRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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/GetVideoSummaryTaskResultRequest.h>
|
||||
|
||||
using AlibabaCloud::Vcs::Model::GetVideoSummaryTaskResultRequest;
|
||||
|
||||
GetVideoSummaryTaskResultRequest::GetVideoSummaryTaskResultRequest() :
|
||||
RpcServiceRequest("vcs", "2020-05-15", "GetVideoSummaryTaskResult")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetVideoSummaryTaskResultRequest::~GetVideoSummaryTaskResultRequest()
|
||||
{}
|
||||
|
||||
std::string GetVideoSummaryTaskResultRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void GetVideoSummaryTaskResultRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
std::string GetVideoSummaryTaskResultRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void GetVideoSummaryTaskResultRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setBodyParameter("TaskId", taskId);
|
||||
}
|
||||
|
||||
65
vcs/src/model/GetVideoSummaryTaskResultResult.cc
Normal file
65
vcs/src/model/GetVideoSummaryTaskResultResult.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/GetVideoSummaryTaskResultResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vcs;
|
||||
using namespace AlibabaCloud::Vcs::Model;
|
||||
|
||||
GetVideoSummaryTaskResultResult::GetVideoSummaryTaskResultResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetVideoSummaryTaskResultResult::GetVideoSummaryTaskResultResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetVideoSummaryTaskResultResult::~GetVideoSummaryTaskResultResult()
|
||||
{}
|
||||
|
||||
void GetVideoSummaryTaskResultResult::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 GetVideoSummaryTaskResultResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string GetVideoSummaryTaskResultResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetVideoSummaryTaskResultResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
106
vcs/src/model/ListEventAlgorithmResultsRequest.cc
Normal file
106
vcs/src/model/ListEventAlgorithmResultsRequest.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/ListEventAlgorithmResultsRequest.h>
|
||||
|
||||
using AlibabaCloud::Vcs::Model::ListEventAlgorithmResultsRequest;
|
||||
|
||||
ListEventAlgorithmResultsRequest::ListEventAlgorithmResultsRequest() :
|
||||
RpcServiceRequest("vcs", "2020-05-15", "ListEventAlgorithmResults")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListEventAlgorithmResultsRequest::~ListEventAlgorithmResultsRequest()
|
||||
{}
|
||||
|
||||
std::string ListEventAlgorithmResultsRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void ListEventAlgorithmResultsRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
std::string ListEventAlgorithmResultsRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void ListEventAlgorithmResultsRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setBodyParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string ListEventAlgorithmResultsRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void ListEventAlgorithmResultsRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setBodyParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string ListEventAlgorithmResultsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListEventAlgorithmResultsRequest::setPageNumber(const std::string& pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setBodyParameter("PageNumber", pageNumber);
|
||||
}
|
||||
|
||||
std::string ListEventAlgorithmResultsRequest::getDataSourceId()const
|
||||
{
|
||||
return dataSourceId_;
|
||||
}
|
||||
|
||||
void ListEventAlgorithmResultsRequest::setDataSourceId(const std::string& dataSourceId)
|
||||
{
|
||||
dataSourceId_ = dataSourceId;
|
||||
setBodyParameter("DataSourceId", dataSourceId);
|
||||
}
|
||||
|
||||
std::string ListEventAlgorithmResultsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListEventAlgorithmResultsRequest::setPageSize(const std::string& pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter("PageSize", pageSize);
|
||||
}
|
||||
|
||||
std::string ListEventAlgorithmResultsRequest::getEventType()const
|
||||
{
|
||||
return eventType_;
|
||||
}
|
||||
|
||||
void ListEventAlgorithmResultsRequest::setEventType(const std::string& eventType)
|
||||
{
|
||||
eventType_ = eventType;
|
||||
setBodyParameter("EventType", eventType);
|
||||
}
|
||||
|
||||
94
vcs/src/model/ListEventAlgorithmResultsResult.cc
Normal file
94
vcs/src/model/ListEventAlgorithmResultsResult.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/ListEventAlgorithmResultsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vcs;
|
||||
using namespace AlibabaCloud::Vcs::Model;
|
||||
|
||||
ListEventAlgorithmResultsResult::ListEventAlgorithmResultsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListEventAlgorithmResultsResult::ListEventAlgorithmResultsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListEventAlgorithmResultsResult::~ListEventAlgorithmResultsResult()
|
||||
{}
|
||||
|
||||
void ListEventAlgorithmResultsResult::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["PageNumber"].isNull())
|
||||
data_.pageNumber = std::stoi(dataNode["PageNumber"].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"]["RecordsItem"];
|
||||
for (auto dataNodeRecordsRecordsItem : allRecordsNode)
|
||||
{
|
||||
Data::RecordsItem recordsItemObject;
|
||||
if(!dataNodeRecordsRecordsItem["CapStyle"].isNull())
|
||||
recordsItemObject.capStyle = dataNodeRecordsRecordsItem["CapStyle"].asString();
|
||||
if(!dataNodeRecordsRecordsItem["CorpId"].isNull())
|
||||
recordsItemObject.corpId = dataNodeRecordsRecordsItem["CorpId"].asString();
|
||||
if(!dataNodeRecordsRecordsItem["DataSourceId"].isNull())
|
||||
recordsItemObject.dataSourceId = dataNodeRecordsRecordsItem["DataSourceId"].asString();
|
||||
if(!dataNodeRecordsRecordsItem["EventType"].isNull())
|
||||
recordsItemObject.eventType = dataNodeRecordsRecordsItem["EventType"].asString();
|
||||
if(!dataNodeRecordsRecordsItem["FaceCount"].isNull())
|
||||
recordsItemObject.faceCount = dataNodeRecordsRecordsItem["FaceCount"].asString();
|
||||
if(!dataNodeRecordsRecordsItem["PicUrlPath"].isNull())
|
||||
recordsItemObject.picUrlPath = dataNodeRecordsRecordsItem["PicUrlPath"].asString();
|
||||
if(!dataNodeRecordsRecordsItem["ShotTime"].isNull())
|
||||
recordsItemObject.shotTime = dataNodeRecordsRecordsItem["ShotTime"].asString();
|
||||
if(!dataNodeRecordsRecordsItem["TargetPicUrlPath"].isNull())
|
||||
recordsItemObject.targetPicUrlPath = dataNodeRecordsRecordsItem["TargetPicUrlPath"].asString();
|
||||
data_.records.push_back(recordsItemObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListEventAlgorithmResultsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
ListEventAlgorithmResultsResult::Data ListEventAlgorithmResultsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListEventAlgorithmResultsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -74,6 +74,10 @@ void ListMotorAlgorithmResultsResult::parse(const std::string &payload)
|
||||
recordsItemObject.shotTime = dataNodeRecordsRecordsItem["ShotTime"].asString();
|
||||
if(!dataNodeRecordsRecordsItem["TargetPicUrlPath"].isNull())
|
||||
recordsItemObject.targetPicUrlPath = dataNodeRecordsRecordsItem["TargetPicUrlPath"].asString();
|
||||
if(!dataNodeRecordsRecordsItem["MotorStyle"].isNull())
|
||||
recordsItemObject.motorStyle = dataNodeRecordsRecordsItem["MotorStyle"].asString();
|
||||
if(!dataNodeRecordsRecordsItem["MotorModel"].isNull())
|
||||
recordsItemObject.motorModel = dataNodeRecordsRecordsItem["MotorModel"].asString();
|
||||
data_.records.push_back(recordsItemObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
|
||||
117
vcs/src/model/UploadFileRequest.cc
Normal file
117
vcs/src/model/UploadFileRequest.cc
Normal 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/vcs/model/UploadFileRequest.h>
|
||||
|
||||
using AlibabaCloud::Vcs::Model::UploadFileRequest;
|
||||
|
||||
UploadFileRequest::UploadFileRequest() :
|
||||
RpcServiceRequest("vcs", "2020-05-15", "UploadFile")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UploadFileRequest::~UploadFileRequest()
|
||||
{}
|
||||
|
||||
std::string UploadFileRequest::getFileType()const
|
||||
{
|
||||
return fileType_;
|
||||
}
|
||||
|
||||
void UploadFileRequest::setFileType(const std::string& fileType)
|
||||
{
|
||||
fileType_ = fileType;
|
||||
setBodyParameter("FileType", fileType);
|
||||
}
|
||||
|
||||
std::string UploadFileRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void UploadFileRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
std::string UploadFileRequest::getFileAliasName()const
|
||||
{
|
||||
return fileAliasName_;
|
||||
}
|
||||
|
||||
void UploadFileRequest::setFileAliasName(const std::string& fileAliasName)
|
||||
{
|
||||
fileAliasName_ = fileAliasName;
|
||||
setBodyParameter("FileAliasName", fileAliasName);
|
||||
}
|
||||
|
||||
std::string UploadFileRequest::getFileName()const
|
||||
{
|
||||
return fileName_;
|
||||
}
|
||||
|
||||
void UploadFileRequest::setFileName(const std::string& fileName)
|
||||
{
|
||||
fileName_ = fileName;
|
||||
setBodyParameter("FileName", fileName);
|
||||
}
|
||||
|
||||
std::string UploadFileRequest::getFilePath()const
|
||||
{
|
||||
return filePath_;
|
||||
}
|
||||
|
||||
void UploadFileRequest::setFilePath(const std::string& filePath)
|
||||
{
|
||||
filePath_ = filePath;
|
||||
setBodyParameter("FilePath", filePath);
|
||||
}
|
||||
|
||||
std::string UploadFileRequest::getFileContent()const
|
||||
{
|
||||
return fileContent_;
|
||||
}
|
||||
|
||||
void UploadFileRequest::setFileContent(const std::string& fileContent)
|
||||
{
|
||||
fileContent_ = fileContent;
|
||||
setBodyParameter("FileContent", fileContent);
|
||||
}
|
||||
|
||||
std::string UploadFileRequest::getDataSourceId()const
|
||||
{
|
||||
return dataSourceId_;
|
||||
}
|
||||
|
||||
void UploadFileRequest::setDataSourceId(const std::string& dataSourceId)
|
||||
{
|
||||
dataSourceId_ = dataSourceId;
|
||||
setBodyParameter("DataSourceId", dataSourceId);
|
||||
}
|
||||
|
||||
std::string UploadFileRequest::getMD5()const
|
||||
{
|
||||
return mD5_;
|
||||
}
|
||||
|
||||
void UploadFileRequest::setMD5(const std::string& mD5)
|
||||
{
|
||||
mD5_ = mD5;
|
||||
setBodyParameter("MD5", mD5);
|
||||
}
|
||||
|
||||
65
vcs/src/model/UploadFileResult.cc
Normal file
65
vcs/src/model/UploadFileResult.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/UploadFileResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vcs;
|
||||
using namespace AlibabaCloud::Vcs::Model;
|
||||
|
||||
UploadFileResult::UploadFileResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UploadFileResult::UploadFileResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UploadFileResult::~UploadFileResult()
|
||||
{}
|
||||
|
||||
void UploadFileResult::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 UploadFileResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string UploadFileResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string UploadFileResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user