Add api called SubmitAvatarVideoJob, which render virtual human videos.
This commit is contained in:
@@ -2211,6 +2211,42 @@ ICEClient::GetCategoriesOutcomeCallable ICEClient::getCategoriesCallable(const G
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ICEClient::GetContentAnalyzeConfigOutcome ICEClient::getContentAnalyzeConfig(const GetContentAnalyzeConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetContentAnalyzeConfigOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetContentAnalyzeConfigOutcome(GetContentAnalyzeConfigResult(outcome.result()));
|
||||
else
|
||||
return GetContentAnalyzeConfigOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ICEClient::getContentAnalyzeConfigAsync(const GetContentAnalyzeConfigRequest& request, const GetContentAnalyzeConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getContentAnalyzeConfig(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ICEClient::GetContentAnalyzeConfigOutcomeCallable ICEClient::getContentAnalyzeConfigCallable(const GetContentAnalyzeConfigRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetContentAnalyzeConfigOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getContentAnalyzeConfig(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ICEClient::GetCustomTemplateOutcome ICEClient::getCustomTemplate(const GetCustomTemplateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -4083,6 +4119,42 @@ ICEClient::ListSmartJobsOutcomeCallable ICEClient::listSmartJobsCallable(const L
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ICEClient::ListSmartSysAvatarModelsOutcome ICEClient::listSmartSysAvatarModels(const ListSmartSysAvatarModelsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListSmartSysAvatarModelsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListSmartSysAvatarModelsOutcome(ListSmartSysAvatarModelsResult(outcome.result()));
|
||||
else
|
||||
return ListSmartSysAvatarModelsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ICEClient::listSmartSysAvatarModelsAsync(const ListSmartSysAvatarModelsRequest& request, const ListSmartSysAvatarModelsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listSmartSysAvatarModels(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ICEClient::ListSmartSysAvatarModelsOutcomeCallable ICEClient::listSmartSysAvatarModelsCallable(const ListSmartSysAvatarModelsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListSmartSysAvatarModelsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listSmartSysAvatarModels(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ICEClient::ListSnapshotJobsOutcome ICEClient::listSnapshotJobs(const ListSnapshotJobsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -4587,6 +4659,78 @@ ICEClient::SearchMediaOutcomeCallable ICEClient::searchMediaCallable(const Searc
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ICEClient::SearchMediaByFaceOutcome ICEClient::searchMediaByFace(const SearchMediaByFaceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SearchMediaByFaceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SearchMediaByFaceOutcome(SearchMediaByFaceResult(outcome.result()));
|
||||
else
|
||||
return SearchMediaByFaceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ICEClient::searchMediaByFaceAsync(const SearchMediaByFaceRequest& request, const SearchMediaByFaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, searchMediaByFace(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ICEClient::SearchMediaByFaceOutcomeCallable ICEClient::searchMediaByFaceCallable(const SearchMediaByFaceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SearchMediaByFaceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->searchMediaByFace(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ICEClient::SearchMediaClipByFaceOutcome ICEClient::searchMediaClipByFace(const SearchMediaClipByFaceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SearchMediaClipByFaceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SearchMediaClipByFaceOutcome(SearchMediaClipByFaceResult(outcome.result()));
|
||||
else
|
||||
return SearchMediaClipByFaceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ICEClient::searchMediaClipByFaceAsync(const SearchMediaClipByFaceRequest& request, const SearchMediaClipByFaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, searchMediaClipByFace(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ICEClient::SearchMediaClipByFaceOutcomeCallable ICEClient::searchMediaClipByFaceCallable(const SearchMediaClipByFaceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SearchMediaClipByFaceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->searchMediaClipByFace(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ICEClient::SearchPublicMediaInfoOutcome ICEClient::searchPublicMediaInfo(const SearchPublicMediaInfoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -4695,6 +4839,42 @@ ICEClient::SendLiveTranscodeJobCommandOutcomeCallable ICEClient::sendLiveTransco
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ICEClient::SetContentAnalyzeConfigOutcome ICEClient::setContentAnalyzeConfig(const SetContentAnalyzeConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SetContentAnalyzeConfigOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SetContentAnalyzeConfigOutcome(SetContentAnalyzeConfigResult(outcome.result()));
|
||||
else
|
||||
return SetContentAnalyzeConfigOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ICEClient::setContentAnalyzeConfigAsync(const SetContentAnalyzeConfigRequest& request, const SetContentAnalyzeConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, setContentAnalyzeConfig(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ICEClient::SetContentAnalyzeConfigOutcomeCallable ICEClient::setContentAnalyzeConfigCallable(const SetContentAnalyzeConfigRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SetContentAnalyzeConfigOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->setContentAnalyzeConfig(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ICEClient::SetDefaultCustomTemplateOutcome ICEClient::setDefaultCustomTemplate(const SetDefaultCustomTemplateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -4911,6 +5091,42 @@ ICEClient::SubmitAudioProduceJobOutcomeCallable ICEClient::submitAudioProduceJob
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ICEClient::SubmitAvatarVideoJobOutcome ICEClient::submitAvatarVideoJob(const SubmitAvatarVideoJobRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SubmitAvatarVideoJobOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SubmitAvatarVideoJobOutcome(SubmitAvatarVideoJobResult(outcome.result()));
|
||||
else
|
||||
return SubmitAvatarVideoJobOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ICEClient::submitAvatarVideoJobAsync(const SubmitAvatarVideoJobRequest& request, const SubmitAvatarVideoJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, submitAvatarVideoJob(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ICEClient::SubmitAvatarVideoJobOutcomeCallable ICEClient::submitAvatarVideoJobCallable(const SubmitAvatarVideoJobRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SubmitAvatarVideoJobOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->submitAvatarVideoJob(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ICEClient::SubmitDNAJobOutcome ICEClient::submitDNAJob(const SubmitDNAJobRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
27
ice/src/model/GetContentAnalyzeConfigRequest.cc
Normal file
27
ice/src/model/GetContentAnalyzeConfigRequest.cc
Normal file
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
* 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/ice/model/GetContentAnalyzeConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::ICE::Model::GetContentAnalyzeConfigRequest;
|
||||
|
||||
GetContentAnalyzeConfigRequest::GetContentAnalyzeConfigRequest()
|
||||
: RpcServiceRequest("ice", "2020-11-09", "GetContentAnalyzeConfig") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetContentAnalyzeConfigRequest::~GetContentAnalyzeConfigRequest() {}
|
||||
|
||||
56
ice/src/model/GetContentAnalyzeConfigResult.cc
Normal file
56
ice/src/model/GetContentAnalyzeConfigResult.cc
Normal file
@@ -0,0 +1,56 @@
|
||||
/*
|
||||
* 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/ice/model/GetContentAnalyzeConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ICE;
|
||||
using namespace AlibabaCloud::ICE::Model;
|
||||
|
||||
GetContentAnalyzeConfigResult::GetContentAnalyzeConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetContentAnalyzeConfigResult::GetContentAnalyzeConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetContentAnalyzeConfigResult::~GetContentAnalyzeConfigResult()
|
||||
{}
|
||||
|
||||
void GetContentAnalyzeConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto contentAnalyzeConfigNode = value["ContentAnalyzeConfig"];
|
||||
if(!contentAnalyzeConfigNode["Auto"].isNull())
|
||||
contentAnalyzeConfig_._auto = contentAnalyzeConfigNode["Auto"].asString() == "true";
|
||||
if(!contentAnalyzeConfigNode["SaveType"].isNull())
|
||||
contentAnalyzeConfig_.saveType = contentAnalyzeConfigNode["SaveType"].asString();
|
||||
if(!contentAnalyzeConfigNode["TemplateId"].isNull())
|
||||
contentAnalyzeConfig_.templateId = contentAnalyzeConfigNode["TemplateId"].asString();
|
||||
|
||||
}
|
||||
|
||||
GetContentAnalyzeConfigResult::ContentAnalyzeConfig GetContentAnalyzeConfigResult::getContentAnalyzeConfig()const
|
||||
{
|
||||
return contentAnalyzeConfig_;
|
||||
}
|
||||
|
||||
45
ice/src/model/ListSmartSysAvatarModelsRequest.cc
Normal file
45
ice/src/model/ListSmartSysAvatarModelsRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* 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/ice/model/ListSmartSysAvatarModelsRequest.h>
|
||||
|
||||
using AlibabaCloud::ICE::Model::ListSmartSysAvatarModelsRequest;
|
||||
|
||||
ListSmartSysAvatarModelsRequest::ListSmartSysAvatarModelsRequest()
|
||||
: RpcServiceRequest("ice", "2020-11-09", "ListSmartSysAvatarModels") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListSmartSysAvatarModelsRequest::~ListSmartSysAvatarModelsRequest() {}
|
||||
|
||||
long ListSmartSysAvatarModelsRequest::getPageNo() const {
|
||||
return pageNo_;
|
||||
}
|
||||
|
||||
void ListSmartSysAvatarModelsRequest::setPageNo(long pageNo) {
|
||||
pageNo_ = pageNo;
|
||||
setParameter(std::string("PageNo"), std::to_string(pageNo));
|
||||
}
|
||||
|
||||
long ListSmartSysAvatarModelsRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListSmartSysAvatarModelsRequest::setPageSize(long pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
70
ice/src/model/ListSmartSysAvatarModelsResult.cc
Normal file
70
ice/src/model/ListSmartSysAvatarModelsResult.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/ice/model/ListSmartSysAvatarModelsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ICE;
|
||||
using namespace AlibabaCloud::ICE::Model;
|
||||
|
||||
ListSmartSysAvatarModelsResult::ListSmartSysAvatarModelsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListSmartSysAvatarModelsResult::ListSmartSysAvatarModelsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListSmartSysAvatarModelsResult::~ListSmartSysAvatarModelsResult()
|
||||
{}
|
||||
|
||||
void ListSmartSysAvatarModelsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allSmartSysAvatarModelListNode = value["SmartSysAvatarModelList"]["SmartSysAvatarModelListItem"];
|
||||
for (auto valueSmartSysAvatarModelListSmartSysAvatarModelListItem : allSmartSysAvatarModelListNode)
|
||||
{
|
||||
SmartSysAvatarModelListItem smartSysAvatarModelListObject;
|
||||
if(!valueSmartSysAvatarModelListSmartSysAvatarModelListItem["AvatarName"].isNull())
|
||||
smartSysAvatarModelListObject.avatarName = valueSmartSysAvatarModelListSmartSysAvatarModelListItem["AvatarName"].asString();
|
||||
if(!valueSmartSysAvatarModelListSmartSysAvatarModelListItem["AvatarId"].isNull())
|
||||
smartSysAvatarModelListObject.avatarId = valueSmartSysAvatarModelListSmartSysAvatarModelListItem["AvatarId"].asString();
|
||||
if(!valueSmartSysAvatarModelListSmartSysAvatarModelListItem["CoverUrl"].isNull())
|
||||
smartSysAvatarModelListObject.coverUrl = valueSmartSysAvatarModelListSmartSysAvatarModelListItem["CoverUrl"].asString();
|
||||
if(!valueSmartSysAvatarModelListSmartSysAvatarModelListItem["VideoUrl"].isNull())
|
||||
smartSysAvatarModelListObject.videoUrl = valueSmartSysAvatarModelListSmartSysAvatarModelListItem["VideoUrl"].asString();
|
||||
smartSysAvatarModelList_.push_back(smartSysAvatarModelListObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
int ListSmartSysAvatarModelsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::vector<ListSmartSysAvatarModelsResult::SmartSysAvatarModelListItem> ListSmartSysAvatarModelsResult::getSmartSysAvatarModelList()const
|
||||
{
|
||||
return smartSysAvatarModelList_;
|
||||
}
|
||||
|
||||
90
ice/src/model/SearchMediaByFaceRequest.cc
Normal file
90
ice/src/model/SearchMediaByFaceRequest.cc
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ice/model/SearchMediaByFaceRequest.h>
|
||||
|
||||
using AlibabaCloud::ICE::Model::SearchMediaByFaceRequest;
|
||||
|
||||
SearchMediaByFaceRequest::SearchMediaByFaceRequest()
|
||||
: RpcServiceRequest("ice", "2020-11-09", "SearchMediaByFace") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SearchMediaByFaceRequest::~SearchMediaByFaceRequest() {}
|
||||
|
||||
std::string SearchMediaByFaceRequest::getEntityId() const {
|
||||
return entityId_;
|
||||
}
|
||||
|
||||
void SearchMediaByFaceRequest::setEntityId(const std::string &entityId) {
|
||||
entityId_ = entityId;
|
||||
setParameter(std::string("EntityId"), entityId);
|
||||
}
|
||||
|
||||
std::string SearchMediaByFaceRequest::getBiz() const {
|
||||
return biz_;
|
||||
}
|
||||
|
||||
void SearchMediaByFaceRequest::setBiz(const std::string &biz) {
|
||||
biz_ = biz;
|
||||
setParameter(std::string("Biz"), biz);
|
||||
}
|
||||
|
||||
int SearchMediaByFaceRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void SearchMediaByFaceRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string SearchMediaByFaceRequest::getPersonImageUrl() const {
|
||||
return personImageUrl_;
|
||||
}
|
||||
|
||||
void SearchMediaByFaceRequest::setPersonImageUrl(const std::string &personImageUrl) {
|
||||
personImageUrl_ = personImageUrl;
|
||||
setParameter(std::string("PersonImageUrl"), personImageUrl);
|
||||
}
|
||||
|
||||
std::string SearchMediaByFaceRequest::getFaceSearchToken() const {
|
||||
return faceSearchToken_;
|
||||
}
|
||||
|
||||
void SearchMediaByFaceRequest::setFaceSearchToken(const std::string &faceSearchToken) {
|
||||
faceSearchToken_ = faceSearchToken;
|
||||
setParameter(std::string("FaceSearchToken"), faceSearchToken);
|
||||
}
|
||||
|
||||
int SearchMediaByFaceRequest::getPageNo() const {
|
||||
return pageNo_;
|
||||
}
|
||||
|
||||
void SearchMediaByFaceRequest::setPageNo(int pageNo) {
|
||||
pageNo_ = pageNo;
|
||||
setParameter(std::string("PageNo"), std::to_string(pageNo));
|
||||
}
|
||||
|
||||
std::string SearchMediaByFaceRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void SearchMediaByFaceRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
78
ice/src/model/SearchMediaByFaceResult.cc
Normal file
78
ice/src/model/SearchMediaByFaceResult.cc
Normal file
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ice/model/SearchMediaByFaceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ICE;
|
||||
using namespace AlibabaCloud::ICE::Model;
|
||||
|
||||
SearchMediaByFaceResult::SearchMediaByFaceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SearchMediaByFaceResult::SearchMediaByFaceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SearchMediaByFaceResult::~SearchMediaByFaceResult()
|
||||
{}
|
||||
|
||||
void SearchMediaByFaceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allMediaInfoListNode = value["MediaInfoList"]["MediaInfo"];
|
||||
for (auto valueMediaInfoListMediaInfo : allMediaInfoListNode)
|
||||
{
|
||||
MediaInfo mediaInfoListObject;
|
||||
if(!valueMediaInfoListMediaInfo["MediaId"].isNull())
|
||||
mediaInfoListObject.mediaId = valueMediaInfoListMediaInfo["MediaId"].asString();
|
||||
mediaInfoList_.push_back(mediaInfoListObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Total"].isNull())
|
||||
total_ = std::stol(value["Total"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<SearchMediaByFaceResult::MediaInfo> SearchMediaByFaceResult::getMediaInfoList()const
|
||||
{
|
||||
return mediaInfoList_;
|
||||
}
|
||||
|
||||
long SearchMediaByFaceResult::getTotal()const
|
||||
{
|
||||
return total_;
|
||||
}
|
||||
|
||||
std::string SearchMediaByFaceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
std::string SearchMediaByFaceResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
90
ice/src/model/SearchMediaClipByFaceRequest.cc
Normal file
90
ice/src/model/SearchMediaClipByFaceRequest.cc
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ice/model/SearchMediaClipByFaceRequest.h>
|
||||
|
||||
using AlibabaCloud::ICE::Model::SearchMediaClipByFaceRequest;
|
||||
|
||||
SearchMediaClipByFaceRequest::SearchMediaClipByFaceRequest()
|
||||
: RpcServiceRequest("ice", "2020-11-09", "SearchMediaClipByFace") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SearchMediaClipByFaceRequest::~SearchMediaClipByFaceRequest() {}
|
||||
|
||||
std::string SearchMediaClipByFaceRequest::getEntityId() const {
|
||||
return entityId_;
|
||||
}
|
||||
|
||||
void SearchMediaClipByFaceRequest::setEntityId(const std::string &entityId) {
|
||||
entityId_ = entityId;
|
||||
setParameter(std::string("EntityId"), entityId);
|
||||
}
|
||||
|
||||
std::string SearchMediaClipByFaceRequest::getBiz() const {
|
||||
return biz_;
|
||||
}
|
||||
|
||||
void SearchMediaClipByFaceRequest::setBiz(const std::string &biz) {
|
||||
biz_ = biz;
|
||||
setParameter(std::string("Biz"), biz);
|
||||
}
|
||||
|
||||
int SearchMediaClipByFaceRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void SearchMediaClipByFaceRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string SearchMediaClipByFaceRequest::getMediaId() const {
|
||||
return mediaId_;
|
||||
}
|
||||
|
||||
void SearchMediaClipByFaceRequest::setMediaId(const std::string &mediaId) {
|
||||
mediaId_ = mediaId;
|
||||
setParameter(std::string("MediaId"), mediaId);
|
||||
}
|
||||
|
||||
std::string SearchMediaClipByFaceRequest::getFaceSearchToken() const {
|
||||
return faceSearchToken_;
|
||||
}
|
||||
|
||||
void SearchMediaClipByFaceRequest::setFaceSearchToken(const std::string &faceSearchToken) {
|
||||
faceSearchToken_ = faceSearchToken;
|
||||
setParameter(std::string("FaceSearchToken"), faceSearchToken);
|
||||
}
|
||||
|
||||
int SearchMediaClipByFaceRequest::getPageNo() const {
|
||||
return pageNo_;
|
||||
}
|
||||
|
||||
void SearchMediaClipByFaceRequest::setPageNo(int pageNo) {
|
||||
pageNo_ = pageNo;
|
||||
setParameter(std::string("PageNo"), std::to_string(pageNo));
|
||||
}
|
||||
|
||||
std::string SearchMediaClipByFaceRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void SearchMediaClipByFaceRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
111
ice/src/model/SearchMediaClipByFaceResult.cc
Normal file
111
ice/src/model/SearchMediaClipByFaceResult.cc
Normal file
@@ -0,0 +1,111 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ice/model/SearchMediaClipByFaceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ICE;
|
||||
using namespace AlibabaCloud::ICE::Model;
|
||||
|
||||
SearchMediaClipByFaceResult::SearchMediaClipByFaceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SearchMediaClipByFaceResult::SearchMediaClipByFaceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SearchMediaClipByFaceResult::~SearchMediaClipByFaceResult()
|
||||
{}
|
||||
|
||||
void SearchMediaClipByFaceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allMediaClipListNode = value["MediaClipList"]["MediaClip"];
|
||||
for (auto valueMediaClipListMediaClip : allMediaClipListNode)
|
||||
{
|
||||
MediaClip mediaClipListObject;
|
||||
if(!valueMediaClipListMediaClip["Score"].isNull())
|
||||
mediaClipListObject.score = std::stof(valueMediaClipListMediaClip["Score"].asString());
|
||||
if(!valueMediaClipListMediaClip["EntityId"].isNull())
|
||||
mediaClipListObject.entityId = valueMediaClipListMediaClip["EntityId"].asString();
|
||||
if(!valueMediaClipListMediaClip["LabelName"].isNull())
|
||||
mediaClipListObject.labelName = valueMediaClipListMediaClip["LabelName"].asString();
|
||||
if(!valueMediaClipListMediaClip["Category"].isNull())
|
||||
mediaClipListObject.category = valueMediaClipListMediaClip["Category"].asString();
|
||||
auto allOccurrencesInfosNode = valueMediaClipListMediaClip["OccurrencesInfos"]["OccurrencesInfo"];
|
||||
for (auto valueMediaClipListMediaClipOccurrencesInfosOccurrencesInfo : allOccurrencesInfosNode)
|
||||
{
|
||||
MediaClip::OccurrencesInfo occurrencesInfosObject;
|
||||
if(!valueMediaClipListMediaClipOccurrencesInfosOccurrencesInfo["StartTime"].isNull())
|
||||
occurrencesInfosObject.startTime = std::stof(valueMediaClipListMediaClipOccurrencesInfosOccurrencesInfo["StartTime"].asString());
|
||||
if(!valueMediaClipListMediaClipOccurrencesInfosOccurrencesInfo["EndTime"].isNull())
|
||||
occurrencesInfosObject.endTime = std::stof(valueMediaClipListMediaClipOccurrencesInfosOccurrencesInfo["EndTime"].asString());
|
||||
auto allTrackDataNode = valueMediaClipListMediaClipOccurrencesInfosOccurrencesInfo["TrackData"]["TrackDataItem"];
|
||||
for (auto valueMediaClipListMediaClipOccurrencesInfosOccurrencesInfoTrackDataTrackDataItem : allTrackDataNode)
|
||||
{
|
||||
MediaClip::OccurrencesInfo::TrackDataItem trackDataObject;
|
||||
if(!valueMediaClipListMediaClipOccurrencesInfosOccurrencesInfoTrackDataTrackDataItem["Timestamp"].isNull())
|
||||
trackDataObject.timestamp = std::stof(valueMediaClipListMediaClipOccurrencesInfosOccurrencesInfoTrackDataTrackDataItem["Timestamp"].asString());
|
||||
auto boxPositionNode = value["BoxPosition"];
|
||||
if(!boxPositionNode["X"].isNull())
|
||||
trackDataObject.boxPosition.x = std::stoi(boxPositionNode["X"].asString());
|
||||
if(!boxPositionNode["Y"].isNull())
|
||||
trackDataObject.boxPosition.y = std::stoi(boxPositionNode["Y"].asString());
|
||||
if(!boxPositionNode["W"].isNull())
|
||||
trackDataObject.boxPosition.w = std::stoi(boxPositionNode["W"].asString());
|
||||
if(!boxPositionNode["H"].isNull())
|
||||
trackDataObject.boxPosition.h = std::stoi(boxPositionNode["H"].asString());
|
||||
occurrencesInfosObject.trackData.push_back(trackDataObject);
|
||||
}
|
||||
mediaClipListObject.occurrencesInfos.push_back(occurrencesInfosObject);
|
||||
}
|
||||
mediaClipList_.push_back(mediaClipListObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Total"].isNull())
|
||||
total_ = std::stol(value["Total"].asString());
|
||||
|
||||
}
|
||||
|
||||
long SearchMediaClipByFaceResult::getTotal()const
|
||||
{
|
||||
return total_;
|
||||
}
|
||||
|
||||
std::string SearchMediaClipByFaceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
std::string SearchMediaClipByFaceResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::vector<SearchMediaClipByFaceResult::MediaClip> SearchMediaClipByFaceResult::getMediaClipList()const
|
||||
{
|
||||
return mediaClipList_;
|
||||
}
|
||||
|
||||
54
ice/src/model/SetContentAnalyzeConfigRequest.cc
Normal file
54
ice/src/model/SetContentAnalyzeConfigRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ice/model/SetContentAnalyzeConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::ICE::Model::SetContentAnalyzeConfigRequest;
|
||||
|
||||
SetContentAnalyzeConfigRequest::SetContentAnalyzeConfigRequest()
|
||||
: RpcServiceRequest("ice", "2020-11-09", "SetContentAnalyzeConfig") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SetContentAnalyzeConfigRequest::~SetContentAnalyzeConfigRequest() {}
|
||||
|
||||
bool SetContentAnalyzeConfigRequest::get_Auto() const {
|
||||
return _auto_;
|
||||
}
|
||||
|
||||
void SetContentAnalyzeConfigRequest::set_Auto(bool _auto) {
|
||||
_auto_ = _auto;
|
||||
setParameter(std::string("Auto"), _auto ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string SetContentAnalyzeConfigRequest::getTemplateId() const {
|
||||
return templateId_;
|
||||
}
|
||||
|
||||
void SetContentAnalyzeConfigRequest::setTemplateId(const std::string &templateId) {
|
||||
templateId_ = templateId;
|
||||
setParameter(std::string("TemplateId"), templateId);
|
||||
}
|
||||
|
||||
std::string SetContentAnalyzeConfigRequest::getSaveType() const {
|
||||
return saveType_;
|
||||
}
|
||||
|
||||
void SetContentAnalyzeConfigRequest::setSaveType(const std::string &saveType) {
|
||||
saveType_ = saveType;
|
||||
setParameter(std::string("SaveType"), saveType);
|
||||
}
|
||||
|
||||
51
ice/src/model/SetContentAnalyzeConfigResult.cc
Normal file
51
ice/src/model/SetContentAnalyzeConfigResult.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/ice/model/SetContentAnalyzeConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ICE;
|
||||
using namespace AlibabaCloud::ICE::Model;
|
||||
|
||||
SetContentAnalyzeConfigResult::SetContentAnalyzeConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SetContentAnalyzeConfigResult::SetContentAnalyzeConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SetContentAnalyzeConfigResult::~SetContentAnalyzeConfigResult()
|
||||
{}
|
||||
|
||||
void SetContentAnalyzeConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool SetContentAnalyzeConfigResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
81
ice/src/model/SubmitAvatarVideoJobRequest.cc
Normal file
81
ice/src/model/SubmitAvatarVideoJobRequest.cc
Normal file
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ice/model/SubmitAvatarVideoJobRequest.h>
|
||||
|
||||
using AlibabaCloud::ICE::Model::SubmitAvatarVideoJobRequest;
|
||||
|
||||
SubmitAvatarVideoJobRequest::SubmitAvatarVideoJobRequest()
|
||||
: RpcServiceRequest("ice", "2020-11-09", "SubmitAvatarVideoJob") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SubmitAvatarVideoJobRequest::~SubmitAvatarVideoJobRequest() {}
|
||||
|
||||
std::string SubmitAvatarVideoJobRequest::getOutputConfig() const {
|
||||
return outputConfig_;
|
||||
}
|
||||
|
||||
void SubmitAvatarVideoJobRequest::setOutputConfig(const std::string &outputConfig) {
|
||||
outputConfig_ = outputConfig;
|
||||
setParameter(std::string("OutputConfig"), outputConfig);
|
||||
}
|
||||
|
||||
std::string SubmitAvatarVideoJobRequest::getInputConfig() const {
|
||||
return inputConfig_;
|
||||
}
|
||||
|
||||
void SubmitAvatarVideoJobRequest::setInputConfig(const std::string &inputConfig) {
|
||||
inputConfig_ = inputConfig;
|
||||
setParameter(std::string("InputConfig"), inputConfig);
|
||||
}
|
||||
|
||||
std::string SubmitAvatarVideoJobRequest::getEditingConfig() const {
|
||||
return editingConfig_;
|
||||
}
|
||||
|
||||
void SubmitAvatarVideoJobRequest::setEditingConfig(const std::string &editingConfig) {
|
||||
editingConfig_ = editingConfig;
|
||||
setParameter(std::string("EditingConfig"), editingConfig);
|
||||
}
|
||||
|
||||
std::string SubmitAvatarVideoJobRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void SubmitAvatarVideoJobRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string SubmitAvatarVideoJobRequest::getTitle() const {
|
||||
return title_;
|
||||
}
|
||||
|
||||
void SubmitAvatarVideoJobRequest::setTitle(const std::string &title) {
|
||||
title_ = title;
|
||||
setParameter(std::string("Title"), title);
|
||||
}
|
||||
|
||||
std::string SubmitAvatarVideoJobRequest::getUserData() const {
|
||||
return userData_;
|
||||
}
|
||||
|
||||
void SubmitAvatarVideoJobRequest::setUserData(const std::string &userData) {
|
||||
userData_ = userData;
|
||||
setParameter(std::string("UserData"), userData);
|
||||
}
|
||||
|
||||
58
ice/src/model/SubmitAvatarVideoJobResult.cc
Normal file
58
ice/src/model/SubmitAvatarVideoJobResult.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/ice/model/SubmitAvatarVideoJobResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ICE;
|
||||
using namespace AlibabaCloud::ICE::Model;
|
||||
|
||||
SubmitAvatarVideoJobResult::SubmitAvatarVideoJobResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SubmitAvatarVideoJobResult::SubmitAvatarVideoJobResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SubmitAvatarVideoJobResult::~SubmitAvatarVideoJobResult()
|
||||
{}
|
||||
|
||||
void SubmitAvatarVideoJobResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["JobId"].isNull())
|
||||
jobId_ = value["JobId"].asString();
|
||||
if(!value["MediaId"].isNull())
|
||||
mediaId_ = value["MediaId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string SubmitAvatarVideoJobResult::getMediaId()const
|
||||
{
|
||||
return mediaId_;
|
||||
}
|
||||
|
||||
std::string SubmitAvatarVideoJobResult::getJobId()const
|
||||
{
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user