support unbind device
This commit is contained in:
@@ -28,6 +28,8 @@
|
||||
#include "model/ClientAuthResult.h"
|
||||
#include "model/ClientStartRequest.h"
|
||||
#include "model/ClientStartResult.h"
|
||||
#include "model/ClientUnbindDeviceRequest.h"
|
||||
#include "model/ClientUnbindDeviceResult.h"
|
||||
#include "model/CloseTimedResetOperateRequest.h"
|
||||
#include "model/CloseTimedResetOperateResult.h"
|
||||
#include "model/ConfirmAvatar2dTrainRequest.h"
|
||||
@@ -98,6 +100,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ClientStartResult> ClientStartOutcome;
|
||||
typedef std::future<ClientStartOutcome> ClientStartOutcomeCallable;
|
||||
typedef std::function<void(const AvatarClient*, const Model::ClientStartRequest&, const ClientStartOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ClientStartAsyncHandler;
|
||||
typedef Outcome<Error, Model::ClientUnbindDeviceResult> ClientUnbindDeviceOutcome;
|
||||
typedef std::future<ClientUnbindDeviceOutcome> ClientUnbindDeviceOutcomeCallable;
|
||||
typedef std::function<void(const AvatarClient*, const Model::ClientUnbindDeviceRequest&, const ClientUnbindDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ClientUnbindDeviceAsyncHandler;
|
||||
typedef Outcome<Error, Model::CloseTimedResetOperateResult> CloseTimedResetOperateOutcome;
|
||||
typedef std::future<CloseTimedResetOperateOutcome> CloseTimedResetOperateOutcomeCallable;
|
||||
typedef std::function<void(const AvatarClient*, const Model::CloseTimedResetOperateRequest&, const CloseTimedResetOperateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CloseTimedResetOperateAsyncHandler;
|
||||
@@ -190,6 +195,9 @@ namespace AlibabaCloud
|
||||
ClientStartOutcome clientStart(const Model::ClientStartRequest &request)const;
|
||||
void clientStartAsync(const Model::ClientStartRequest& request, const ClientStartAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ClientStartOutcomeCallable clientStartCallable(const Model::ClientStartRequest& request) const;
|
||||
ClientUnbindDeviceOutcome clientUnbindDevice(const Model::ClientUnbindDeviceRequest &request)const;
|
||||
void clientUnbindDeviceAsync(const Model::ClientUnbindDeviceRequest& request, const ClientUnbindDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ClientUnbindDeviceOutcomeCallable clientUnbindDeviceCallable(const Model::ClientUnbindDeviceRequest& request) const;
|
||||
CloseTimedResetOperateOutcome closeTimedResetOperate(const Model::CloseTimedResetOperateRequest &request)const;
|
||||
void closeTimedResetOperateAsync(const Model::CloseTimedResetOperateRequest& request, const CloseTimedResetOperateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CloseTimedResetOperateOutcomeCallable closeTimedResetOperateCallable(const Model::CloseTimedResetOperateRequest& request) const;
|
||||
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AVATAR_MODEL_CLIENTUNBINDDEVICEREQUEST_H_
|
||||
#define ALIBABACLOUD_AVATAR_MODEL_CLIENTUNBINDDEVICEREQUEST_H_
|
||||
|
||||
#include <alibabacloud/avatar/AvatarExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Avatar {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_AVATAR_EXPORT ClientUnbindDeviceRequest : public RpcServiceRequest {
|
||||
public:
|
||||
ClientUnbindDeviceRequest();
|
||||
~ClientUnbindDeviceRequest();
|
||||
long getTenantId() const;
|
||||
void setTenantId(long tenantId);
|
||||
std::string getDeviceId() const;
|
||||
void setDeviceId(const std::string &deviceId);
|
||||
|
||||
private:
|
||||
long tenantId_;
|
||||
std::string deviceId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Avatar
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_AVATAR_MODEL_CLIENTUNBINDDEVICEREQUEST_H_
|
||||
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* 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_AVATAR_MODEL_CLIENTUNBINDDEVICERESULT_H_
|
||||
#define ALIBABACLOUD_AVATAR_MODEL_CLIENTUNBINDDEVICERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/avatar/AvatarExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Avatar
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AVATAR_EXPORT ClientUnbindDeviceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ClientUnbindDeviceResult();
|
||||
explicit ClientUnbindDeviceResult(const std::string &payload);
|
||||
~ClientUnbindDeviceResult();
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AVATAR_MODEL_CLIENTUNBINDDEVICERESULT_H_
|
||||
@@ -31,6 +31,9 @@ public:
|
||||
struct App {
|
||||
std::string appId;
|
||||
};
|
||||
struct AudioInfo {
|
||||
int sampleRate;
|
||||
};
|
||||
struct AvatarInfo {
|
||||
std::string code;
|
||||
int x;
|
||||
@@ -48,6 +51,8 @@ public:
|
||||
~SubmitAudioTo2DAvatarVideoTaskRequest();
|
||||
App getApp() const;
|
||||
void setApp(const App &app);
|
||||
AudioInfo getAudioInfo() const;
|
||||
void setAudioInfo(const AudioInfo &audioInfo);
|
||||
AvatarInfo getAvatarInfo() const;
|
||||
void setAvatarInfo(const AvatarInfo &avatarInfo);
|
||||
std::string getTitle() const;
|
||||
@@ -71,6 +76,7 @@ public:
|
||||
|
||||
private:
|
||||
App app_;
|
||||
AudioInfo audioInfo_;
|
||||
AvatarInfo avatarInfo_;
|
||||
std::string title_;
|
||||
std::string extParams_;
|
||||
|
||||
@@ -31,6 +31,9 @@ public:
|
||||
struct App {
|
||||
std::string appId;
|
||||
};
|
||||
struct AudioInfo {
|
||||
int sampleRate;
|
||||
};
|
||||
struct AvatarInfo {
|
||||
std::string code;
|
||||
int locate;
|
||||
@@ -47,6 +50,8 @@ public:
|
||||
~SubmitAudioTo3DAvatarVideoTaskRequest();
|
||||
App getApp() const;
|
||||
void setApp(const App &app);
|
||||
AudioInfo getAudioInfo() const;
|
||||
void setAudioInfo(const AudioInfo &audioInfo);
|
||||
AvatarInfo getAvatarInfo() const;
|
||||
void setAvatarInfo(const AvatarInfo &avatarInfo);
|
||||
std::string getTitle() const;
|
||||
@@ -70,6 +75,7 @@ public:
|
||||
|
||||
private:
|
||||
App app_;
|
||||
AudioInfo audioInfo_;
|
||||
AvatarInfo avatarInfo_;
|
||||
std::string title_;
|
||||
std::string extParams_;
|
||||
|
||||
@@ -36,6 +36,7 @@ public:
|
||||
int volume;
|
||||
int speechRate;
|
||||
int pitchRate;
|
||||
int sampleRate;
|
||||
};
|
||||
struct AvatarInfo {
|
||||
std::string code;
|
||||
@@ -49,6 +50,14 @@ public:
|
||||
std::string backgroundImageUrl;
|
||||
bool isSubtitles;
|
||||
bool subtitleEmbedded;
|
||||
struct SubtitleStyle {
|
||||
std::string color;
|
||||
int size;
|
||||
std::string name;
|
||||
int y;
|
||||
std::string outlineColor;
|
||||
};
|
||||
SubtitleStyle subtitleStyle;
|
||||
int resolution;
|
||||
int alphaFormat;
|
||||
};
|
||||
|
||||
@@ -36,6 +36,7 @@ public:
|
||||
int volume;
|
||||
int speechRate;
|
||||
int pitchRate;
|
||||
int sampleRate;
|
||||
};
|
||||
struct AvatarInfo {
|
||||
std::string code;
|
||||
@@ -48,6 +49,14 @@ public:
|
||||
std::string backgroundImageUrl;
|
||||
bool isSubtitles;
|
||||
bool subtitleEmbedded;
|
||||
struct SubtitleStyle {
|
||||
std::string color;
|
||||
int size;
|
||||
std::string name;
|
||||
int y;
|
||||
std::string outlineColor;
|
||||
};
|
||||
SubtitleStyle subtitleStyle;
|
||||
int resolution;
|
||||
int alphaFormat;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user