Update Dyvmsapi SDK.

This commit is contained in:
sdk-team
2021-08-20 06:56:32 +00:00
parent 36828e0fce
commit 57e4665c5e
9 changed files with 325 additions and 1 deletions

View File

@@ -56,6 +56,8 @@
#include "model/DoubleCallSeatResult.h"
#include "model/ExecuteCallTaskRequest.h"
#include "model/ExecuteCallTaskResult.h"
#include "model/GetCallInfoRequest.h"
#include "model/GetCallInfoResult.h"
#include "model/GetHotlineQualificationByOrderRequest.h"
#include "model/GetHotlineQualificationByOrderResult.h"
#include "model/GetRtcTokenRequest.h"
@@ -198,6 +200,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ExecuteCallTaskResult> ExecuteCallTaskOutcome;
typedef std::future<ExecuteCallTaskOutcome> ExecuteCallTaskOutcomeCallable;
typedef std::function<void(const DyvmsapiClient*, const Model::ExecuteCallTaskRequest&, const ExecuteCallTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ExecuteCallTaskAsyncHandler;
typedef Outcome<Error, Model::GetCallInfoResult> GetCallInfoOutcome;
typedef std::future<GetCallInfoOutcome> GetCallInfoOutcomeCallable;
typedef std::function<void(const DyvmsapiClient*, const Model::GetCallInfoRequest&, const GetCallInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetCallInfoAsyncHandler;
typedef Outcome<Error, Model::GetHotlineQualificationByOrderResult> GetHotlineQualificationByOrderOutcome;
typedef std::future<GetHotlineQualificationByOrderOutcome> GetHotlineQualificationByOrderOutcomeCallable;
typedef std::function<void(const DyvmsapiClient*, const Model::GetHotlineQualificationByOrderRequest&, const GetHotlineQualificationByOrderOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetHotlineQualificationByOrderAsyncHandler;
@@ -377,6 +382,9 @@ namespace AlibabaCloud
ExecuteCallTaskOutcome executeCallTask(const Model::ExecuteCallTaskRequest &request)const;
void executeCallTaskAsync(const Model::ExecuteCallTaskRequest& request, const ExecuteCallTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ExecuteCallTaskOutcomeCallable executeCallTaskCallable(const Model::ExecuteCallTaskRequest& request) const;
GetCallInfoOutcome getCallInfo(const Model::GetCallInfoRequest &request)const;
void getCallInfoAsync(const Model::GetCallInfoRequest& request, const GetCallInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetCallInfoOutcomeCallable getCallInfoCallable(const Model::GetCallInfoRequest& request) const;
GetHotlineQualificationByOrderOutcome getHotlineQualificationByOrder(const Model::GetHotlineQualificationByOrderRequest &request)const;
void getHotlineQualificationByOrderAsync(const Model::GetHotlineQualificationByOrderRequest& request, const GetHotlineQualificationByOrderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetHotlineQualificationByOrderOutcomeCallable getHotlineQualificationByOrderCallable(const Model::GetHotlineQualificationByOrderRequest& request) const;

View File

@@ -0,0 +1,60 @@
/*
* 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_DYVMSAPI_MODEL_GETCALLINFOREQUEST_H_
#define ALIBABACLOUD_DYVMSAPI_MODEL_GETCALLINFOREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dyvmsapi/DyvmsapiExport.h>
namespace AlibabaCloud
{
namespace Dyvmsapi
{
namespace Model
{
class ALIBABACLOUD_DYVMSAPI_EXPORT GetCallInfoRequest : public RpcServiceRequest
{
public:
GetCallInfoRequest();
~GetCallInfoRequest();
std::string getRtcId()const;
void setRtcId(const std::string& rtcId);
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
long getOwnerId()const;
void setOwnerId(long ownerId);
private:
std::string rtcId_;
long resourceOwnerId_;
std::string accessKeyId_;
std::string resourceOwnerAccount_;
long ownerId_;
};
}
}
}
#endif // !ALIBABACLOUD_DYVMSAPI_MODEL_GETCALLINFOREQUEST_H_

View File

@@ -0,0 +1,60 @@
/*
* 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_DYVMSAPI_MODEL_GETCALLINFORESULT_H_
#define ALIBABACLOUD_DYVMSAPI_MODEL_GETCALLINFORESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dyvmsapi/DyvmsapiExport.h>
namespace AlibabaCloud
{
namespace Dyvmsapi
{
namespace Model
{
class ALIBABACLOUD_DYVMSAPI_EXPORT GetCallInfoResult : public ServiceResult
{
public:
struct Data
{
std::string status;
std::string channelId;
};
GetCallInfoResult();
explicit GetCallInfoResult(const std::string &payload);
~GetCallInfoResult();
std::string getMessage()const;
Data getData()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_DYVMSAPI_MODEL_GETCALLINFORESULT_H_