Supported Video Abstract for IMM.
This commit is contained in:
@@ -1,3 +1,6 @@
|
|||||||
|
2019-09-18 Version 1.36.137
|
||||||
|
- Supported Video Abstract for IMM.
|
||||||
|
|
||||||
2019-09-17 Version 1.36.136
|
2019-09-17 Version 1.36.136
|
||||||
- Generated 2018-04-12 for `EHPC`.
|
- Generated 2018-04-12 for `EHPC`.
|
||||||
|
|
||||||
|
|||||||
@@ -49,6 +49,8 @@ set(imm_public_header_model
|
|||||||
include/alibabacloud/imm/model/CreateTagJobResult.h
|
include/alibabacloud/imm/model/CreateTagJobResult.h
|
||||||
include/alibabacloud/imm/model/CreateTagSetRequest.h
|
include/alibabacloud/imm/model/CreateTagSetRequest.h
|
||||||
include/alibabacloud/imm/model/CreateTagSetResult.h
|
include/alibabacloud/imm/model/CreateTagSetResult.h
|
||||||
|
include/alibabacloud/imm/model/CreateVideoAbstractTaskRequest.h
|
||||||
|
include/alibabacloud/imm/model/CreateVideoAbstractTaskResult.h
|
||||||
include/alibabacloud/imm/model/CreateVideoAnalyseTaskRequest.h
|
include/alibabacloud/imm/model/CreateVideoAnalyseTaskRequest.h
|
||||||
include/alibabacloud/imm/model/CreateVideoAnalyseTaskResult.h
|
include/alibabacloud/imm/model/CreateVideoAnalyseTaskResult.h
|
||||||
include/alibabacloud/imm/model/CreateVideoCompressTaskRequest.h
|
include/alibabacloud/imm/model/CreateVideoCompressTaskRequest.h
|
||||||
@@ -254,6 +256,8 @@ set(imm_src
|
|||||||
src/model/CreateTagJobResult.cc
|
src/model/CreateTagJobResult.cc
|
||||||
src/model/CreateTagSetRequest.cc
|
src/model/CreateTagSetRequest.cc
|
||||||
src/model/CreateTagSetResult.cc
|
src/model/CreateTagSetResult.cc
|
||||||
|
src/model/CreateVideoAbstractTaskRequest.cc
|
||||||
|
src/model/CreateVideoAbstractTaskResult.cc
|
||||||
src/model/CreateVideoAnalyseTaskRequest.cc
|
src/model/CreateVideoAnalyseTaskRequest.cc
|
||||||
src/model/CreateVideoAnalyseTaskResult.cc
|
src/model/CreateVideoAnalyseTaskResult.cc
|
||||||
src/model/CreateVideoCompressTaskRequest.cc
|
src/model/CreateVideoCompressTaskRequest.cc
|
||||||
|
|||||||
@@ -50,6 +50,8 @@
|
|||||||
#include "model/CreateTagJobResult.h"
|
#include "model/CreateTagJobResult.h"
|
||||||
#include "model/CreateTagSetRequest.h"
|
#include "model/CreateTagSetRequest.h"
|
||||||
#include "model/CreateTagSetResult.h"
|
#include "model/CreateTagSetResult.h"
|
||||||
|
#include "model/CreateVideoAbstractTaskRequest.h"
|
||||||
|
#include "model/CreateVideoAbstractTaskResult.h"
|
||||||
#include "model/CreateVideoAnalyseTaskRequest.h"
|
#include "model/CreateVideoAnalyseTaskRequest.h"
|
||||||
#include "model/CreateVideoAnalyseTaskResult.h"
|
#include "model/CreateVideoAnalyseTaskResult.h"
|
||||||
#include "model/CreateVideoCompressTaskRequest.h"
|
#include "model/CreateVideoCompressTaskRequest.h"
|
||||||
@@ -275,6 +277,9 @@ namespace AlibabaCloud
|
|||||||
typedef Outcome<Error, Model::CreateTagSetResult> CreateTagSetOutcome;
|
typedef Outcome<Error, Model::CreateTagSetResult> CreateTagSetOutcome;
|
||||||
typedef std::future<CreateTagSetOutcome> CreateTagSetOutcomeCallable;
|
typedef std::future<CreateTagSetOutcome> CreateTagSetOutcomeCallable;
|
||||||
typedef std::function<void(const ImmClient*, const Model::CreateTagSetRequest&, const CreateTagSetOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateTagSetAsyncHandler;
|
typedef std::function<void(const ImmClient*, const Model::CreateTagSetRequest&, const CreateTagSetOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateTagSetAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::CreateVideoAbstractTaskResult> CreateVideoAbstractTaskOutcome;
|
||||||
|
typedef std::future<CreateVideoAbstractTaskOutcome> CreateVideoAbstractTaskOutcomeCallable;
|
||||||
|
typedef std::function<void(const ImmClient*, const Model::CreateVideoAbstractTaskRequest&, const CreateVideoAbstractTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateVideoAbstractTaskAsyncHandler;
|
||||||
typedef Outcome<Error, Model::CreateVideoAnalyseTaskResult> CreateVideoAnalyseTaskOutcome;
|
typedef Outcome<Error, Model::CreateVideoAnalyseTaskResult> CreateVideoAnalyseTaskOutcome;
|
||||||
typedef std::future<CreateVideoAnalyseTaskOutcome> CreateVideoAnalyseTaskOutcomeCallable;
|
typedef std::future<CreateVideoAnalyseTaskOutcome> CreateVideoAnalyseTaskOutcomeCallable;
|
||||||
typedef std::function<void(const ImmClient*, const Model::CreateVideoAnalyseTaskRequest&, const CreateVideoAnalyseTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateVideoAnalyseTaskAsyncHandler;
|
typedef std::function<void(const ImmClient*, const Model::CreateVideoAnalyseTaskRequest&, const CreateVideoAnalyseTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateVideoAnalyseTaskAsyncHandler;
|
||||||
@@ -583,6 +588,9 @@ namespace AlibabaCloud
|
|||||||
CreateTagSetOutcome createTagSet(const Model::CreateTagSetRequest &request)const;
|
CreateTagSetOutcome createTagSet(const Model::CreateTagSetRequest &request)const;
|
||||||
void createTagSetAsync(const Model::CreateTagSetRequest& request, const CreateTagSetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void createTagSetAsync(const Model::CreateTagSetRequest& request, const CreateTagSetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
CreateTagSetOutcomeCallable createTagSetCallable(const Model::CreateTagSetRequest& request) const;
|
CreateTagSetOutcomeCallable createTagSetCallable(const Model::CreateTagSetRequest& request) const;
|
||||||
|
CreateVideoAbstractTaskOutcome createVideoAbstractTask(const Model::CreateVideoAbstractTaskRequest &request)const;
|
||||||
|
void createVideoAbstractTaskAsync(const Model::CreateVideoAbstractTaskRequest& request, const CreateVideoAbstractTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
CreateVideoAbstractTaskOutcomeCallable createVideoAbstractTaskCallable(const Model::CreateVideoAbstractTaskRequest& request) const;
|
||||||
CreateVideoAnalyseTaskOutcome createVideoAnalyseTask(const Model::CreateVideoAnalyseTaskRequest &request)const;
|
CreateVideoAnalyseTaskOutcome createVideoAnalyseTask(const Model::CreateVideoAnalyseTaskRequest &request)const;
|
||||||
void createVideoAnalyseTaskAsync(const Model::CreateVideoAnalyseTaskRequest& request, const CreateVideoAnalyseTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void createVideoAnalyseTaskAsync(const Model::CreateVideoAnalyseTaskRequest& request, const CreateVideoAnalyseTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
CreateVideoAnalyseTaskOutcomeCallable createVideoAnalyseTaskCallable(const Model::CreateVideoAnalyseTaskRequest& request) const;
|
CreateVideoAnalyseTaskOutcomeCallable createVideoAnalyseTaskCallable(const Model::CreateVideoAnalyseTaskRequest& request) const;
|
||||||
|
|||||||
@@ -0,0 +1,69 @@
|
|||||||
|
/*
|
||||||
|
* 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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_IMM_MODEL_CREATEVIDEOABSTRACTTASKREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_IMM_MODEL_CREATEVIDEOABSTRACTTASKREQUEST_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <alibabacloud/imm/ImmExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Imm
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_IMM_EXPORT CreateVideoAbstractTaskRequest : public RpcServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
CreateVideoAbstractTaskRequest();
|
||||||
|
~CreateVideoAbstractTaskRequest();
|
||||||
|
|
||||||
|
std::string getTargetVideoUri()const;
|
||||||
|
void setTargetVideoUri(const std::string& targetVideoUri);
|
||||||
|
std::string getProject()const;
|
||||||
|
void setProject(const std::string& project);
|
||||||
|
std::string getAccessKeyId()const;
|
||||||
|
void setAccessKeyId(const std::string& accessKeyId);
|
||||||
|
std::string getNotifyEndpoint()const;
|
||||||
|
void setNotifyEndpoint(const std::string& notifyEndpoint);
|
||||||
|
std::string getNotifyTopicName()const;
|
||||||
|
void setNotifyTopicName(const std::string& notifyTopicName);
|
||||||
|
std::string getVideoUri()const;
|
||||||
|
void setVideoUri(const std::string& videoUri);
|
||||||
|
int getAbstractLength()const;
|
||||||
|
void setAbstractLength(int abstractLength);
|
||||||
|
std::string getTargetClipsUri()const;
|
||||||
|
void setTargetClipsUri(const std::string& targetClipsUri);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string targetVideoUri_;
|
||||||
|
std::string project_;
|
||||||
|
std::string accessKeyId_;
|
||||||
|
std::string notifyEndpoint_;
|
||||||
|
std::string notifyTopicName_;
|
||||||
|
std::string videoUri_;
|
||||||
|
int abstractLength_;
|
||||||
|
std::string targetClipsUri_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_IMM_MODEL_CREATEVIDEOABSTRACTTASKREQUEST_H_
|
||||||
@@ -0,0 +1,53 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_IMM_MODEL_CREATEVIDEOABSTRACTTASKRESULT_H_
|
||||||
|
#define ALIBABACLOUD_IMM_MODEL_CREATEVIDEOABSTRACTTASKRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/imm/ImmExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Imm
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_IMM_EXPORT CreateVideoAbstractTaskResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
|
||||||
|
CreateVideoAbstractTaskResult();
|
||||||
|
explicit CreateVideoAbstractTaskResult(const std::string &payload);
|
||||||
|
~CreateVideoAbstractTaskResult();
|
||||||
|
std::string getTaskId()const;
|
||||||
|
std::string getTaskType()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string taskId_;
|
||||||
|
std::string taskType_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_IMM_MODEL_CREATEVIDEOABSTRACTTASKRESULT_H_
|
||||||
@@ -555,6 +555,42 @@ ImmClient::CreateTagSetOutcomeCallable ImmClient::createTagSetCallable(const Cre
|
|||||||
return task->get_future();
|
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
|
ImmClient::CreateVideoAnalyseTaskOutcome ImmClient::createVideoAnalyseTask(const CreateVideoAnalyseTaskRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
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_;
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user