Supported Video Abstract for IMM.
This commit is contained in:
@@ -555,6 +555,42 @@ ImmClient::CreateTagSetOutcomeCallable ImmClient::createTagSetCallable(const Cre
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImmClient::CreateVideoAbstractTaskOutcome ImmClient::createVideoAbstractTask(const CreateVideoAbstractTaskRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateVideoAbstractTaskOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateVideoAbstractTaskOutcome(CreateVideoAbstractTaskResult(outcome.result()));
|
||||
else
|
||||
return CreateVideoAbstractTaskOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ImmClient::createVideoAbstractTaskAsync(const CreateVideoAbstractTaskRequest& request, const CreateVideoAbstractTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createVideoAbstractTask(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ImmClient::CreateVideoAbstractTaskOutcomeCallable ImmClient::createVideoAbstractTaskCallable(const CreateVideoAbstractTaskRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateVideoAbstractTaskOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createVideoAbstractTask(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImmClient::CreateVideoAnalyseTaskOutcome ImmClient::createVideoAnalyseTask(const CreateVideoAnalyseTaskRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
115
imm/src/model/CreateVideoAbstractTaskRequest.cc
Normal file
115
imm/src/model/CreateVideoAbstractTaskRequest.cc
Normal file
@@ -0,0 +1,115 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/imm/model/CreateVideoAbstractTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Imm::Model::CreateVideoAbstractTaskRequest;
|
||||
|
||||
CreateVideoAbstractTaskRequest::CreateVideoAbstractTaskRequest() :
|
||||
RpcServiceRequest("imm", "2017-09-06", "CreateVideoAbstractTask")
|
||||
{}
|
||||
|
||||
CreateVideoAbstractTaskRequest::~CreateVideoAbstractTaskRequest()
|
||||
{}
|
||||
|
||||
std::string CreateVideoAbstractTaskRequest::getTargetVideoUri()const
|
||||
{
|
||||
return targetVideoUri_;
|
||||
}
|
||||
|
||||
void CreateVideoAbstractTaskRequest::setTargetVideoUri(const std::string& targetVideoUri)
|
||||
{
|
||||
targetVideoUri_ = targetVideoUri;
|
||||
setCoreParameter("TargetVideoUri", targetVideoUri);
|
||||
}
|
||||
|
||||
std::string CreateVideoAbstractTaskRequest::getProject()const
|
||||
{
|
||||
return project_;
|
||||
}
|
||||
|
||||
void CreateVideoAbstractTaskRequest::setProject(const std::string& project)
|
||||
{
|
||||
project_ = project;
|
||||
setCoreParameter("Project", project);
|
||||
}
|
||||
|
||||
std::string CreateVideoAbstractTaskRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateVideoAbstractTaskRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateVideoAbstractTaskRequest::getNotifyEndpoint()const
|
||||
{
|
||||
return notifyEndpoint_;
|
||||
}
|
||||
|
||||
void CreateVideoAbstractTaskRequest::setNotifyEndpoint(const std::string& notifyEndpoint)
|
||||
{
|
||||
notifyEndpoint_ = notifyEndpoint;
|
||||
setCoreParameter("NotifyEndpoint", notifyEndpoint);
|
||||
}
|
||||
|
||||
std::string CreateVideoAbstractTaskRequest::getNotifyTopicName()const
|
||||
{
|
||||
return notifyTopicName_;
|
||||
}
|
||||
|
||||
void CreateVideoAbstractTaskRequest::setNotifyTopicName(const std::string& notifyTopicName)
|
||||
{
|
||||
notifyTopicName_ = notifyTopicName;
|
||||
setCoreParameter("NotifyTopicName", notifyTopicName);
|
||||
}
|
||||
|
||||
std::string CreateVideoAbstractTaskRequest::getVideoUri()const
|
||||
{
|
||||
return videoUri_;
|
||||
}
|
||||
|
||||
void CreateVideoAbstractTaskRequest::setVideoUri(const std::string& videoUri)
|
||||
{
|
||||
videoUri_ = videoUri;
|
||||
setCoreParameter("VideoUri", videoUri);
|
||||
}
|
||||
|
||||
int CreateVideoAbstractTaskRequest::getAbstractLength()const
|
||||
{
|
||||
return abstractLength_;
|
||||
}
|
||||
|
||||
void CreateVideoAbstractTaskRequest::setAbstractLength(int abstractLength)
|
||||
{
|
||||
abstractLength_ = abstractLength;
|
||||
setCoreParameter("AbstractLength", std::to_string(abstractLength));
|
||||
}
|
||||
|
||||
std::string CreateVideoAbstractTaskRequest::getTargetClipsUri()const
|
||||
{
|
||||
return targetClipsUri_;
|
||||
}
|
||||
|
||||
void CreateVideoAbstractTaskRequest::setTargetClipsUri(const std::string& targetClipsUri)
|
||||
{
|
||||
targetClipsUri_ = targetClipsUri;
|
||||
setCoreParameter("TargetClipsUri", targetClipsUri);
|
||||
}
|
||||
|
||||
58
imm/src/model/CreateVideoAbstractTaskResult.cc
Normal file
58
imm/src/model/CreateVideoAbstractTaskResult.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/imm/model/CreateVideoAbstractTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Imm;
|
||||
using namespace AlibabaCloud::Imm::Model;
|
||||
|
||||
CreateVideoAbstractTaskResult::CreateVideoAbstractTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateVideoAbstractTaskResult::CreateVideoAbstractTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateVideoAbstractTaskResult::~CreateVideoAbstractTaskResult()
|
||||
{}
|
||||
|
||||
void CreateVideoAbstractTaskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = value["TaskId"].asString();
|
||||
if(!value["TaskType"].isNull())
|
||||
taskType_ = value["TaskType"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateVideoAbstractTaskResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
std::string CreateVideoAbstractTaskResult::getTaskType()const
|
||||
{
|
||||
return taskType_;
|
||||
}
|
||||
|
||||
@@ -25,80 +25,80 @@ DecodeBlindWatermarkRequest::DecodeBlindWatermarkRequest() :
|
||||
DecodeBlindWatermarkRequest::~DecodeBlindWatermarkRequest()
|
||||
{}
|
||||
|
||||
int DecodeBlindWatermarkRequest::getImageQuality()const
|
||||
{
|
||||
return imageQuality_;
|
||||
}
|
||||
|
||||
void DecodeBlindWatermarkRequest::setImageQuality(int imageQuality)
|
||||
{
|
||||
imageQuality_ = imageQuality;
|
||||
setCoreParameter("ImageQuality", std::to_string(imageQuality));
|
||||
}
|
||||
|
||||
std::string DecodeBlindWatermarkRequest::getProject()const
|
||||
{
|
||||
return project_;
|
||||
}
|
||||
|
||||
void DecodeBlindWatermarkRequest::setProject(const std::string& project)
|
||||
{
|
||||
project_ = project;
|
||||
setCoreParameter("Project", project);
|
||||
}
|
||||
|
||||
std::string DecodeBlindWatermarkRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DecodeBlindWatermarkRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DecodeBlindWatermarkRequest::getWatermarkType()const
|
||||
{
|
||||
return watermarkType_;
|
||||
}
|
||||
|
||||
void DecodeBlindWatermarkRequest::setWatermarkType(const std::string& watermarkType)
|
||||
{
|
||||
watermarkType_ = watermarkType;
|
||||
setCoreParameter("WatermarkType", watermarkType);
|
||||
}
|
||||
|
||||
std::string DecodeBlindWatermarkRequest::getTargetUri()const
|
||||
{
|
||||
return targetUri_;
|
||||
}
|
||||
|
||||
void DecodeBlindWatermarkRequest::setTargetUri(const std::string& targetUri)
|
||||
{
|
||||
targetUri_ = targetUri;
|
||||
setCoreParameter("TargetUri", targetUri);
|
||||
}
|
||||
|
||||
std::string DecodeBlindWatermarkRequest::getImageUri()const
|
||||
{
|
||||
return imageUri_;
|
||||
}
|
||||
|
||||
void DecodeBlindWatermarkRequest::setImageUri(const std::string& imageUri)
|
||||
{
|
||||
imageUri_ = imageUri;
|
||||
setCoreParameter("ImageUri", imageUri);
|
||||
}
|
||||
|
||||
std::string DecodeBlindWatermarkRequest::getOriginalImageUri()const
|
||||
{
|
||||
return originalImageUri_;
|
||||
}
|
||||
|
||||
void DecodeBlindWatermarkRequest::setOriginalImageUri(const std::string& originalImageUri)
|
||||
{
|
||||
originalImageUri_ = originalImageUri;
|
||||
setCoreParameter("OriginalImageUri", originalImageUri);
|
||||
}
|
||||
|
||||
int DecodeBlindWatermarkRequest::getImageQuality()const
|
||||
{
|
||||
return imageQuality_;
|
||||
}
|
||||
|
||||
void DecodeBlindWatermarkRequest::setImageQuality(int imageQuality)
|
||||
{
|
||||
imageQuality_ = imageQuality;
|
||||
setCoreParameter("ImageQuality", std::to_string(imageQuality));
|
||||
}
|
||||
|
||||
std::string DecodeBlindWatermarkRequest::getProject()const
|
||||
{
|
||||
return project_;
|
||||
}
|
||||
|
||||
void DecodeBlindWatermarkRequest::setProject(const std::string& project)
|
||||
{
|
||||
project_ = project;
|
||||
setCoreParameter("Project", project);
|
||||
}
|
||||
|
||||
std::string DecodeBlindWatermarkRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DecodeBlindWatermarkRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DecodeBlindWatermarkRequest::getWatermarkType()const
|
||||
{
|
||||
return watermarkType_;
|
||||
}
|
||||
|
||||
void DecodeBlindWatermarkRequest::setWatermarkType(const std::string& watermarkType)
|
||||
{
|
||||
watermarkType_ = watermarkType;
|
||||
setCoreParameter("WatermarkType", watermarkType);
|
||||
}
|
||||
|
||||
std::string DecodeBlindWatermarkRequest::getTargetUri()const
|
||||
{
|
||||
return targetUri_;
|
||||
}
|
||||
|
||||
void DecodeBlindWatermarkRequest::setTargetUri(const std::string& targetUri)
|
||||
{
|
||||
targetUri_ = targetUri;
|
||||
setCoreParameter("TargetUri", targetUri);
|
||||
}
|
||||
|
||||
std::string DecodeBlindWatermarkRequest::getImageUri()const
|
||||
{
|
||||
return imageUri_;
|
||||
}
|
||||
|
||||
void DecodeBlindWatermarkRequest::setImageUri(const std::string& imageUri)
|
||||
{
|
||||
imageUri_ = imageUri;
|
||||
setCoreParameter("ImageUri", imageUri);
|
||||
}
|
||||
|
||||
std::string DecodeBlindWatermarkRequest::getOriginalImageUri()const
|
||||
{
|
||||
return originalImageUri_;
|
||||
}
|
||||
|
||||
void DecodeBlindWatermarkRequest::setOriginalImageUri(const std::string& originalImageUri)
|
||||
{
|
||||
originalImageUri_ = originalImageUri;
|
||||
setCoreParameter("OriginalImageUri", originalImageUri);
|
||||
}
|
||||
|
||||
|
||||
@@ -25,102 +25,102 @@ EncodeBlindWatermarkRequest::EncodeBlindWatermarkRequest() :
|
||||
EncodeBlindWatermarkRequest::~EncodeBlindWatermarkRequest()
|
||||
{}
|
||||
|
||||
std::string EncodeBlindWatermarkRequest::getImageQuality()const
|
||||
{
|
||||
return imageQuality_;
|
||||
}
|
||||
|
||||
void EncodeBlindWatermarkRequest::setImageQuality(const std::string& imageQuality)
|
||||
{
|
||||
imageQuality_ = imageQuality;
|
||||
setCoreParameter("ImageQuality", imageQuality);
|
||||
}
|
||||
|
||||
std::string EncodeBlindWatermarkRequest::getWatermarkUri()const
|
||||
{
|
||||
return watermarkUri_;
|
||||
}
|
||||
|
||||
void EncodeBlindWatermarkRequest::setWatermarkUri(const std::string& watermarkUri)
|
||||
{
|
||||
watermarkUri_ = watermarkUri;
|
||||
setCoreParameter("WatermarkUri", watermarkUri);
|
||||
}
|
||||
|
||||
std::string EncodeBlindWatermarkRequest::getProject()const
|
||||
{
|
||||
return project_;
|
||||
}
|
||||
|
||||
void EncodeBlindWatermarkRequest::setProject(const std::string& project)
|
||||
{
|
||||
project_ = project;
|
||||
setCoreParameter("Project", project);
|
||||
}
|
||||
|
||||
std::string EncodeBlindWatermarkRequest::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
void EncodeBlindWatermarkRequest::setContent(const std::string& content)
|
||||
{
|
||||
content_ = content;
|
||||
setCoreParameter("Content", content);
|
||||
}
|
||||
|
||||
std::string EncodeBlindWatermarkRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void EncodeBlindWatermarkRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string EncodeBlindWatermarkRequest::getWatermarkType()const
|
||||
{
|
||||
return watermarkType_;
|
||||
}
|
||||
|
||||
void EncodeBlindWatermarkRequest::setWatermarkType(const std::string& watermarkType)
|
||||
{
|
||||
watermarkType_ = watermarkType;
|
||||
setCoreParameter("WatermarkType", watermarkType);
|
||||
}
|
||||
|
||||
std::string EncodeBlindWatermarkRequest::getTargetUri()const
|
||||
{
|
||||
return targetUri_;
|
||||
}
|
||||
|
||||
void EncodeBlindWatermarkRequest::setTargetUri(const std::string& targetUri)
|
||||
{
|
||||
targetUri_ = targetUri;
|
||||
setCoreParameter("TargetUri", targetUri);
|
||||
}
|
||||
|
||||
std::string EncodeBlindWatermarkRequest::getTargetImageType()const
|
||||
{
|
||||
return targetImageType_;
|
||||
}
|
||||
|
||||
void EncodeBlindWatermarkRequest::setTargetImageType(const std::string& targetImageType)
|
||||
{
|
||||
targetImageType_ = targetImageType;
|
||||
setCoreParameter("TargetImageType", targetImageType);
|
||||
}
|
||||
|
||||
std::string EncodeBlindWatermarkRequest::getImageUri()const
|
||||
{
|
||||
return imageUri_;
|
||||
}
|
||||
|
||||
void EncodeBlindWatermarkRequest::setImageUri(const std::string& imageUri)
|
||||
{
|
||||
imageUri_ = imageUri;
|
||||
setCoreParameter("ImageUri", imageUri);
|
||||
}
|
||||
|
||||
std::string EncodeBlindWatermarkRequest::getImageQuality()const
|
||||
{
|
||||
return imageQuality_;
|
||||
}
|
||||
|
||||
void EncodeBlindWatermarkRequest::setImageQuality(const std::string& imageQuality)
|
||||
{
|
||||
imageQuality_ = imageQuality;
|
||||
setCoreParameter("ImageQuality", imageQuality);
|
||||
}
|
||||
|
||||
std::string EncodeBlindWatermarkRequest::getWatermarkUri()const
|
||||
{
|
||||
return watermarkUri_;
|
||||
}
|
||||
|
||||
void EncodeBlindWatermarkRequest::setWatermarkUri(const std::string& watermarkUri)
|
||||
{
|
||||
watermarkUri_ = watermarkUri;
|
||||
setCoreParameter("WatermarkUri", watermarkUri);
|
||||
}
|
||||
|
||||
std::string EncodeBlindWatermarkRequest::getProject()const
|
||||
{
|
||||
return project_;
|
||||
}
|
||||
|
||||
void EncodeBlindWatermarkRequest::setProject(const std::string& project)
|
||||
{
|
||||
project_ = project;
|
||||
setCoreParameter("Project", project);
|
||||
}
|
||||
|
||||
std::string EncodeBlindWatermarkRequest::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
void EncodeBlindWatermarkRequest::setContent(const std::string& content)
|
||||
{
|
||||
content_ = content;
|
||||
setCoreParameter("Content", content);
|
||||
}
|
||||
|
||||
std::string EncodeBlindWatermarkRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void EncodeBlindWatermarkRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string EncodeBlindWatermarkRequest::getWatermarkType()const
|
||||
{
|
||||
return watermarkType_;
|
||||
}
|
||||
|
||||
void EncodeBlindWatermarkRequest::setWatermarkType(const std::string& watermarkType)
|
||||
{
|
||||
watermarkType_ = watermarkType;
|
||||
setCoreParameter("WatermarkType", watermarkType);
|
||||
}
|
||||
|
||||
std::string EncodeBlindWatermarkRequest::getTargetUri()const
|
||||
{
|
||||
return targetUri_;
|
||||
}
|
||||
|
||||
void EncodeBlindWatermarkRequest::setTargetUri(const std::string& targetUri)
|
||||
{
|
||||
targetUri_ = targetUri;
|
||||
setCoreParameter("TargetUri", targetUri);
|
||||
}
|
||||
|
||||
std::string EncodeBlindWatermarkRequest::getTargetImageType()const
|
||||
{
|
||||
return targetImageType_;
|
||||
}
|
||||
|
||||
void EncodeBlindWatermarkRequest::setTargetImageType(const std::string& targetImageType)
|
||||
{
|
||||
targetImageType_ = targetImageType;
|
||||
setCoreParameter("TargetImageType", targetImageType);
|
||||
}
|
||||
|
||||
std::string EncodeBlindWatermarkRequest::getImageUri()const
|
||||
{
|
||||
return imageUri_;
|
||||
}
|
||||
|
||||
void EncodeBlindWatermarkRequest::setImageUri(const std::string& imageUri)
|
||||
{
|
||||
imageUri_ = imageUri;
|
||||
setCoreParameter("ImageUri", imageUri);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user