Generated 2023-09-30 for tingwu.
This commit is contained in:
@@ -21,29 +21,37 @@ set(tingwu_public_header
|
||||
include/alibabacloud/tingwu/TingwuExport.h )
|
||||
|
||||
set(tingwu_public_header_model
|
||||
include/alibabacloud/tingwu/model/CreateFileTransRequest.h
|
||||
include/alibabacloud/tingwu/model/CreateFileTransResult.h
|
||||
include/alibabacloud/tingwu/model/CreateMeetingTransRequest.h
|
||||
include/alibabacloud/tingwu/model/CreateMeetingTransResult.h
|
||||
include/alibabacloud/tingwu/model/GetFileTransRequest.h
|
||||
include/alibabacloud/tingwu/model/GetFileTransResult.h
|
||||
include/alibabacloud/tingwu/model/GetMeetingTransRequest.h
|
||||
include/alibabacloud/tingwu/model/GetMeetingTransResult.h
|
||||
include/alibabacloud/tingwu/model/StopMeetingTransRequest.h
|
||||
include/alibabacloud/tingwu/model/StopMeetingTransResult.h )
|
||||
include/alibabacloud/tingwu/model/CreateTaskRequest.h
|
||||
include/alibabacloud/tingwu/model/CreateTaskResult.h
|
||||
include/alibabacloud/tingwu/model/CreateTranscriptionPhrasesRequest.h
|
||||
include/alibabacloud/tingwu/model/CreateTranscriptionPhrasesResult.h
|
||||
include/alibabacloud/tingwu/model/DeleteTranscriptionPhrasesRequest.h
|
||||
include/alibabacloud/tingwu/model/DeleteTranscriptionPhrasesResult.h
|
||||
include/alibabacloud/tingwu/model/GetTaskInfoRequest.h
|
||||
include/alibabacloud/tingwu/model/GetTaskInfoResult.h
|
||||
include/alibabacloud/tingwu/model/GetTranscriptionPhrasesRequest.h
|
||||
include/alibabacloud/tingwu/model/GetTranscriptionPhrasesResult.h
|
||||
include/alibabacloud/tingwu/model/ListTranscriptionPhrasesRequest.h
|
||||
include/alibabacloud/tingwu/model/ListTranscriptionPhrasesResult.h
|
||||
include/alibabacloud/tingwu/model/UpdateTranscriptionPhrasesRequest.h
|
||||
include/alibabacloud/tingwu/model/UpdateTranscriptionPhrasesResult.h )
|
||||
|
||||
set(tingwu_src
|
||||
src/TingwuClient.cc
|
||||
src/model/CreateFileTransRequest.cc
|
||||
src/model/CreateFileTransResult.cc
|
||||
src/model/CreateMeetingTransRequest.cc
|
||||
src/model/CreateMeetingTransResult.cc
|
||||
src/model/GetFileTransRequest.cc
|
||||
src/model/GetFileTransResult.cc
|
||||
src/model/GetMeetingTransRequest.cc
|
||||
src/model/GetMeetingTransResult.cc
|
||||
src/model/StopMeetingTransRequest.cc
|
||||
src/model/StopMeetingTransResult.cc )
|
||||
src/model/CreateTaskRequest.cc
|
||||
src/model/CreateTaskResult.cc
|
||||
src/model/CreateTranscriptionPhrasesRequest.cc
|
||||
src/model/CreateTranscriptionPhrasesResult.cc
|
||||
src/model/DeleteTranscriptionPhrasesRequest.cc
|
||||
src/model/DeleteTranscriptionPhrasesResult.cc
|
||||
src/model/GetTaskInfoRequest.cc
|
||||
src/model/GetTaskInfoResult.cc
|
||||
src/model/GetTranscriptionPhrasesRequest.cc
|
||||
src/model/GetTranscriptionPhrasesResult.cc
|
||||
src/model/ListTranscriptionPhrasesRequest.cc
|
||||
src/model/ListTranscriptionPhrasesResult.cc
|
||||
src/model/UpdateTranscriptionPhrasesRequest.cc
|
||||
src/model/UpdateTranscriptionPhrasesResult.cc )
|
||||
|
||||
add_library(tingwu ${LIB_TYPE}
|
||||
${tingwu_public_header}
|
||||
|
||||
@@ -22,16 +22,20 @@
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RoaServiceClient.h>
|
||||
#include "TingwuExport.h"
|
||||
#include "model/CreateFileTransRequest.h"
|
||||
#include "model/CreateFileTransResult.h"
|
||||
#include "model/CreateMeetingTransRequest.h"
|
||||
#include "model/CreateMeetingTransResult.h"
|
||||
#include "model/GetFileTransRequest.h"
|
||||
#include "model/GetFileTransResult.h"
|
||||
#include "model/GetMeetingTransRequest.h"
|
||||
#include "model/GetMeetingTransResult.h"
|
||||
#include "model/StopMeetingTransRequest.h"
|
||||
#include "model/StopMeetingTransResult.h"
|
||||
#include "model/CreateTaskRequest.h"
|
||||
#include "model/CreateTaskResult.h"
|
||||
#include "model/CreateTranscriptionPhrasesRequest.h"
|
||||
#include "model/CreateTranscriptionPhrasesResult.h"
|
||||
#include "model/DeleteTranscriptionPhrasesRequest.h"
|
||||
#include "model/DeleteTranscriptionPhrasesResult.h"
|
||||
#include "model/GetTaskInfoRequest.h"
|
||||
#include "model/GetTaskInfoResult.h"
|
||||
#include "model/GetTranscriptionPhrasesRequest.h"
|
||||
#include "model/GetTranscriptionPhrasesResult.h"
|
||||
#include "model/ListTranscriptionPhrasesRequest.h"
|
||||
#include "model/ListTranscriptionPhrasesResult.h"
|
||||
#include "model/UpdateTranscriptionPhrasesRequest.h"
|
||||
#include "model/UpdateTranscriptionPhrasesResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
@@ -41,41 +45,53 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_TINGWU_EXPORT TingwuClient : public RoaServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::CreateFileTransResult> CreateFileTransOutcome;
|
||||
typedef std::future<CreateFileTransOutcome> CreateFileTransOutcomeCallable;
|
||||
typedef std::function<void(const TingwuClient*, const Model::CreateFileTransRequest&, const CreateFileTransOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateFileTransAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateMeetingTransResult> CreateMeetingTransOutcome;
|
||||
typedef std::future<CreateMeetingTransOutcome> CreateMeetingTransOutcomeCallable;
|
||||
typedef std::function<void(const TingwuClient*, const Model::CreateMeetingTransRequest&, const CreateMeetingTransOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateMeetingTransAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetFileTransResult> GetFileTransOutcome;
|
||||
typedef std::future<GetFileTransOutcome> GetFileTransOutcomeCallable;
|
||||
typedef std::function<void(const TingwuClient*, const Model::GetFileTransRequest&, const GetFileTransOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetFileTransAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetMeetingTransResult> GetMeetingTransOutcome;
|
||||
typedef std::future<GetMeetingTransOutcome> GetMeetingTransOutcomeCallable;
|
||||
typedef std::function<void(const TingwuClient*, const Model::GetMeetingTransRequest&, const GetMeetingTransOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetMeetingTransAsyncHandler;
|
||||
typedef Outcome<Error, Model::StopMeetingTransResult> StopMeetingTransOutcome;
|
||||
typedef std::future<StopMeetingTransOutcome> StopMeetingTransOutcomeCallable;
|
||||
typedef std::function<void(const TingwuClient*, const Model::StopMeetingTransRequest&, const StopMeetingTransOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StopMeetingTransAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateTaskResult> CreateTaskOutcome;
|
||||
typedef std::future<CreateTaskOutcome> CreateTaskOutcomeCallable;
|
||||
typedef std::function<void(const TingwuClient*, const Model::CreateTaskRequest&, const CreateTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateTaskAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateTranscriptionPhrasesResult> CreateTranscriptionPhrasesOutcome;
|
||||
typedef std::future<CreateTranscriptionPhrasesOutcome> CreateTranscriptionPhrasesOutcomeCallable;
|
||||
typedef std::function<void(const TingwuClient*, const Model::CreateTranscriptionPhrasesRequest&, const CreateTranscriptionPhrasesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateTranscriptionPhrasesAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteTranscriptionPhrasesResult> DeleteTranscriptionPhrasesOutcome;
|
||||
typedef std::future<DeleteTranscriptionPhrasesOutcome> DeleteTranscriptionPhrasesOutcomeCallable;
|
||||
typedef std::function<void(const TingwuClient*, const Model::DeleteTranscriptionPhrasesRequest&, const DeleteTranscriptionPhrasesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteTranscriptionPhrasesAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetTaskInfoResult> GetTaskInfoOutcome;
|
||||
typedef std::future<GetTaskInfoOutcome> GetTaskInfoOutcomeCallable;
|
||||
typedef std::function<void(const TingwuClient*, const Model::GetTaskInfoRequest&, const GetTaskInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTaskInfoAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetTranscriptionPhrasesResult> GetTranscriptionPhrasesOutcome;
|
||||
typedef std::future<GetTranscriptionPhrasesOutcome> GetTranscriptionPhrasesOutcomeCallable;
|
||||
typedef std::function<void(const TingwuClient*, const Model::GetTranscriptionPhrasesRequest&, const GetTranscriptionPhrasesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTranscriptionPhrasesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListTranscriptionPhrasesResult> ListTranscriptionPhrasesOutcome;
|
||||
typedef std::future<ListTranscriptionPhrasesOutcome> ListTranscriptionPhrasesOutcomeCallable;
|
||||
typedef std::function<void(const TingwuClient*, const Model::ListTranscriptionPhrasesRequest&, const ListTranscriptionPhrasesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTranscriptionPhrasesAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateTranscriptionPhrasesResult> UpdateTranscriptionPhrasesOutcome;
|
||||
typedef std::future<UpdateTranscriptionPhrasesOutcome> UpdateTranscriptionPhrasesOutcomeCallable;
|
||||
typedef std::function<void(const TingwuClient*, const Model::UpdateTranscriptionPhrasesRequest&, const UpdateTranscriptionPhrasesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateTranscriptionPhrasesAsyncHandler;
|
||||
|
||||
TingwuClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
TingwuClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
TingwuClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~TingwuClient();
|
||||
CreateFileTransOutcome createFileTrans(const Model::CreateFileTransRequest &request)const;
|
||||
void createFileTransAsync(const Model::CreateFileTransRequest& request, const CreateFileTransAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateFileTransOutcomeCallable createFileTransCallable(const Model::CreateFileTransRequest& request) const;
|
||||
CreateMeetingTransOutcome createMeetingTrans(const Model::CreateMeetingTransRequest &request)const;
|
||||
void createMeetingTransAsync(const Model::CreateMeetingTransRequest& request, const CreateMeetingTransAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateMeetingTransOutcomeCallable createMeetingTransCallable(const Model::CreateMeetingTransRequest& request) const;
|
||||
GetFileTransOutcome getFileTrans(const Model::GetFileTransRequest &request)const;
|
||||
void getFileTransAsync(const Model::GetFileTransRequest& request, const GetFileTransAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetFileTransOutcomeCallable getFileTransCallable(const Model::GetFileTransRequest& request) const;
|
||||
GetMeetingTransOutcome getMeetingTrans(const Model::GetMeetingTransRequest &request)const;
|
||||
void getMeetingTransAsync(const Model::GetMeetingTransRequest& request, const GetMeetingTransAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetMeetingTransOutcomeCallable getMeetingTransCallable(const Model::GetMeetingTransRequest& request) const;
|
||||
StopMeetingTransOutcome stopMeetingTrans(const Model::StopMeetingTransRequest &request)const;
|
||||
void stopMeetingTransAsync(const Model::StopMeetingTransRequest& request, const StopMeetingTransAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
StopMeetingTransOutcomeCallable stopMeetingTransCallable(const Model::StopMeetingTransRequest& request) const;
|
||||
CreateTaskOutcome createTask(const Model::CreateTaskRequest &request)const;
|
||||
void createTaskAsync(const Model::CreateTaskRequest& request, const CreateTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateTaskOutcomeCallable createTaskCallable(const Model::CreateTaskRequest& request) const;
|
||||
CreateTranscriptionPhrasesOutcome createTranscriptionPhrases(const Model::CreateTranscriptionPhrasesRequest &request)const;
|
||||
void createTranscriptionPhrasesAsync(const Model::CreateTranscriptionPhrasesRequest& request, const CreateTranscriptionPhrasesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateTranscriptionPhrasesOutcomeCallable createTranscriptionPhrasesCallable(const Model::CreateTranscriptionPhrasesRequest& request) const;
|
||||
DeleteTranscriptionPhrasesOutcome deleteTranscriptionPhrases(const Model::DeleteTranscriptionPhrasesRequest &request)const;
|
||||
void deleteTranscriptionPhrasesAsync(const Model::DeleteTranscriptionPhrasesRequest& request, const DeleteTranscriptionPhrasesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteTranscriptionPhrasesOutcomeCallable deleteTranscriptionPhrasesCallable(const Model::DeleteTranscriptionPhrasesRequest& request) const;
|
||||
GetTaskInfoOutcome getTaskInfo(const Model::GetTaskInfoRequest &request)const;
|
||||
void getTaskInfoAsync(const Model::GetTaskInfoRequest& request, const GetTaskInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetTaskInfoOutcomeCallable getTaskInfoCallable(const Model::GetTaskInfoRequest& request) const;
|
||||
GetTranscriptionPhrasesOutcome getTranscriptionPhrases(const Model::GetTranscriptionPhrasesRequest &request)const;
|
||||
void getTranscriptionPhrasesAsync(const Model::GetTranscriptionPhrasesRequest& request, const GetTranscriptionPhrasesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetTranscriptionPhrasesOutcomeCallable getTranscriptionPhrasesCallable(const Model::GetTranscriptionPhrasesRequest& request) const;
|
||||
ListTranscriptionPhrasesOutcome listTranscriptionPhrases(const Model::ListTranscriptionPhrasesRequest &request)const;
|
||||
void listTranscriptionPhrasesAsync(const Model::ListTranscriptionPhrasesRequest& request, const ListTranscriptionPhrasesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListTranscriptionPhrasesOutcomeCallable listTranscriptionPhrasesCallable(const Model::ListTranscriptionPhrasesRequest& request) const;
|
||||
UpdateTranscriptionPhrasesOutcome updateTranscriptionPhrases(const Model::UpdateTranscriptionPhrasesRequest &request)const;
|
||||
void updateTranscriptionPhrasesAsync(const Model::UpdateTranscriptionPhrasesRequest& request, const UpdateTranscriptionPhrasesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateTranscriptionPhrasesOutcomeCallable updateTranscriptionPhrasesCallable(const Model::UpdateTranscriptionPhrasesRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
|
||||
48
tingwu/include/alibabacloud/tingwu/model/CreateTaskRequest.h
Normal file
48
tingwu/include/alibabacloud/tingwu/model/CreateTaskRequest.h
Normal 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_TINGWU_MODEL_CREATETASKREQUEST_H_
|
||||
#define ALIBABACLOUD_TINGWU_MODEL_CREATETASKREQUEST_H_
|
||||
|
||||
#include <alibabacloud/tingwu/TingwuExport.h>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Tingwu {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_TINGWU_EXPORT CreateTaskRequest : public RoaServiceRequest {
|
||||
public:
|
||||
CreateTaskRequest();
|
||||
~CreateTaskRequest();
|
||||
std::string getType() const;
|
||||
void setType(const std::string &type);
|
||||
std::string getBody() const;
|
||||
void setBody(const std::string &body);
|
||||
std::string getOperation() const;
|
||||
void setOperation(const std::string &operation);
|
||||
|
||||
private:
|
||||
std::string type_;
|
||||
std::string body_;
|
||||
std::string operation_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Tingwu
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_TINGWU_MODEL_CREATETASKREQUEST_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_TINGWU_MODEL_CREATEFILETRANSRESULT_H_
|
||||
#define ALIBABACLOUD_TINGWU_MODEL_CREATEFILETRANSRESULT_H_
|
||||
#ifndef ALIBABACLOUD_TINGWU_MODEL_CREATETASKRESULT_H_
|
||||
#define ALIBABACLOUD_TINGWU_MODEL_CREATETASKRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -29,19 +29,19 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_TINGWU_EXPORT CreateFileTransResult : public ServiceResult
|
||||
class ALIBABACLOUD_TINGWU_EXPORT CreateTaskResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string transKey;
|
||||
std::string transId;
|
||||
std::string taskId;
|
||||
std::string taskKey;
|
||||
};
|
||||
|
||||
|
||||
CreateFileTransResult();
|
||||
explicit CreateFileTransResult(const std::string &payload);
|
||||
~CreateFileTransResult();
|
||||
CreateTaskResult();
|
||||
explicit CreateTaskResult(const std::string &payload);
|
||||
~CreateTaskResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
@@ -57,4 +57,4 @@ namespace AlibabaCloud
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_TINGWU_MODEL_CREATEFILETRANSRESULT_H_
|
||||
#endif // !ALIBABACLOUD_TINGWU_MODEL_CREATETASKRESULT_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_TINGWU_MODEL_CREATEFILETRANSREQUEST_H_
|
||||
#define ALIBABACLOUD_TINGWU_MODEL_CREATEFILETRANSREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_TINGWU_MODEL_CREATETRANSCRIPTIONPHRASESREQUEST_H_
|
||||
#define ALIBABACLOUD_TINGWU_MODEL_CREATETRANSCRIPTIONPHRASESREQUEST_H_
|
||||
|
||||
#include <alibabacloud/tingwu/TingwuExport.h>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
@@ -26,10 +26,10 @@
|
||||
namespace AlibabaCloud {
|
||||
namespace Tingwu {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_TINGWU_EXPORT CreateFileTransRequest : public RoaServiceRequest {
|
||||
class ALIBABACLOUD_TINGWU_EXPORT CreateTranscriptionPhrasesRequest : public RoaServiceRequest {
|
||||
public:
|
||||
CreateFileTransRequest();
|
||||
~CreateFileTransRequest();
|
||||
CreateTranscriptionPhrasesRequest();
|
||||
~CreateTranscriptionPhrasesRequest();
|
||||
std::string getBody() const;
|
||||
void setBody(const std::string &body);
|
||||
|
||||
@@ -39,4 +39,4 @@ private:
|
||||
} // namespace Model
|
||||
} // namespace Tingwu
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_TINGWU_MODEL_CREATEFILETRANSREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_TINGWU_MODEL_CREATETRANSCRIPTIONPHRASESREQUEST_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_TINGWU_MODEL_CREATEMEETINGTRANSRESULT_H_
|
||||
#define ALIBABACLOUD_TINGWU_MODEL_CREATEMEETINGTRANSRESULT_H_
|
||||
#ifndef ALIBABACLOUD_TINGWU_MODEL_CREATETRANSCRIPTIONPHRASESRESULT_H_
|
||||
#define ALIBABACLOUD_TINGWU_MODEL_CREATETRANSCRIPTIONPHRASESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -29,20 +29,21 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_TINGWU_EXPORT CreateMeetingTransResult : public ServiceResult
|
||||
class ALIBABACLOUD_TINGWU_EXPORT CreateTranscriptionPhrasesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string meetingId;
|
||||
std::string meetingJoinUrl;
|
||||
std::string meetingKey;
|
||||
std::string status;
|
||||
std::string errorCode;
|
||||
std::string errorMessage;
|
||||
std::string phraseId;
|
||||
};
|
||||
|
||||
|
||||
CreateMeetingTransResult();
|
||||
explicit CreateMeetingTransResult(const std::string &payload);
|
||||
~CreateMeetingTransResult();
|
||||
CreateTranscriptionPhrasesResult();
|
||||
explicit CreateTranscriptionPhrasesResult(const std::string &payload);
|
||||
~CreateTranscriptionPhrasesResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
@@ -58,4 +59,4 @@ namespace AlibabaCloud
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_TINGWU_MODEL_CREATEMEETINGTRANSRESULT_H_
|
||||
#endif // !ALIBABACLOUD_TINGWU_MODEL_CREATETRANSCRIPTIONPHRASESRESULT_H_
|
||||
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
* 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_TINGWU_MODEL_DELETETRANSCRIPTIONPHRASESREQUEST_H_
|
||||
#define ALIBABACLOUD_TINGWU_MODEL_DELETETRANSCRIPTIONPHRASESREQUEST_H_
|
||||
|
||||
#include <alibabacloud/tingwu/TingwuExport.h>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Tingwu {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_TINGWU_EXPORT DeleteTranscriptionPhrasesRequest : public RoaServiceRequest {
|
||||
public:
|
||||
DeleteTranscriptionPhrasesRequest();
|
||||
~DeleteTranscriptionPhrasesRequest();
|
||||
std::string getPhraseId() const;
|
||||
void setPhraseId(const std::string &phraseId);
|
||||
|
||||
private:
|
||||
std::string phraseId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Tingwu
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_TINGWU_MODEL_DELETETRANSCRIPTIONPHRASESREQUEST_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_TINGWU_MODEL_STOPMEETINGTRANSRESULT_H_
|
||||
#define ALIBABACLOUD_TINGWU_MODEL_STOPMEETINGTRANSRESULT_H_
|
||||
#ifndef ALIBABACLOUD_TINGWU_MODEL_DELETETRANSCRIPTIONPHRASESRESULT_H_
|
||||
#define ALIBABACLOUD_TINGWU_MODEL_DELETETRANSCRIPTIONPHRASESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -29,33 +29,27 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_TINGWU_EXPORT StopMeetingTransResult : public ServiceResult
|
||||
class ALIBABACLOUD_TINGWU_EXPORT DeleteTranscriptionPhrasesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string meetingStatus;
|
||||
std::string meetingId;
|
||||
std::string meetingKey;
|
||||
};
|
||||
|
||||
|
||||
StopMeetingTransResult();
|
||||
explicit StopMeetingTransResult(const std::string &payload);
|
||||
~StopMeetingTransResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
DeleteTranscriptionPhrasesResult();
|
||||
explicit DeleteTranscriptionPhrasesResult(const std::string &payload);
|
||||
~DeleteTranscriptionPhrasesResult();
|
||||
std::string getStatus()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
std::string status_;
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_TINGWU_MODEL_STOPMEETINGTRANSRESULT_H_
|
||||
#endif // !ALIBABACLOUD_TINGWU_MODEL_DELETETRANSCRIPTIONPHRASESRESULT_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_TINGWU_MODEL_GETMEETINGTRANSREQUEST_H_
|
||||
#define ALIBABACLOUD_TINGWU_MODEL_GETMEETINGTRANSREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_TINGWU_MODEL_GETTASKINFOREQUEST_H_
|
||||
#define ALIBABACLOUD_TINGWU_MODEL_GETTASKINFOREQUEST_H_
|
||||
|
||||
#include <alibabacloud/tingwu/TingwuExport.h>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
@@ -26,17 +26,17 @@
|
||||
namespace AlibabaCloud {
|
||||
namespace Tingwu {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_TINGWU_EXPORT GetMeetingTransRequest : public RoaServiceRequest {
|
||||
class ALIBABACLOUD_TINGWU_EXPORT GetTaskInfoRequest : public RoaServiceRequest {
|
||||
public:
|
||||
GetMeetingTransRequest();
|
||||
~GetMeetingTransRequest();
|
||||
string getMeetingId() const;
|
||||
void setMeetingId(string meetingId);
|
||||
GetTaskInfoRequest();
|
||||
~GetTaskInfoRequest();
|
||||
std::string getTaskId() const;
|
||||
void setTaskId(const std::string &taskId);
|
||||
|
||||
private:
|
||||
string meetingId_;
|
||||
std::string taskId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Tingwu
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_TINGWU_MODEL_GETMEETINGTRANSREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_TINGWU_MODEL_GETTASKINFOREQUEST_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_TINGWU_MODEL_GETFILETRANSRESULT_H_
|
||||
#define ALIBABACLOUD_TINGWU_MODEL_GETFILETRANSRESULT_H_
|
||||
#ifndef ALIBABACLOUD_TINGWU_MODEL_GETTASKINFORESULT_H_
|
||||
#define ALIBABACLOUD_TINGWU_MODEL_GETTASKINFORESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -29,20 +29,20 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_TINGWU_EXPORT GetFileTransResult : public ServiceResult
|
||||
class ALIBABACLOUD_TINGWU_EXPORT GetTaskInfoResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string transKey;
|
||||
std::string transStatus;
|
||||
std::string transId;
|
||||
std::string taskId;
|
||||
std::string taskStatus;
|
||||
std::string taskKey;
|
||||
};
|
||||
|
||||
|
||||
GetFileTransResult();
|
||||
explicit GetFileTransResult(const std::string &payload);
|
||||
~GetFileTransResult();
|
||||
GetTaskInfoResult();
|
||||
explicit GetTaskInfoResult(const std::string &payload);
|
||||
~GetTaskInfoResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
@@ -58,4 +58,4 @@ namespace AlibabaCloud
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_TINGWU_MODEL_GETFILETRANSRESULT_H_
|
||||
#endif // !ALIBABACLOUD_TINGWU_MODEL_GETTASKINFORESULT_H_
|
||||
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
* 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_TINGWU_MODEL_GETTRANSCRIPTIONPHRASESREQUEST_H_
|
||||
#define ALIBABACLOUD_TINGWU_MODEL_GETTRANSCRIPTIONPHRASESREQUEST_H_
|
||||
|
||||
#include <alibabacloud/tingwu/TingwuExport.h>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Tingwu {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_TINGWU_EXPORT GetTranscriptionPhrasesRequest : public RoaServiceRequest {
|
||||
public:
|
||||
GetTranscriptionPhrasesRequest();
|
||||
~GetTranscriptionPhrasesRequest();
|
||||
std::string getPhraseId() const;
|
||||
void setPhraseId(const std::string &phraseId);
|
||||
|
||||
private:
|
||||
std::string phraseId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Tingwu
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_TINGWU_MODEL_GETTRANSCRIPTIONPHRASESREQUEST_H_
|
||||
@@ -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_TINGWU_MODEL_GETTRANSCRIPTIONPHRASESRESULT_H_
|
||||
#define ALIBABACLOUD_TINGWU_MODEL_GETTRANSCRIPTIONPHRASESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/tingwu/TingwuExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Tingwu
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_TINGWU_EXPORT GetTranscriptionPhrasesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct 热词列表
|
||||
{
|
||||
std::string description;
|
||||
std::string wordWeights;
|
||||
std::string phraseId;
|
||||
std::string name;
|
||||
};
|
||||
std::string status;
|
||||
std::vector<热词列表> phrases;
|
||||
std::string errorCode;
|
||||
std::string errorMessage;
|
||||
};
|
||||
|
||||
|
||||
GetTranscriptionPhrasesResult();
|
||||
explicit GetTranscriptionPhrasesResult(const std::string &payload);
|
||||
~GetTranscriptionPhrasesResult();
|
||||
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_TINGWU_MODEL_GETTRANSCRIPTIONPHRASESRESULT_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_TINGWU_MODEL_GETFILETRANSREQUEST_H_
|
||||
#define ALIBABACLOUD_TINGWU_MODEL_GETFILETRANSREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_TINGWU_MODEL_LISTTRANSCRIPTIONPHRASESREQUEST_H_
|
||||
#define ALIBABACLOUD_TINGWU_MODEL_LISTTRANSCRIPTIONPHRASESREQUEST_H_
|
||||
|
||||
#include <alibabacloud/tingwu/TingwuExport.h>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
@@ -26,17 +26,14 @@
|
||||
namespace AlibabaCloud {
|
||||
namespace Tingwu {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_TINGWU_EXPORT GetFileTransRequest : public RoaServiceRequest {
|
||||
class ALIBABACLOUD_TINGWU_EXPORT ListTranscriptionPhrasesRequest : public RoaServiceRequest {
|
||||
public:
|
||||
GetFileTransRequest();
|
||||
~GetFileTransRequest();
|
||||
string getTransId() const;
|
||||
void setTransId(string transId);
|
||||
ListTranscriptionPhrasesRequest();
|
||||
~ListTranscriptionPhrasesRequest();
|
||||
|
||||
private:
|
||||
string transId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Tingwu
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_TINGWU_MODEL_GETFILETRANSREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_TINGWU_MODEL_LISTTRANSCRIPTIONPHRASESREQUEST_H_
|
||||
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* 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_TINGWU_MODEL_LISTTRANSCRIPTIONPHRASESRESULT_H_
|
||||
#define ALIBABACLOUD_TINGWU_MODEL_LISTTRANSCRIPTIONPHRASESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/tingwu/TingwuExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Tingwu
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_TINGWU_EXPORT ListTranscriptionPhrasesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct 热词列表
|
||||
{
|
||||
std::string description;
|
||||
std::string phraseId;
|
||||
std::string name;
|
||||
};
|
||||
std::string status;
|
||||
std::vector<热词列表> phrases;
|
||||
std::string errorCode;
|
||||
std::string errorMessage;
|
||||
};
|
||||
|
||||
|
||||
ListTranscriptionPhrasesResult();
|
||||
explicit ListTranscriptionPhrasesResult(const std::string &payload);
|
||||
~ListTranscriptionPhrasesResult();
|
||||
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_TINGWU_MODEL_LISTTRANSCRIPTIONPHRASESRESULT_H_
|
||||
@@ -1,42 +0,0 @@
|
||||
/*
|
||||
* 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_TINGWU_MODEL_STOPMEETINGTRANSREQUEST_H_
|
||||
#define ALIBABACLOUD_TINGWU_MODEL_STOPMEETINGTRANSREQUEST_H_
|
||||
|
||||
#include <alibabacloud/tingwu/TingwuExport.h>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Tingwu {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_TINGWU_EXPORT StopMeetingTransRequest : public RoaServiceRequest {
|
||||
public:
|
||||
StopMeetingTransRequest();
|
||||
~StopMeetingTransRequest();
|
||||
string getMeetingId() const;
|
||||
void setMeetingId(string meetingId);
|
||||
|
||||
private:
|
||||
string meetingId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Tingwu
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_TINGWU_MODEL_STOPMEETINGTRANSREQUEST_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_TINGWU_MODEL_CREATEMEETINGTRANSREQUEST_H_
|
||||
#define ALIBABACLOUD_TINGWU_MODEL_CREATEMEETINGTRANSREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_TINGWU_MODEL_UPDATETRANSCRIPTIONPHRASESREQUEST_H_
|
||||
#define ALIBABACLOUD_TINGWU_MODEL_UPDATETRANSCRIPTIONPHRASESREQUEST_H_
|
||||
|
||||
#include <alibabacloud/tingwu/TingwuExport.h>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
@@ -26,17 +26,20 @@
|
||||
namespace AlibabaCloud {
|
||||
namespace Tingwu {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_TINGWU_EXPORT CreateMeetingTransRequest : public RoaServiceRequest {
|
||||
class ALIBABACLOUD_TINGWU_EXPORT UpdateTranscriptionPhrasesRequest : public RoaServiceRequest {
|
||||
public:
|
||||
CreateMeetingTransRequest();
|
||||
~CreateMeetingTransRequest();
|
||||
UpdateTranscriptionPhrasesRequest();
|
||||
~UpdateTranscriptionPhrasesRequest();
|
||||
std::string getBody() const;
|
||||
void setBody(const std::string &body);
|
||||
std::string getPhraseId() const;
|
||||
void setPhraseId(const std::string &phraseId);
|
||||
|
||||
private:
|
||||
std::string body_;
|
||||
std::string phraseId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Tingwu
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_TINGWU_MODEL_CREATEMEETINGTRANSREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_TINGWU_MODEL_UPDATETRANSCRIPTIONPHRASESREQUEST_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_TINGWU_MODEL_GETMEETINGTRANSRESULT_H_
|
||||
#define ALIBABACLOUD_TINGWU_MODEL_GETMEETINGTRANSRESULT_H_
|
||||
#ifndef ALIBABACLOUD_TINGWU_MODEL_UPDATETRANSCRIPTIONPHRASESRESULT_H_
|
||||
#define ALIBABACLOUD_TINGWU_MODEL_UPDATETRANSCRIPTIONPHRASESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -29,20 +29,20 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_TINGWU_EXPORT GetMeetingTransResult : public ServiceResult
|
||||
class ALIBABACLOUD_TINGWU_EXPORT UpdateTranscriptionPhrasesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string meetingStatus;
|
||||
std::string meetingId;
|
||||
std::string meetingKey;
|
||||
std::string status;
|
||||
std::string errorCode;
|
||||
std::string errorMessage;
|
||||
};
|
||||
|
||||
|
||||
GetMeetingTransResult();
|
||||
explicit GetMeetingTransResult(const std::string &payload);
|
||||
~GetMeetingTransResult();
|
||||
UpdateTranscriptionPhrasesResult();
|
||||
explicit UpdateTranscriptionPhrasesResult(const std::string &payload);
|
||||
~UpdateTranscriptionPhrasesResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
@@ -58,4 +58,4 @@ namespace AlibabaCloud
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_TINGWU_MODEL_GETMEETINGTRANSRESULT_H_
|
||||
#endif // !ALIBABACLOUD_TINGWU_MODEL_UPDATETRANSCRIPTIONPHRASESRESULT_H_
|
||||
@@ -31,200 +31,272 @@ TingwuClient::TingwuClient(const Credentials &credentials, const ClientConfigura
|
||||
RoaServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "tingwupaas");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
TingwuClient::TingwuClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RoaServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "tingwupaas");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
TingwuClient::TingwuClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RoaServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "tingwupaas");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
TingwuClient::~TingwuClient()
|
||||
{}
|
||||
|
||||
TingwuClient::CreateFileTransOutcome TingwuClient::createFileTrans(const CreateFileTransRequest &request) const
|
||||
TingwuClient::CreateTaskOutcome TingwuClient::createTask(const CreateTaskRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateFileTransOutcome(endpointOutcome.error());
|
||||
return CreateTaskOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateFileTransOutcome(CreateFileTransResult(outcome.result()));
|
||||
return CreateTaskOutcome(CreateTaskResult(outcome.result()));
|
||||
else
|
||||
return CreateFileTransOutcome(outcome.error());
|
||||
return CreateTaskOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void TingwuClient::createFileTransAsync(const CreateFileTransRequest& request, const CreateFileTransAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
void TingwuClient::createTaskAsync(const CreateTaskRequest& request, const CreateTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createFileTrans(request), context);
|
||||
handler(this, request, createTask(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
TingwuClient::CreateFileTransOutcomeCallable TingwuClient::createFileTransCallable(const CreateFileTransRequest &request) const
|
||||
TingwuClient::CreateTaskOutcomeCallable TingwuClient::createTaskCallable(const CreateTaskRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateFileTransOutcome()>>(
|
||||
auto task = std::make_shared<std::packaged_task<CreateTaskOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createFileTrans(request);
|
||||
return this->createTask(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
TingwuClient::CreateMeetingTransOutcome TingwuClient::createMeetingTrans(const CreateMeetingTransRequest &request) const
|
||||
TingwuClient::CreateTranscriptionPhrasesOutcome TingwuClient::createTranscriptionPhrases(const CreateTranscriptionPhrasesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateMeetingTransOutcome(endpointOutcome.error());
|
||||
return CreateTranscriptionPhrasesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateMeetingTransOutcome(CreateMeetingTransResult(outcome.result()));
|
||||
return CreateTranscriptionPhrasesOutcome(CreateTranscriptionPhrasesResult(outcome.result()));
|
||||
else
|
||||
return CreateMeetingTransOutcome(outcome.error());
|
||||
return CreateTranscriptionPhrasesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void TingwuClient::createMeetingTransAsync(const CreateMeetingTransRequest& request, const CreateMeetingTransAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
void TingwuClient::createTranscriptionPhrasesAsync(const CreateTranscriptionPhrasesRequest& request, const CreateTranscriptionPhrasesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createMeetingTrans(request), context);
|
||||
handler(this, request, createTranscriptionPhrases(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
TingwuClient::CreateMeetingTransOutcomeCallable TingwuClient::createMeetingTransCallable(const CreateMeetingTransRequest &request) const
|
||||
TingwuClient::CreateTranscriptionPhrasesOutcomeCallable TingwuClient::createTranscriptionPhrasesCallable(const CreateTranscriptionPhrasesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateMeetingTransOutcome()>>(
|
||||
auto task = std::make_shared<std::packaged_task<CreateTranscriptionPhrasesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createMeetingTrans(request);
|
||||
return this->createTranscriptionPhrases(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
TingwuClient::GetFileTransOutcome TingwuClient::getFileTrans(const GetFileTransRequest &request) const
|
||||
TingwuClient::DeleteTranscriptionPhrasesOutcome TingwuClient::deleteTranscriptionPhrases(const DeleteTranscriptionPhrasesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetFileTransOutcome(endpointOutcome.error());
|
||||
return DeleteTranscriptionPhrasesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetFileTransOutcome(GetFileTransResult(outcome.result()));
|
||||
return DeleteTranscriptionPhrasesOutcome(DeleteTranscriptionPhrasesResult(outcome.result()));
|
||||
else
|
||||
return GetFileTransOutcome(outcome.error());
|
||||
return DeleteTranscriptionPhrasesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void TingwuClient::getFileTransAsync(const GetFileTransRequest& request, const GetFileTransAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
void TingwuClient::deleteTranscriptionPhrasesAsync(const DeleteTranscriptionPhrasesRequest& request, const DeleteTranscriptionPhrasesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getFileTrans(request), context);
|
||||
handler(this, request, deleteTranscriptionPhrases(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
TingwuClient::GetFileTransOutcomeCallable TingwuClient::getFileTransCallable(const GetFileTransRequest &request) const
|
||||
TingwuClient::DeleteTranscriptionPhrasesOutcomeCallable TingwuClient::deleteTranscriptionPhrasesCallable(const DeleteTranscriptionPhrasesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetFileTransOutcome()>>(
|
||||
auto task = std::make_shared<std::packaged_task<DeleteTranscriptionPhrasesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getFileTrans(request);
|
||||
return this->deleteTranscriptionPhrases(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
TingwuClient::GetMeetingTransOutcome TingwuClient::getMeetingTrans(const GetMeetingTransRequest &request) const
|
||||
TingwuClient::GetTaskInfoOutcome TingwuClient::getTaskInfo(const GetTaskInfoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetMeetingTransOutcome(endpointOutcome.error());
|
||||
return GetTaskInfoOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetMeetingTransOutcome(GetMeetingTransResult(outcome.result()));
|
||||
return GetTaskInfoOutcome(GetTaskInfoResult(outcome.result()));
|
||||
else
|
||||
return GetMeetingTransOutcome(outcome.error());
|
||||
return GetTaskInfoOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void TingwuClient::getMeetingTransAsync(const GetMeetingTransRequest& request, const GetMeetingTransAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
void TingwuClient::getTaskInfoAsync(const GetTaskInfoRequest& request, const GetTaskInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getMeetingTrans(request), context);
|
||||
handler(this, request, getTaskInfo(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
TingwuClient::GetMeetingTransOutcomeCallable TingwuClient::getMeetingTransCallable(const GetMeetingTransRequest &request) const
|
||||
TingwuClient::GetTaskInfoOutcomeCallable TingwuClient::getTaskInfoCallable(const GetTaskInfoRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetMeetingTransOutcome()>>(
|
||||
auto task = std::make_shared<std::packaged_task<GetTaskInfoOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getMeetingTrans(request);
|
||||
return this->getTaskInfo(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
TingwuClient::StopMeetingTransOutcome TingwuClient::stopMeetingTrans(const StopMeetingTransRequest &request) const
|
||||
TingwuClient::GetTranscriptionPhrasesOutcome TingwuClient::getTranscriptionPhrases(const GetTranscriptionPhrasesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return StopMeetingTransOutcome(endpointOutcome.error());
|
||||
return GetTranscriptionPhrasesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return StopMeetingTransOutcome(StopMeetingTransResult(outcome.result()));
|
||||
return GetTranscriptionPhrasesOutcome(GetTranscriptionPhrasesResult(outcome.result()));
|
||||
else
|
||||
return StopMeetingTransOutcome(outcome.error());
|
||||
return GetTranscriptionPhrasesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void TingwuClient::stopMeetingTransAsync(const StopMeetingTransRequest& request, const StopMeetingTransAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
void TingwuClient::getTranscriptionPhrasesAsync(const GetTranscriptionPhrasesRequest& request, const GetTranscriptionPhrasesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, stopMeetingTrans(request), context);
|
||||
handler(this, request, getTranscriptionPhrases(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
TingwuClient::StopMeetingTransOutcomeCallable TingwuClient::stopMeetingTransCallable(const StopMeetingTransRequest &request) const
|
||||
TingwuClient::GetTranscriptionPhrasesOutcomeCallable TingwuClient::getTranscriptionPhrasesCallable(const GetTranscriptionPhrasesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<StopMeetingTransOutcome()>>(
|
||||
auto task = std::make_shared<std::packaged_task<GetTranscriptionPhrasesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->stopMeetingTrans(request);
|
||||
return this->getTranscriptionPhrases(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
TingwuClient::ListTranscriptionPhrasesOutcome TingwuClient::listTranscriptionPhrases(const ListTranscriptionPhrasesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListTranscriptionPhrasesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListTranscriptionPhrasesOutcome(ListTranscriptionPhrasesResult(outcome.result()));
|
||||
else
|
||||
return ListTranscriptionPhrasesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void TingwuClient::listTranscriptionPhrasesAsync(const ListTranscriptionPhrasesRequest& request, const ListTranscriptionPhrasesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listTranscriptionPhrases(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
TingwuClient::ListTranscriptionPhrasesOutcomeCallable TingwuClient::listTranscriptionPhrasesCallable(const ListTranscriptionPhrasesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListTranscriptionPhrasesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listTranscriptionPhrases(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
TingwuClient::UpdateTranscriptionPhrasesOutcome TingwuClient::updateTranscriptionPhrases(const UpdateTranscriptionPhrasesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateTranscriptionPhrasesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateTranscriptionPhrasesOutcome(UpdateTranscriptionPhrasesResult(outcome.result()));
|
||||
else
|
||||
return UpdateTranscriptionPhrasesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void TingwuClient::updateTranscriptionPhrasesAsync(const UpdateTranscriptionPhrasesRequest& request, const UpdateTranscriptionPhrasesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateTranscriptionPhrases(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
TingwuClient::UpdateTranscriptionPhrasesOutcomeCallable TingwuClient::updateTranscriptionPhrasesCallable(const UpdateTranscriptionPhrasesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateTranscriptionPhrasesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateTranscriptionPhrases(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
|
||||
@@ -1,37 +0,0 @@
|
||||
/*
|
||||
* 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/tingwu/model/CreateFileTransRequest.h>
|
||||
|
||||
using AlibabaCloud::Tingwu::Model::CreateFileTransRequest;
|
||||
|
||||
CreateFileTransRequest::CreateFileTransRequest()
|
||||
: RoaServiceRequest("tingwu", "2022-09-30") {
|
||||
setResourcePath("/openapi/file-trans"};
|
||||
setMethod(HttpRequest::Method::Put);
|
||||
}
|
||||
|
||||
CreateFileTransRequest::~CreateFileTransRequest() {}
|
||||
|
||||
std::string CreateFileTransRequest::getBody() const {
|
||||
return body_;
|
||||
}
|
||||
|
||||
void CreateFileTransRequest::setBody(const std::string &body) {
|
||||
body_ = body;
|
||||
setBodyParameter(std::string("body"), body);
|
||||
}
|
||||
|
||||
55
tingwu/src/model/CreateTaskRequest.cc
Normal file
55
tingwu/src/model/CreateTaskRequest.cc
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/tingwu/model/CreateTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Tingwu::Model::CreateTaskRequest;
|
||||
|
||||
CreateTaskRequest::CreateTaskRequest()
|
||||
: RoaServiceRequest("tingwu", "2023-09-30") {
|
||||
setResourcePath("/openapi/tingwu/v2/tasks"};
|
||||
setMethod(HttpRequest::Method::Put);
|
||||
}
|
||||
|
||||
CreateTaskRequest::~CreateTaskRequest() {}
|
||||
|
||||
std::string CreateTaskRequest::getType() const {
|
||||
return type_;
|
||||
}
|
||||
|
||||
void CreateTaskRequest::setType(const std::string &type) {
|
||||
type_ = type;
|
||||
setParameter(std::string("type"), type);
|
||||
}
|
||||
|
||||
std::string CreateTaskRequest::getBody() const {
|
||||
return body_;
|
||||
}
|
||||
|
||||
void CreateTaskRequest::setBody(const std::string &body) {
|
||||
body_ = body;
|
||||
setBodyParameter(std::string("body"), body);
|
||||
}
|
||||
|
||||
std::string CreateTaskRequest::getOperation() const {
|
||||
return operation_;
|
||||
}
|
||||
|
||||
void CreateTaskRequest::setOperation(const std::string &operation) {
|
||||
operation_ = operation;
|
||||
setParameter(std::string("operation"), operation);
|
||||
}
|
||||
|
||||
@@ -14,36 +14,36 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/tingwu/model/CreateFileTransResult.h>
|
||||
#include <alibabacloud/tingwu/model/CreateTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Tingwu;
|
||||
using namespace AlibabaCloud::Tingwu::Model;
|
||||
|
||||
CreateFileTransResult::CreateFileTransResult() :
|
||||
CreateTaskResult::CreateTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateFileTransResult::CreateFileTransResult(const std::string &payload) :
|
||||
CreateTaskResult::CreateTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateFileTransResult::~CreateFileTransResult()
|
||||
CreateTaskResult::~CreateTaskResult()
|
||||
{}
|
||||
|
||||
void CreateFileTransResult::parse(const std::string &payload)
|
||||
void CreateTaskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["TransId"].isNull())
|
||||
data_.transId = dataNode["TransId"].asString();
|
||||
if(!dataNode["TransKey"].isNull())
|
||||
data_.transKey = dataNode["TransKey"].asString();
|
||||
if(!dataNode["TaskId"].isNull())
|
||||
data_.taskId = dataNode["TaskId"].asString();
|
||||
if(!dataNode["TaskKey"].isNull())
|
||||
data_.taskKey = dataNode["TaskKey"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
@@ -51,17 +51,17 @@ void CreateFileTransResult::parse(const std::string &payload)
|
||||
|
||||
}
|
||||
|
||||
std::string CreateFileTransResult::getMessage()const
|
||||
std::string CreateTaskResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
CreateFileTransResult::Data CreateFileTransResult::getData()const
|
||||
CreateTaskResult::Data CreateTaskResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateFileTransResult::getCode()const
|
||||
std::string CreateTaskResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
@@ -14,23 +14,23 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/tingwu/model/CreateMeetingTransRequest.h>
|
||||
#include <alibabacloud/tingwu/model/CreateTranscriptionPhrasesRequest.h>
|
||||
|
||||
using AlibabaCloud::Tingwu::Model::CreateMeetingTransRequest;
|
||||
using AlibabaCloud::Tingwu::Model::CreateTranscriptionPhrasesRequest;
|
||||
|
||||
CreateMeetingTransRequest::CreateMeetingTransRequest()
|
||||
: RoaServiceRequest("tingwu", "2022-09-30") {
|
||||
setResourcePath("/openapi/meeting-trans"};
|
||||
setMethod(HttpRequest::Method::Put);
|
||||
CreateTranscriptionPhrasesRequest::CreateTranscriptionPhrasesRequest()
|
||||
: RoaServiceRequest("tingwu", "2023-09-30") {
|
||||
setResourcePath("/openapi/tingwu/v2/resources/phrases"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateMeetingTransRequest::~CreateMeetingTransRequest() {}
|
||||
CreateTranscriptionPhrasesRequest::~CreateTranscriptionPhrasesRequest() {}
|
||||
|
||||
std::string CreateMeetingTransRequest::getBody() const {
|
||||
std::string CreateTranscriptionPhrasesRequest::getBody() const {
|
||||
return body_;
|
||||
}
|
||||
|
||||
void CreateMeetingTransRequest::setBody(const std::string &body) {
|
||||
void CreateTranscriptionPhrasesRequest::setBody(const std::string &body) {
|
||||
body_ = body;
|
||||
setBodyParameter(std::string("body"), body);
|
||||
}
|
||||
@@ -14,38 +14,40 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/tingwu/model/CreateMeetingTransResult.h>
|
||||
#include <alibabacloud/tingwu/model/CreateTranscriptionPhrasesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Tingwu;
|
||||
using namespace AlibabaCloud::Tingwu::Model;
|
||||
|
||||
CreateMeetingTransResult::CreateMeetingTransResult() :
|
||||
CreateTranscriptionPhrasesResult::CreateTranscriptionPhrasesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateMeetingTransResult::CreateMeetingTransResult(const std::string &payload) :
|
||||
CreateTranscriptionPhrasesResult::CreateTranscriptionPhrasesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateMeetingTransResult::~CreateMeetingTransResult()
|
||||
CreateTranscriptionPhrasesResult::~CreateTranscriptionPhrasesResult()
|
||||
{}
|
||||
|
||||
void CreateMeetingTransResult::parse(const std::string &payload)
|
||||
void CreateTranscriptionPhrasesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["MeetingId"].isNull())
|
||||
data_.meetingId = dataNode["MeetingId"].asString();
|
||||
if(!dataNode["MeetingJoinUrl"].isNull())
|
||||
data_.meetingJoinUrl = dataNode["MeetingJoinUrl"].asString();
|
||||
if(!dataNode["MeetingKey"].isNull())
|
||||
data_.meetingKey = dataNode["MeetingKey"].asString();
|
||||
if(!dataNode["Status"].isNull())
|
||||
data_.status = dataNode["Status"].asString();
|
||||
if(!dataNode["PhraseId"].isNull())
|
||||
data_.phraseId = dataNode["PhraseId"].asString();
|
||||
if(!dataNode["ErrorCode"].isNull())
|
||||
data_.errorCode = dataNode["ErrorCode"].asString();
|
||||
if(!dataNode["ErrorMessage"].isNull())
|
||||
data_.errorMessage = dataNode["ErrorMessage"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
@@ -53,17 +55,17 @@ void CreateMeetingTransResult::parse(const std::string &payload)
|
||||
|
||||
}
|
||||
|
||||
std::string CreateMeetingTransResult::getMessage()const
|
||||
std::string CreateTranscriptionPhrasesResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
CreateMeetingTransResult::Data CreateMeetingTransResult::getData()const
|
||||
CreateTranscriptionPhrasesResult::Data CreateTranscriptionPhrasesResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateMeetingTransResult::getCode()const
|
||||
std::string CreateTranscriptionPhrasesResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
37
tingwu/src/model/DeleteTranscriptionPhrasesRequest.cc
Normal file
37
tingwu/src/model/DeleteTranscriptionPhrasesRequest.cc
Normal file
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
* 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/tingwu/model/DeleteTranscriptionPhrasesRequest.h>
|
||||
|
||||
using AlibabaCloud::Tingwu::Model::DeleteTranscriptionPhrasesRequest;
|
||||
|
||||
DeleteTranscriptionPhrasesRequest::DeleteTranscriptionPhrasesRequest()
|
||||
: RoaServiceRequest("tingwu", "2023-09-30") {
|
||||
setResourcePath("/openapi/tingwu/v2/resources/phrases/[PhraseId]"};
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteTranscriptionPhrasesRequest::~DeleteTranscriptionPhrasesRequest() {}
|
||||
|
||||
std::string DeleteTranscriptionPhrasesRequest::getPhraseId() const {
|
||||
return phraseId_;
|
||||
}
|
||||
|
||||
void DeleteTranscriptionPhrasesRequest::setPhraseId(const std::string &phraseId) {
|
||||
phraseId_ = phraseId;
|
||||
setParameter(std::string("PhraseId"), phraseId);
|
||||
}
|
||||
|
||||
65
tingwu/src/model/DeleteTranscriptionPhrasesResult.cc
Normal file
65
tingwu/src/model/DeleteTranscriptionPhrasesResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* 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/tingwu/model/DeleteTranscriptionPhrasesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Tingwu;
|
||||
using namespace AlibabaCloud::Tingwu::Model;
|
||||
|
||||
DeleteTranscriptionPhrasesResult::DeleteTranscriptionPhrasesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteTranscriptionPhrasesResult::DeleteTranscriptionPhrasesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteTranscriptionPhrasesResult::~DeleteTranscriptionPhrasesResult()
|
||||
{}
|
||||
|
||||
void DeleteTranscriptionPhrasesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Status"].isNull())
|
||||
status_ = value["Status"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteTranscriptionPhrasesResult::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
std::string DeleteTranscriptionPhrasesResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string DeleteTranscriptionPhrasesResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
@@ -14,24 +14,24 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/tingwu/model/GetFileTransRequest.h>
|
||||
#include <alibabacloud/tingwu/model/GetTaskInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Tingwu::Model::GetFileTransRequest;
|
||||
using AlibabaCloud::Tingwu::Model::GetTaskInfoRequest;
|
||||
|
||||
GetFileTransRequest::GetFileTransRequest()
|
||||
: RoaServiceRequest("tingwu", "2022-09-30") {
|
||||
setResourcePath("/openapi/file-trans/[TransId]"};
|
||||
GetTaskInfoRequest::GetTaskInfoRequest()
|
||||
: RoaServiceRequest("tingwu", "2023-09-30") {
|
||||
setResourcePath("/openapi/tingwu/v2/tasks/[TaskId]"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetFileTransRequest::~GetFileTransRequest() {}
|
||||
GetTaskInfoRequest::~GetTaskInfoRequest() {}
|
||||
|
||||
string GetFileTransRequest::getTransId() const {
|
||||
return transId_;
|
||||
std::string GetTaskInfoRequest::getTaskId() const {
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void GetFileTransRequest::setTransId(string transId) {
|
||||
transId_ = transId;
|
||||
setParameter(std::string("TransId"), std::to_string(transId));
|
||||
void GetTaskInfoRequest::setTaskId(const std::string &taskId) {
|
||||
taskId_ = taskId;
|
||||
setParameter(std::string("TaskId"), taskId);
|
||||
}
|
||||
|
||||
@@ -14,38 +14,38 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/tingwu/model/GetFileTransResult.h>
|
||||
#include <alibabacloud/tingwu/model/GetTaskInfoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Tingwu;
|
||||
using namespace AlibabaCloud::Tingwu::Model;
|
||||
|
||||
GetFileTransResult::GetFileTransResult() :
|
||||
GetTaskInfoResult::GetTaskInfoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetFileTransResult::GetFileTransResult(const std::string &payload) :
|
||||
GetTaskInfoResult::GetTaskInfoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetFileTransResult::~GetFileTransResult()
|
||||
GetTaskInfoResult::~GetTaskInfoResult()
|
||||
{}
|
||||
|
||||
void GetFileTransResult::parse(const std::string &payload)
|
||||
void GetTaskInfoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["TransId"].isNull())
|
||||
data_.transId = dataNode["TransId"].asString();
|
||||
if(!dataNode["TransStatus"].isNull())
|
||||
data_.transStatus = dataNode["TransStatus"].asString();
|
||||
if(!dataNode["TransKey"].isNull())
|
||||
data_.transKey = dataNode["TransKey"].asString();
|
||||
if(!dataNode["TaskId"].isNull())
|
||||
data_.taskId = dataNode["TaskId"].asString();
|
||||
if(!dataNode["TaskKey"].isNull())
|
||||
data_.taskKey = dataNode["TaskKey"].asString();
|
||||
if(!dataNode["TaskStatus"].isNull())
|
||||
data_.taskStatus = dataNode["TaskStatus"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
@@ -53,17 +53,17 @@ void GetFileTransResult::parse(const std::string &payload)
|
||||
|
||||
}
|
||||
|
||||
std::string GetFileTransResult::getMessage()const
|
||||
std::string GetTaskInfoResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetFileTransResult::Data GetFileTransResult::getData()const
|
||||
GetTaskInfoResult::Data GetTaskInfoResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetFileTransResult::getCode()const
|
||||
std::string GetTaskInfoResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
37
tingwu/src/model/GetTranscriptionPhrasesRequest.cc
Normal file
37
tingwu/src/model/GetTranscriptionPhrasesRequest.cc
Normal file
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
* 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/tingwu/model/GetTranscriptionPhrasesRequest.h>
|
||||
|
||||
using AlibabaCloud::Tingwu::Model::GetTranscriptionPhrasesRequest;
|
||||
|
||||
GetTranscriptionPhrasesRequest::GetTranscriptionPhrasesRequest()
|
||||
: RoaServiceRequest("tingwu", "2023-09-30") {
|
||||
setResourcePath("/openapi/tingwu/v2/resources/phrases/[PhraseId]"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetTranscriptionPhrasesRequest::~GetTranscriptionPhrasesRequest() {}
|
||||
|
||||
std::string GetTranscriptionPhrasesRequest::getPhraseId() const {
|
||||
return phraseId_;
|
||||
}
|
||||
|
||||
void GetTranscriptionPhrasesRequest::setPhraseId(const std::string &phraseId) {
|
||||
phraseId_ = phraseId;
|
||||
setParameter(std::string("PhraseId"), phraseId);
|
||||
}
|
||||
|
||||
84
tingwu/src/model/GetTranscriptionPhrasesResult.cc
Normal file
84
tingwu/src/model/GetTranscriptionPhrasesResult.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* 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/tingwu/model/GetTranscriptionPhrasesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Tingwu;
|
||||
using namespace AlibabaCloud::Tingwu::Model;
|
||||
|
||||
GetTranscriptionPhrasesResult::GetTranscriptionPhrasesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetTranscriptionPhrasesResult::GetTranscriptionPhrasesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetTranscriptionPhrasesResult::~GetTranscriptionPhrasesResult()
|
||||
{}
|
||||
|
||||
void GetTranscriptionPhrasesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Status"].isNull())
|
||||
data_.status = dataNode["Status"].asString();
|
||||
if(!dataNode["ErrorCode"].isNull())
|
||||
data_.errorCode = dataNode["ErrorCode"].asString();
|
||||
if(!dataNode["ErrorMessage"].isNull())
|
||||
data_.errorMessage = dataNode["ErrorMessage"].asString();
|
||||
auto allPhrasesNode = dataNode["Phrases"]["热词列表"];
|
||||
for (auto dataNodePhrases热词列表 : allPhrasesNode)
|
||||
{
|
||||
Data::热词列表 热词列表Object;
|
||||
if(!dataNodePhrases热词列表["PhraseId"].isNull())
|
||||
热词列表Object.phraseId = dataNodePhrases热词列表["PhraseId"].asString();
|
||||
if(!dataNodePhrases热词列表["Name"].isNull())
|
||||
热词列表Object.name = dataNodePhrases热词列表["Name"].asString();
|
||||
if(!dataNodePhrases热词列表["Description"].isNull())
|
||||
热词列表Object.description = dataNodePhrases热词列表["Description"].asString();
|
||||
if(!dataNodePhrases热词列表["WordWeights"].isNull())
|
||||
热词列表Object.wordWeights = dataNodePhrases热词列表["WordWeights"].asString();
|
||||
data_.phrases.push_back(热词列表Object);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetTranscriptionPhrasesResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetTranscriptionPhrasesResult::Data GetTranscriptionPhrasesResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetTranscriptionPhrasesResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -14,24 +14,15 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/tingwu/model/GetMeetingTransRequest.h>
|
||||
#include <alibabacloud/tingwu/model/ListTranscriptionPhrasesRequest.h>
|
||||
|
||||
using AlibabaCloud::Tingwu::Model::GetMeetingTransRequest;
|
||||
using AlibabaCloud::Tingwu::Model::ListTranscriptionPhrasesRequest;
|
||||
|
||||
GetMeetingTransRequest::GetMeetingTransRequest()
|
||||
: RoaServiceRequest("tingwu", "2022-09-30") {
|
||||
setResourcePath("/openapi/meeting-trans/[MeetingId]"};
|
||||
ListTranscriptionPhrasesRequest::ListTranscriptionPhrasesRequest()
|
||||
: RoaServiceRequest("tingwu", "2023-09-30") {
|
||||
setResourcePath("/openapi/tingwu/v2/resources/phrases"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetMeetingTransRequest::~GetMeetingTransRequest() {}
|
||||
|
||||
string GetMeetingTransRequest::getMeetingId() const {
|
||||
return meetingId_;
|
||||
}
|
||||
|
||||
void GetMeetingTransRequest::setMeetingId(string meetingId) {
|
||||
meetingId_ = meetingId;
|
||||
setParameter(std::string("MeetingId"), std::to_string(meetingId));
|
||||
}
|
||||
ListTranscriptionPhrasesRequest::~ListTranscriptionPhrasesRequest() {}
|
||||
|
||||
82
tingwu/src/model/ListTranscriptionPhrasesResult.cc
Normal file
82
tingwu/src/model/ListTranscriptionPhrasesResult.cc
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* 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/tingwu/model/ListTranscriptionPhrasesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Tingwu;
|
||||
using namespace AlibabaCloud::Tingwu::Model;
|
||||
|
||||
ListTranscriptionPhrasesResult::ListTranscriptionPhrasesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListTranscriptionPhrasesResult::ListTranscriptionPhrasesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListTranscriptionPhrasesResult::~ListTranscriptionPhrasesResult()
|
||||
{}
|
||||
|
||||
void ListTranscriptionPhrasesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Status"].isNull())
|
||||
data_.status = dataNode["Status"].asString();
|
||||
if(!dataNode["ErrorCode"].isNull())
|
||||
data_.errorCode = dataNode["ErrorCode"].asString();
|
||||
if(!dataNode["ErrorMessage"].isNull())
|
||||
data_.errorMessage = dataNode["ErrorMessage"].asString();
|
||||
auto allPhrasesNode = dataNode["Phrases"]["热词列表"];
|
||||
for (auto dataNodePhrases热词列表 : allPhrasesNode)
|
||||
{
|
||||
Data::热词列表 热词列表Object;
|
||||
if(!dataNodePhrases热词列表["PhraseId"].isNull())
|
||||
热词列表Object.phraseId = dataNodePhrases热词列表["PhraseId"].asString();
|
||||
if(!dataNodePhrases热词列表["Name"].isNull())
|
||||
热词列表Object.name = dataNodePhrases热词列表["Name"].asString();
|
||||
if(!dataNodePhrases热词列表["Description"].isNull())
|
||||
热词列表Object.description = dataNodePhrases热词列表["Description"].asString();
|
||||
data_.phrases.push_back(热词列表Object);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListTranscriptionPhrasesResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
ListTranscriptionPhrasesResult::Data ListTranscriptionPhrasesResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListTranscriptionPhrasesResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -1,37 +0,0 @@
|
||||
/*
|
||||
* 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/tingwu/model/StopMeetingTransRequest.h>
|
||||
|
||||
using AlibabaCloud::Tingwu::Model::StopMeetingTransRequest;
|
||||
|
||||
StopMeetingTransRequest::StopMeetingTransRequest()
|
||||
: RoaServiceRequest("tingwu", "2022-09-30") {
|
||||
setResourcePath("/openapi/meeting-trans/[MeetingId]/stop"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
StopMeetingTransRequest::~StopMeetingTransRequest() {}
|
||||
|
||||
string StopMeetingTransRequest::getMeetingId() const {
|
||||
return meetingId_;
|
||||
}
|
||||
|
||||
void StopMeetingTransRequest::setMeetingId(string meetingId) {
|
||||
meetingId_ = meetingId;
|
||||
setParameter(std::string("MeetingId"), std::to_string(meetingId));
|
||||
}
|
||||
|
||||
@@ -1,70 +0,0 @@
|
||||
/*
|
||||
* 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/tingwu/model/StopMeetingTransResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Tingwu;
|
||||
using namespace AlibabaCloud::Tingwu::Model;
|
||||
|
||||
StopMeetingTransResult::StopMeetingTransResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
StopMeetingTransResult::StopMeetingTransResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
StopMeetingTransResult::~StopMeetingTransResult()
|
||||
{}
|
||||
|
||||
void StopMeetingTransResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["MeetingId"].isNull())
|
||||
data_.meetingId = dataNode["MeetingId"].asString();
|
||||
if(!dataNode["MeetingStatus"].isNull())
|
||||
data_.meetingStatus = dataNode["MeetingStatus"].asString();
|
||||
if(!dataNode["MeetingKey"].isNull())
|
||||
data_.meetingKey = dataNode["MeetingKey"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string StopMeetingTransResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
StopMeetingTransResult::Data StopMeetingTransResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string StopMeetingTransResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
46
tingwu/src/model/UpdateTranscriptionPhrasesRequest.cc
Normal file
46
tingwu/src/model/UpdateTranscriptionPhrasesRequest.cc
Normal file
@@ -0,0 +1,46 @@
|
||||
/*
|
||||
* 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/tingwu/model/UpdateTranscriptionPhrasesRequest.h>
|
||||
|
||||
using AlibabaCloud::Tingwu::Model::UpdateTranscriptionPhrasesRequest;
|
||||
|
||||
UpdateTranscriptionPhrasesRequest::UpdateTranscriptionPhrasesRequest()
|
||||
: RoaServiceRequest("tingwu", "2023-09-30") {
|
||||
setResourcePath("/openapi/tingwu/v2/resources/phrases/[PhraseId]"};
|
||||
setMethod(HttpRequest::Method::Put);
|
||||
}
|
||||
|
||||
UpdateTranscriptionPhrasesRequest::~UpdateTranscriptionPhrasesRequest() {}
|
||||
|
||||
std::string UpdateTranscriptionPhrasesRequest::getBody() const {
|
||||
return body_;
|
||||
}
|
||||
|
||||
void UpdateTranscriptionPhrasesRequest::setBody(const std::string &body) {
|
||||
body_ = body;
|
||||
setBodyParameter(std::string("body"), body);
|
||||
}
|
||||
|
||||
std::string UpdateTranscriptionPhrasesRequest::getPhraseId() const {
|
||||
return phraseId_;
|
||||
}
|
||||
|
||||
void UpdateTranscriptionPhrasesRequest::setPhraseId(const std::string &phraseId) {
|
||||
phraseId_ = phraseId;
|
||||
setParameter(std::string("PhraseId"), phraseId);
|
||||
}
|
||||
|
||||
@@ -14,38 +14,38 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/tingwu/model/GetMeetingTransResult.h>
|
||||
#include <alibabacloud/tingwu/model/UpdateTranscriptionPhrasesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Tingwu;
|
||||
using namespace AlibabaCloud::Tingwu::Model;
|
||||
|
||||
GetMeetingTransResult::GetMeetingTransResult() :
|
||||
UpdateTranscriptionPhrasesResult::UpdateTranscriptionPhrasesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetMeetingTransResult::GetMeetingTransResult(const std::string &payload) :
|
||||
UpdateTranscriptionPhrasesResult::UpdateTranscriptionPhrasesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetMeetingTransResult::~GetMeetingTransResult()
|
||||
UpdateTranscriptionPhrasesResult::~UpdateTranscriptionPhrasesResult()
|
||||
{}
|
||||
|
||||
void GetMeetingTransResult::parse(const std::string &payload)
|
||||
void UpdateTranscriptionPhrasesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["MeetingId"].isNull())
|
||||
data_.meetingId = dataNode["MeetingId"].asString();
|
||||
if(!dataNode["MeetingStatus"].isNull())
|
||||
data_.meetingStatus = dataNode["MeetingStatus"].asString();
|
||||
if(!dataNode["MeetingKey"].isNull())
|
||||
data_.meetingKey = dataNode["MeetingKey"].asString();
|
||||
if(!dataNode["Status"].isNull())
|
||||
data_.status = dataNode["Status"].asString();
|
||||
if(!dataNode["ErrorCode"].isNull())
|
||||
data_.errorCode = dataNode["ErrorCode"].asString();
|
||||
if(!dataNode["ErrorMessage"].isNull())
|
||||
data_.errorMessage = dataNode["ErrorMessage"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
@@ -53,17 +53,17 @@ void GetMeetingTransResult::parse(const std::string &payload)
|
||||
|
||||
}
|
||||
|
||||
std::string GetMeetingTransResult::getMessage()const
|
||||
std::string UpdateTranscriptionPhrasesResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetMeetingTransResult::Data GetMeetingTransResult::getData()const
|
||||
UpdateTranscriptionPhrasesResult::Data UpdateTranscriptionPhrasesResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetMeetingTransResult::getCode()const
|
||||
std::string UpdateTranscriptionPhrasesResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
Reference in New Issue
Block a user