Support feedback.
This commit is contained in:
@@ -178,6 +178,8 @@
|
||||
#include "model/UpdateProjectResult.h"
|
||||
#include "model/UpdateSetRequest.h"
|
||||
#include "model/UpdateSetResult.h"
|
||||
#include "model/VideoAnalyseFeedbackRequest.h"
|
||||
#include "model/VideoAnalyseFeedbackResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
@@ -421,6 +423,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::UpdateSetResult> UpdateSetOutcome;
|
||||
typedef std::future<UpdateSetOutcome> UpdateSetOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::UpdateSetRequest&, const UpdateSetOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateSetAsyncHandler;
|
||||
typedef Outcome<Error, Model::VideoAnalyseFeedbackResult> VideoAnalyseFeedbackOutcome;
|
||||
typedef std::future<VideoAnalyseFeedbackOutcome> VideoAnalyseFeedbackOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::VideoAnalyseFeedbackRequest&, const VideoAnalyseFeedbackOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> VideoAnalyseFeedbackAsyncHandler;
|
||||
|
||||
ImmClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
ImmClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
@@ -660,6 +665,9 @@ namespace AlibabaCloud
|
||||
UpdateSetOutcome updateSet(const Model::UpdateSetRequest &request)const;
|
||||
void updateSetAsync(const Model::UpdateSetRequest& request, const UpdateSetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateSetOutcomeCallable updateSetCallable(const Model::UpdateSetRequest& request) const;
|
||||
VideoAnalyseFeedbackOutcome videoAnalyseFeedback(const Model::VideoAnalyseFeedbackRequest &request)const;
|
||||
void videoAnalyseFeedbackAsync(const Model::VideoAnalyseFeedbackRequest& request, const VideoAnalyseFeedbackAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
VideoAnalyseFeedbackOutcomeCallable videoAnalyseFeedbackCallable(const Model::VideoAnalyseFeedbackRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
|
||||
@@ -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_VIDEOANALYSEFEEDBACKREQUEST_H_
|
||||
#define ALIBABACLOUD_IMM_MODEL_VIDEOANALYSEFEEDBACKREQUEST_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 VideoAnalyseFeedbackRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
VideoAnalyseFeedbackRequest();
|
||||
~VideoAnalyseFeedbackRequest();
|
||||
|
||||
std::string getNote()const;
|
||||
void setNote(const std::string& note);
|
||||
std::string getProject()const;
|
||||
void setProject(const std::string& project);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getTaskId()const;
|
||||
void setTaskId(const std::string& taskId);
|
||||
std::string getFrames()const;
|
||||
void setFrames(const std::string& frames);
|
||||
std::string getSuggestion()const;
|
||||
void setSuggestion(const std::string& suggestion);
|
||||
std::string getUri()const;
|
||||
void setUri(const std::string& uri);
|
||||
std::string getScenes()const;
|
||||
void setScenes(const std::string& scenes);
|
||||
|
||||
private:
|
||||
std::string note_;
|
||||
std::string project_;
|
||||
std::string accessKeyId_;
|
||||
std::string taskId_;
|
||||
std::string frames_;
|
||||
std::string suggestion_;
|
||||
std::string uri_;
|
||||
std::string scenes_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMM_MODEL_VIDEOANALYSEFEEDBACKREQUEST_H_
|
||||
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* 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_VIDEOANALYSEFEEDBACKRESULT_H_
|
||||
#define ALIBABACLOUD_IMM_MODEL_VIDEOANALYSEFEEDBACKRESULT_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 VideoAnalyseFeedbackResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
VideoAnalyseFeedbackResult();
|
||||
explicit VideoAnalyseFeedbackResult(const std::string &payload);
|
||||
~VideoAnalyseFeedbackResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMM_MODEL_VIDEOANALYSEFEEDBACKRESULT_H_
|
||||
Reference in New Issue
Block a user