Support Open Service API.

This commit is contained in:
sdk-team
2020-09-27 02:38:25 +00:00
parent 7ee07b8331
commit b31d71fa81
14 changed files with 277 additions and 24 deletions

View File

@@ -156,6 +156,8 @@
#include "model/ListVideoTasksResult.h"
#include "model/ListVideosRequest.h"
#include "model/ListVideosResult.h"
#include "model/OpenImmServiceRequest.h"
#include "model/OpenImmServiceResult.h"
#include "model/PutProjectRequest.h"
#include "model/PutProjectResult.h"
#include "model/RefreshOfficeEditTokenRequest.h"
@@ -386,6 +388,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ListVideosResult> ListVideosOutcome;
typedef std::future<ListVideosOutcome> ListVideosOutcomeCallable;
typedef std::function<void(const ImmClient*, const Model::ListVideosRequest&, const ListVideosOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListVideosAsyncHandler;
typedef Outcome<Error, Model::OpenImmServiceResult> OpenImmServiceOutcome;
typedef std::future<OpenImmServiceOutcome> OpenImmServiceOutcomeCallable;
typedef std::function<void(const ImmClient*, const Model::OpenImmServiceRequest&, const OpenImmServiceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> OpenImmServiceAsyncHandler;
typedef Outcome<Error, Model::PutProjectResult> PutProjectOutcome;
typedef std::future<PutProjectOutcome> PutProjectOutcomeCallable;
typedef std::function<void(const ImmClient*, const Model::PutProjectRequest&, const PutProjectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PutProjectAsyncHandler;
@@ -622,6 +627,9 @@ namespace AlibabaCloud
ListVideosOutcome listVideos(const Model::ListVideosRequest &request)const;
void listVideosAsync(const Model::ListVideosRequest& request, const ListVideosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListVideosOutcomeCallable listVideosCallable(const Model::ListVideosRequest& request) const;
OpenImmServiceOutcome openImmService(const Model::OpenImmServiceRequest &request)const;
void openImmServiceAsync(const Model::OpenImmServiceRequest& request, const OpenImmServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
OpenImmServiceOutcomeCallable openImmServiceCallable(const Model::OpenImmServiceRequest& request) const;
PutProjectOutcome putProject(const Model::PutProjectRequest &request)const;
void putProjectAsync(const Model::PutProjectRequest& request, const PutProjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
PutProjectOutcomeCallable putProjectCallable(const Model::PutProjectRequest& request) const;

View File

@@ -37,11 +37,13 @@ namespace AlibabaCloud
GetDRMLicenseResult();
explicit GetDRMLicenseResult(const std::string &payload);
~GetDRMLicenseResult();
std::string getDeviceInfo()const;
std::string getDRMData()const;
protected:
void parse(const std::string &payload);
private:
std::string deviceInfo_;
std::string dRMData_;
};

View File

@@ -40,10 +40,10 @@ namespace AlibabaCloud
};
struct VideoTagsItem
{
std::string videoTagEnName;
std::string videoTagName;
int videoTagLevel;
float videoTagConfidence;
std::string tagName;
float tagConfidence;
int tagLevel;
std::string parentTagName;
};
struct PersonsItem
{

View File

@@ -36,9 +36,10 @@ namespace AlibabaCloud
{
struct VideoTagsItem
{
std::string videoTagEnName;
std::string videoTagName;
float videoTagConfidence;
std::string tagName;
float tagConfidence;
int tagLevel;
std::string parentTagName;
};
struct CelebrityItem
{

View File

@@ -0,0 +1,48 @@
/*
* 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_OPENIMMSERVICEREQUEST_H_
#define ALIBABACLOUD_IMM_MODEL_OPENIMMSERVICEREQUEST_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 OpenImmServiceRequest : public RpcServiceRequest
{
public:
OpenImmServiceRequest();
~OpenImmServiceRequest();
long getOwnerId()const;
void setOwnerId(long ownerId);
private:
long ownerId_;
};
}
}
}
#endif // !ALIBABACLOUD_IMM_MODEL_OPENIMMSERVICEREQUEST_H_

View 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.
*/
#ifndef ALIBABACLOUD_IMM_MODEL_OPENIMMSERVICERESULT_H_
#define ALIBABACLOUD_IMM_MODEL_OPENIMMSERVICERESULT_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 OpenImmServiceResult : public ServiceResult
{
public:
OpenImmServiceResult();
explicit OpenImmServiceResult(const std::string &payload);
~OpenImmServiceResult();
std::string getOrderId()const;
protected:
void parse(const std::string &payload);
private:
std::string orderId_;
};
}
}
}
#endif // !ALIBABACLOUD_IMM_MODEL_OPENIMMSERVICERESULT_H_