Generated 2023-09-30 for tingwu.

This commit is contained in:
sdk-team
2023-12-12 02:51:03 +00:00
parent 9b0be63347
commit 0755e147eb
36 changed files with 1045 additions and 472 deletions

View File

@@ -1 +1 @@
1.36.1820 1.36.1821

View File

@@ -21,29 +21,37 @@ set(tingwu_public_header
include/alibabacloud/tingwu/TingwuExport.h ) include/alibabacloud/tingwu/TingwuExport.h )
set(tingwu_public_header_model set(tingwu_public_header_model
include/alibabacloud/tingwu/model/CreateFileTransRequest.h include/alibabacloud/tingwu/model/CreateTaskRequest.h
include/alibabacloud/tingwu/model/CreateFileTransResult.h include/alibabacloud/tingwu/model/CreateTaskResult.h
include/alibabacloud/tingwu/model/CreateMeetingTransRequest.h include/alibabacloud/tingwu/model/CreateTranscriptionPhrasesRequest.h
include/alibabacloud/tingwu/model/CreateMeetingTransResult.h include/alibabacloud/tingwu/model/CreateTranscriptionPhrasesResult.h
include/alibabacloud/tingwu/model/GetFileTransRequest.h include/alibabacloud/tingwu/model/DeleteTranscriptionPhrasesRequest.h
include/alibabacloud/tingwu/model/GetFileTransResult.h include/alibabacloud/tingwu/model/DeleteTranscriptionPhrasesResult.h
include/alibabacloud/tingwu/model/GetMeetingTransRequest.h include/alibabacloud/tingwu/model/GetTaskInfoRequest.h
include/alibabacloud/tingwu/model/GetMeetingTransResult.h include/alibabacloud/tingwu/model/GetTaskInfoResult.h
include/alibabacloud/tingwu/model/StopMeetingTransRequest.h include/alibabacloud/tingwu/model/GetTranscriptionPhrasesRequest.h
include/alibabacloud/tingwu/model/StopMeetingTransResult.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 set(tingwu_src
src/TingwuClient.cc src/TingwuClient.cc
src/model/CreateFileTransRequest.cc src/model/CreateTaskRequest.cc
src/model/CreateFileTransResult.cc src/model/CreateTaskResult.cc
src/model/CreateMeetingTransRequest.cc src/model/CreateTranscriptionPhrasesRequest.cc
src/model/CreateMeetingTransResult.cc src/model/CreateTranscriptionPhrasesResult.cc
src/model/GetFileTransRequest.cc src/model/DeleteTranscriptionPhrasesRequest.cc
src/model/GetFileTransResult.cc src/model/DeleteTranscriptionPhrasesResult.cc
src/model/GetMeetingTransRequest.cc src/model/GetTaskInfoRequest.cc
src/model/GetMeetingTransResult.cc src/model/GetTaskInfoResult.cc
src/model/StopMeetingTransRequest.cc src/model/GetTranscriptionPhrasesRequest.cc
src/model/StopMeetingTransResult.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} add_library(tingwu ${LIB_TYPE}
${tingwu_public_header} ${tingwu_public_header}

View File

@@ -22,16 +22,20 @@
#include <alibabacloud/core/EndpointProvider.h> #include <alibabacloud/core/EndpointProvider.h>
#include <alibabacloud/core/RoaServiceClient.h> #include <alibabacloud/core/RoaServiceClient.h>
#include "TingwuExport.h" #include "TingwuExport.h"
#include "model/CreateFileTransRequest.h" #include "model/CreateTaskRequest.h"
#include "model/CreateFileTransResult.h" #include "model/CreateTaskResult.h"
#include "model/CreateMeetingTransRequest.h" #include "model/CreateTranscriptionPhrasesRequest.h"
#include "model/CreateMeetingTransResult.h" #include "model/CreateTranscriptionPhrasesResult.h"
#include "model/GetFileTransRequest.h" #include "model/DeleteTranscriptionPhrasesRequest.h"
#include "model/GetFileTransResult.h" #include "model/DeleteTranscriptionPhrasesResult.h"
#include "model/GetMeetingTransRequest.h" #include "model/GetTaskInfoRequest.h"
#include "model/GetMeetingTransResult.h" #include "model/GetTaskInfoResult.h"
#include "model/StopMeetingTransRequest.h" #include "model/GetTranscriptionPhrasesRequest.h"
#include "model/StopMeetingTransResult.h" #include "model/GetTranscriptionPhrasesResult.h"
#include "model/ListTranscriptionPhrasesRequest.h"
#include "model/ListTranscriptionPhrasesResult.h"
#include "model/UpdateTranscriptionPhrasesRequest.h"
#include "model/UpdateTranscriptionPhrasesResult.h"
namespace AlibabaCloud namespace AlibabaCloud
@@ -41,41 +45,53 @@ namespace AlibabaCloud
class ALIBABACLOUD_TINGWU_EXPORT TingwuClient : public RoaServiceClient class ALIBABACLOUD_TINGWU_EXPORT TingwuClient : public RoaServiceClient
{ {
public: public:
typedef Outcome<Error, Model::CreateFileTransResult> CreateFileTransOutcome; typedef Outcome<Error, Model::CreateTaskResult> CreateTaskOutcome;
typedef std::future<CreateFileTransOutcome> CreateFileTransOutcomeCallable; typedef std::future<CreateTaskOutcome> CreateTaskOutcomeCallable;
typedef std::function<void(const TingwuClient*, const Model::CreateFileTransRequest&, const CreateFileTransOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateFileTransAsyncHandler; typedef std::function<void(const TingwuClient*, const Model::CreateTaskRequest&, const CreateTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateTaskAsyncHandler;
typedef Outcome<Error, Model::CreateMeetingTransResult> CreateMeetingTransOutcome; typedef Outcome<Error, Model::CreateTranscriptionPhrasesResult> CreateTranscriptionPhrasesOutcome;
typedef std::future<CreateMeetingTransOutcome> CreateMeetingTransOutcomeCallable; typedef std::future<CreateTranscriptionPhrasesOutcome> CreateTranscriptionPhrasesOutcomeCallable;
typedef std::function<void(const TingwuClient*, const Model::CreateMeetingTransRequest&, const CreateMeetingTransOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateMeetingTransAsyncHandler; typedef std::function<void(const TingwuClient*, const Model::CreateTranscriptionPhrasesRequest&, const CreateTranscriptionPhrasesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateTranscriptionPhrasesAsyncHandler;
typedef Outcome<Error, Model::GetFileTransResult> GetFileTransOutcome; typedef Outcome<Error, Model::DeleteTranscriptionPhrasesResult> DeleteTranscriptionPhrasesOutcome;
typedef std::future<GetFileTransOutcome> GetFileTransOutcomeCallable; typedef std::future<DeleteTranscriptionPhrasesOutcome> DeleteTranscriptionPhrasesOutcomeCallable;
typedef std::function<void(const TingwuClient*, const Model::GetFileTransRequest&, const GetFileTransOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetFileTransAsyncHandler; typedef std::function<void(const TingwuClient*, const Model::DeleteTranscriptionPhrasesRequest&, const DeleteTranscriptionPhrasesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteTranscriptionPhrasesAsyncHandler;
typedef Outcome<Error, Model::GetMeetingTransResult> GetMeetingTransOutcome; typedef Outcome<Error, Model::GetTaskInfoResult> GetTaskInfoOutcome;
typedef std::future<GetMeetingTransOutcome> GetMeetingTransOutcomeCallable; typedef std::future<GetTaskInfoOutcome> GetTaskInfoOutcomeCallable;
typedef std::function<void(const TingwuClient*, const Model::GetMeetingTransRequest&, const GetMeetingTransOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetMeetingTransAsyncHandler; typedef std::function<void(const TingwuClient*, const Model::GetTaskInfoRequest&, const GetTaskInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTaskInfoAsyncHandler;
typedef Outcome<Error, Model::StopMeetingTransResult> StopMeetingTransOutcome; typedef Outcome<Error, Model::GetTranscriptionPhrasesResult> GetTranscriptionPhrasesOutcome;
typedef std::future<StopMeetingTransOutcome> StopMeetingTransOutcomeCallable; typedef std::future<GetTranscriptionPhrasesOutcome> GetTranscriptionPhrasesOutcomeCallable;
typedef std::function<void(const TingwuClient*, const Model::StopMeetingTransRequest&, const StopMeetingTransOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StopMeetingTransAsyncHandler; 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 Credentials &credentials, const ClientConfiguration &configuration);
TingwuClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, 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(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
~TingwuClient(); ~TingwuClient();
CreateFileTransOutcome createFileTrans(const Model::CreateFileTransRequest &request)const; CreateTaskOutcome createTask(const Model::CreateTaskRequest &request)const;
void createFileTransAsync(const Model::CreateFileTransRequest& request, const CreateFileTransAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const; void createTaskAsync(const Model::CreateTaskRequest& request, const CreateTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateFileTransOutcomeCallable createFileTransCallable(const Model::CreateFileTransRequest& request) const; CreateTaskOutcomeCallable createTaskCallable(const Model::CreateTaskRequest& request) const;
CreateMeetingTransOutcome createMeetingTrans(const Model::CreateMeetingTransRequest &request)const; CreateTranscriptionPhrasesOutcome createTranscriptionPhrases(const Model::CreateTranscriptionPhrasesRequest &request)const;
void createMeetingTransAsync(const Model::CreateMeetingTransRequest& request, const CreateMeetingTransAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const; void createTranscriptionPhrasesAsync(const Model::CreateTranscriptionPhrasesRequest& request, const CreateTranscriptionPhrasesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateMeetingTransOutcomeCallable createMeetingTransCallable(const Model::CreateMeetingTransRequest& request) const; CreateTranscriptionPhrasesOutcomeCallable createTranscriptionPhrasesCallable(const Model::CreateTranscriptionPhrasesRequest& request) const;
GetFileTransOutcome getFileTrans(const Model::GetFileTransRequest &request)const; DeleteTranscriptionPhrasesOutcome deleteTranscriptionPhrases(const Model::DeleteTranscriptionPhrasesRequest &request)const;
void getFileTransAsync(const Model::GetFileTransRequest& request, const GetFileTransAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const; void deleteTranscriptionPhrasesAsync(const Model::DeleteTranscriptionPhrasesRequest& request, const DeleteTranscriptionPhrasesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetFileTransOutcomeCallable getFileTransCallable(const Model::GetFileTransRequest& request) const; DeleteTranscriptionPhrasesOutcomeCallable deleteTranscriptionPhrasesCallable(const Model::DeleteTranscriptionPhrasesRequest& request) const;
GetMeetingTransOutcome getMeetingTrans(const Model::GetMeetingTransRequest &request)const; GetTaskInfoOutcome getTaskInfo(const Model::GetTaskInfoRequest &request)const;
void getMeetingTransAsync(const Model::GetMeetingTransRequest& request, const GetMeetingTransAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const; void getTaskInfoAsync(const Model::GetTaskInfoRequest& request, const GetTaskInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetMeetingTransOutcomeCallable getMeetingTransCallable(const Model::GetMeetingTransRequest& request) const; GetTaskInfoOutcomeCallable getTaskInfoCallable(const Model::GetTaskInfoRequest& request) const;
StopMeetingTransOutcome stopMeetingTrans(const Model::StopMeetingTransRequest &request)const; GetTranscriptionPhrasesOutcome getTranscriptionPhrases(const Model::GetTranscriptionPhrasesRequest &request)const;
void stopMeetingTransAsync(const Model::StopMeetingTransRequest& request, const StopMeetingTransAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const; void getTranscriptionPhrasesAsync(const Model::GetTranscriptionPhrasesRequest& request, const GetTranscriptionPhrasesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
StopMeetingTransOutcomeCallable stopMeetingTransCallable(const Model::StopMeetingTransRequest& request) 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: private:
std::shared_ptr<EndpointProvider> endpointProvider_; std::shared_ptr<EndpointProvider> endpointProvider_;

View File

@@ -0,0 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_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_

View File

@@ -14,8 +14,8 @@
* limitations under the License. * limitations under the License.
*/ */
#ifndef ALIBABACLOUD_TINGWU_MODEL_CREATEFILETRANSRESULT_H_ #ifndef ALIBABACLOUD_TINGWU_MODEL_CREATETASKRESULT_H_
#define ALIBABACLOUD_TINGWU_MODEL_CREATEFILETRANSRESULT_H_ #define ALIBABACLOUD_TINGWU_MODEL_CREATETASKRESULT_H_
#include <string> #include <string>
#include <vector> #include <vector>
@@ -29,19 +29,19 @@ namespace AlibabaCloud
{ {
namespace Model namespace Model
{ {
class ALIBABACLOUD_TINGWU_EXPORT CreateFileTransResult : public ServiceResult class ALIBABACLOUD_TINGWU_EXPORT CreateTaskResult : public ServiceResult
{ {
public: public:
struct Data struct Data
{ {
std::string transKey; std::string taskId;
std::string transId; std::string taskKey;
}; };
CreateFileTransResult(); CreateTaskResult();
explicit CreateFileTransResult(const std::string &payload); explicit CreateTaskResult(const std::string &payload);
~CreateFileTransResult(); ~CreateTaskResult();
std::string getMessage()const; std::string getMessage()const;
Data getData()const; Data getData()const;
std::string getCode()const; std::string getCode()const;
@@ -57,4 +57,4 @@ namespace AlibabaCloud
} }
} }
} }
#endif // !ALIBABACLOUD_TINGWU_MODEL_CREATEFILETRANSRESULT_H_ #endif // !ALIBABACLOUD_TINGWU_MODEL_CREATETASKRESULT_H_

View File

@@ -14,8 +14,8 @@
* limitations under the License. * limitations under the License.
*/ */
#ifndef ALIBABACLOUD_TINGWU_MODEL_CREATEFILETRANSREQUEST_H_ #ifndef ALIBABACLOUD_TINGWU_MODEL_CREATETRANSCRIPTIONPHRASESREQUEST_H_
#define ALIBABACLOUD_TINGWU_MODEL_CREATEFILETRANSREQUEST_H_ #define ALIBABACLOUD_TINGWU_MODEL_CREATETRANSCRIPTIONPHRASESREQUEST_H_
#include <alibabacloud/tingwu/TingwuExport.h> #include <alibabacloud/tingwu/TingwuExport.h>
#include <alibabacloud/core/RoaServiceRequest.h> #include <alibabacloud/core/RoaServiceRequest.h>
@@ -26,10 +26,10 @@
namespace AlibabaCloud { namespace AlibabaCloud {
namespace Tingwu { namespace Tingwu {
namespace Model { namespace Model {
class ALIBABACLOUD_TINGWU_EXPORT CreateFileTransRequest : public RoaServiceRequest { class ALIBABACLOUD_TINGWU_EXPORT CreateTranscriptionPhrasesRequest : public RoaServiceRequest {
public: public:
CreateFileTransRequest(); CreateTranscriptionPhrasesRequest();
~CreateFileTransRequest(); ~CreateTranscriptionPhrasesRequest();
std::string getBody() const; std::string getBody() const;
void setBody(const std::string &body); void setBody(const std::string &body);
@@ -39,4 +39,4 @@ private:
} // namespace Model } // namespace Model
} // namespace Tingwu } // namespace Tingwu
} // namespace AlibabaCloud } // namespace AlibabaCloud
#endif // !ALIBABACLOUD_TINGWU_MODEL_CREATEFILETRANSREQUEST_H_ #endif // !ALIBABACLOUD_TINGWU_MODEL_CREATETRANSCRIPTIONPHRASESREQUEST_H_

View File

@@ -14,8 +14,8 @@
* limitations under the License. * limitations under the License.
*/ */
#ifndef ALIBABACLOUD_TINGWU_MODEL_CREATEMEETINGTRANSRESULT_H_ #ifndef ALIBABACLOUD_TINGWU_MODEL_CREATETRANSCRIPTIONPHRASESRESULT_H_
#define ALIBABACLOUD_TINGWU_MODEL_CREATEMEETINGTRANSRESULT_H_ #define ALIBABACLOUD_TINGWU_MODEL_CREATETRANSCRIPTIONPHRASESRESULT_H_
#include <string> #include <string>
#include <vector> #include <vector>
@@ -29,20 +29,21 @@ namespace AlibabaCloud
{ {
namespace Model namespace Model
{ {
class ALIBABACLOUD_TINGWU_EXPORT CreateMeetingTransResult : public ServiceResult class ALIBABACLOUD_TINGWU_EXPORT CreateTranscriptionPhrasesResult : public ServiceResult
{ {
public: public:
struct Data struct Data
{ {
std::string meetingId; std::string status;
std::string meetingJoinUrl; std::string errorCode;
std::string meetingKey; std::string errorMessage;
std::string phraseId;
}; };
CreateMeetingTransResult(); CreateTranscriptionPhrasesResult();
explicit CreateMeetingTransResult(const std::string &payload); explicit CreateTranscriptionPhrasesResult(const std::string &payload);
~CreateMeetingTransResult(); ~CreateTranscriptionPhrasesResult();
std::string getMessage()const; std::string getMessage()const;
Data getData()const; Data getData()const;
std::string getCode()const; std::string getCode()const;
@@ -58,4 +59,4 @@ namespace AlibabaCloud
} }
} }
} }
#endif // !ALIBABACLOUD_TINGWU_MODEL_CREATEMEETINGTRANSRESULT_H_ #endif // !ALIBABACLOUD_TINGWU_MODEL_CREATETRANSCRIPTIONPHRASESRESULT_H_

View File

@@ -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_

View File

@@ -14,8 +14,8 @@
* limitations under the License. * limitations under the License.
*/ */
#ifndef ALIBABACLOUD_TINGWU_MODEL_STOPMEETINGTRANSRESULT_H_ #ifndef ALIBABACLOUD_TINGWU_MODEL_DELETETRANSCRIPTIONPHRASESRESULT_H_
#define ALIBABACLOUD_TINGWU_MODEL_STOPMEETINGTRANSRESULT_H_ #define ALIBABACLOUD_TINGWU_MODEL_DELETETRANSCRIPTIONPHRASESRESULT_H_
#include <string> #include <string>
#include <vector> #include <vector>
@@ -29,33 +29,27 @@ namespace AlibabaCloud
{ {
namespace Model namespace Model
{ {
class ALIBABACLOUD_TINGWU_EXPORT StopMeetingTransResult : public ServiceResult class ALIBABACLOUD_TINGWU_EXPORT DeleteTranscriptionPhrasesResult : public ServiceResult
{ {
public: public:
struct Data
{
std::string meetingStatus;
std::string meetingId;
std::string meetingKey;
};
StopMeetingTransResult(); DeleteTranscriptionPhrasesResult();
explicit StopMeetingTransResult(const std::string &payload); explicit DeleteTranscriptionPhrasesResult(const std::string &payload);
~StopMeetingTransResult(); ~DeleteTranscriptionPhrasesResult();
std::string getMessage()const; std::string getStatus()const;
Data getData()const; std::string getErrorCode()const;
std::string getCode()const; std::string getErrorMessage()const;
protected: protected:
void parse(const std::string &payload); void parse(const std::string &payload);
private: private:
std::string message_; std::string status_;
Data data_; std::string errorCode_;
std::string code_; std::string errorMessage_;
}; };
} }
} }
} }
#endif // !ALIBABACLOUD_TINGWU_MODEL_STOPMEETINGTRANSRESULT_H_ #endif // !ALIBABACLOUD_TINGWU_MODEL_DELETETRANSCRIPTIONPHRASESRESULT_H_

View File

@@ -14,8 +14,8 @@
* limitations under the License. * limitations under the License.
*/ */
#ifndef ALIBABACLOUD_TINGWU_MODEL_GETMEETINGTRANSREQUEST_H_ #ifndef ALIBABACLOUD_TINGWU_MODEL_GETTASKINFOREQUEST_H_
#define ALIBABACLOUD_TINGWU_MODEL_GETMEETINGTRANSREQUEST_H_ #define ALIBABACLOUD_TINGWU_MODEL_GETTASKINFOREQUEST_H_
#include <alibabacloud/tingwu/TingwuExport.h> #include <alibabacloud/tingwu/TingwuExport.h>
#include <alibabacloud/core/RoaServiceRequest.h> #include <alibabacloud/core/RoaServiceRequest.h>
@@ -26,17 +26,17 @@
namespace AlibabaCloud { namespace AlibabaCloud {
namespace Tingwu { namespace Tingwu {
namespace Model { namespace Model {
class ALIBABACLOUD_TINGWU_EXPORT GetMeetingTransRequest : public RoaServiceRequest { class ALIBABACLOUD_TINGWU_EXPORT GetTaskInfoRequest : public RoaServiceRequest {
public: public:
GetMeetingTransRequest(); GetTaskInfoRequest();
~GetMeetingTransRequest(); ~GetTaskInfoRequest();
string getMeetingId() const; std::string getTaskId() const;
void setMeetingId(string meetingId); void setTaskId(const std::string &taskId);
private: private:
string meetingId_; std::string taskId_;
}; };
} // namespace Model } // namespace Model
} // namespace Tingwu } // namespace Tingwu
} // namespace AlibabaCloud } // namespace AlibabaCloud
#endif // !ALIBABACLOUD_TINGWU_MODEL_GETMEETINGTRANSREQUEST_H_ #endif // !ALIBABACLOUD_TINGWU_MODEL_GETTASKINFOREQUEST_H_

View File

@@ -14,8 +14,8 @@
* limitations under the License. * limitations under the License.
*/ */
#ifndef ALIBABACLOUD_TINGWU_MODEL_GETFILETRANSRESULT_H_ #ifndef ALIBABACLOUD_TINGWU_MODEL_GETTASKINFORESULT_H_
#define ALIBABACLOUD_TINGWU_MODEL_GETFILETRANSRESULT_H_ #define ALIBABACLOUD_TINGWU_MODEL_GETTASKINFORESULT_H_
#include <string> #include <string>
#include <vector> #include <vector>
@@ -29,20 +29,20 @@ namespace AlibabaCloud
{ {
namespace Model namespace Model
{ {
class ALIBABACLOUD_TINGWU_EXPORT GetFileTransResult : public ServiceResult class ALIBABACLOUD_TINGWU_EXPORT GetTaskInfoResult : public ServiceResult
{ {
public: public:
struct Data struct Data
{ {
std::string transKey; std::string taskId;
std::string transStatus; std::string taskStatus;
std::string transId; std::string taskKey;
}; };
GetFileTransResult(); GetTaskInfoResult();
explicit GetFileTransResult(const std::string &payload); explicit GetTaskInfoResult(const std::string &payload);
~GetFileTransResult(); ~GetTaskInfoResult();
std::string getMessage()const; std::string getMessage()const;
Data getData()const; Data getData()const;
std::string getCode()const; std::string getCode()const;
@@ -58,4 +58,4 @@ namespace AlibabaCloud
} }
} }
} }
#endif // !ALIBABACLOUD_TINGWU_MODEL_GETFILETRANSRESULT_H_ #endif // !ALIBABACLOUD_TINGWU_MODEL_GETTASKINFORESULT_H_

View File

@@ -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_

View File

@@ -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_

View File

@@ -14,8 +14,8 @@
* limitations under the License. * limitations under the License.
*/ */
#ifndef ALIBABACLOUD_TINGWU_MODEL_GETFILETRANSREQUEST_H_ #ifndef ALIBABACLOUD_TINGWU_MODEL_LISTTRANSCRIPTIONPHRASESREQUEST_H_
#define ALIBABACLOUD_TINGWU_MODEL_GETFILETRANSREQUEST_H_ #define ALIBABACLOUD_TINGWU_MODEL_LISTTRANSCRIPTIONPHRASESREQUEST_H_
#include <alibabacloud/tingwu/TingwuExport.h> #include <alibabacloud/tingwu/TingwuExport.h>
#include <alibabacloud/core/RoaServiceRequest.h> #include <alibabacloud/core/RoaServiceRequest.h>
@@ -26,17 +26,14 @@
namespace AlibabaCloud { namespace AlibabaCloud {
namespace Tingwu { namespace Tingwu {
namespace Model { namespace Model {
class ALIBABACLOUD_TINGWU_EXPORT GetFileTransRequest : public RoaServiceRequest { class ALIBABACLOUD_TINGWU_EXPORT ListTranscriptionPhrasesRequest : public RoaServiceRequest {
public: public:
GetFileTransRequest(); ListTranscriptionPhrasesRequest();
~GetFileTransRequest(); ~ListTranscriptionPhrasesRequest();
string getTransId() const;
void setTransId(string transId);
private: private:
string transId_;
}; };
} // namespace Model } // namespace Model
} // namespace Tingwu } // namespace Tingwu
} // namespace AlibabaCloud } // namespace AlibabaCloud
#endif // !ALIBABACLOUD_TINGWU_MODEL_GETFILETRANSREQUEST_H_ #endif // !ALIBABACLOUD_TINGWU_MODEL_LISTTRANSCRIPTIONPHRASESREQUEST_H_

View File

@@ -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_

View File

@@ -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_

View File

@@ -14,8 +14,8 @@
* limitations under the License. * limitations under the License.
*/ */
#ifndef ALIBABACLOUD_TINGWU_MODEL_CREATEMEETINGTRANSREQUEST_H_ #ifndef ALIBABACLOUD_TINGWU_MODEL_UPDATETRANSCRIPTIONPHRASESREQUEST_H_
#define ALIBABACLOUD_TINGWU_MODEL_CREATEMEETINGTRANSREQUEST_H_ #define ALIBABACLOUD_TINGWU_MODEL_UPDATETRANSCRIPTIONPHRASESREQUEST_H_
#include <alibabacloud/tingwu/TingwuExport.h> #include <alibabacloud/tingwu/TingwuExport.h>
#include <alibabacloud/core/RoaServiceRequest.h> #include <alibabacloud/core/RoaServiceRequest.h>
@@ -26,17 +26,20 @@
namespace AlibabaCloud { namespace AlibabaCloud {
namespace Tingwu { namespace Tingwu {
namespace Model { namespace Model {
class ALIBABACLOUD_TINGWU_EXPORT CreateMeetingTransRequest : public RoaServiceRequest { class ALIBABACLOUD_TINGWU_EXPORT UpdateTranscriptionPhrasesRequest : public RoaServiceRequest {
public: public:
CreateMeetingTransRequest(); UpdateTranscriptionPhrasesRequest();
~CreateMeetingTransRequest(); ~UpdateTranscriptionPhrasesRequest();
std::string getBody() const; std::string getBody() const;
void setBody(const std::string &body); void setBody(const std::string &body);
std::string getPhraseId() const;
void setPhraseId(const std::string &phraseId);
private: private:
std::string body_; std::string body_;
std::string phraseId_;
}; };
} // namespace Model } // namespace Model
} // namespace Tingwu } // namespace Tingwu
} // namespace AlibabaCloud } // namespace AlibabaCloud
#endif // !ALIBABACLOUD_TINGWU_MODEL_CREATEMEETINGTRANSREQUEST_H_ #endif // !ALIBABACLOUD_TINGWU_MODEL_UPDATETRANSCRIPTIONPHRASESREQUEST_H_

View File

@@ -14,8 +14,8 @@
* limitations under the License. * limitations under the License.
*/ */
#ifndef ALIBABACLOUD_TINGWU_MODEL_GETMEETINGTRANSRESULT_H_ #ifndef ALIBABACLOUD_TINGWU_MODEL_UPDATETRANSCRIPTIONPHRASESRESULT_H_
#define ALIBABACLOUD_TINGWU_MODEL_GETMEETINGTRANSRESULT_H_ #define ALIBABACLOUD_TINGWU_MODEL_UPDATETRANSCRIPTIONPHRASESRESULT_H_
#include <string> #include <string>
#include <vector> #include <vector>
@@ -29,20 +29,20 @@ namespace AlibabaCloud
{ {
namespace Model namespace Model
{ {
class ALIBABACLOUD_TINGWU_EXPORT GetMeetingTransResult : public ServiceResult class ALIBABACLOUD_TINGWU_EXPORT UpdateTranscriptionPhrasesResult : public ServiceResult
{ {
public: public:
struct Data struct Data
{ {
std::string meetingStatus; std::string status;
std::string meetingId; std::string errorCode;
std::string meetingKey; std::string errorMessage;
}; };
GetMeetingTransResult(); UpdateTranscriptionPhrasesResult();
explicit GetMeetingTransResult(const std::string &payload); explicit UpdateTranscriptionPhrasesResult(const std::string &payload);
~GetMeetingTransResult(); ~UpdateTranscriptionPhrasesResult();
std::string getMessage()const; std::string getMessage()const;
Data getData()const; Data getData()const;
std::string getCode()const; std::string getCode()const;
@@ -58,4 +58,4 @@ namespace AlibabaCloud
} }
} }
} }
#endif // !ALIBABACLOUD_TINGWU_MODEL_GETMEETINGTRANSRESULT_H_ #endif // !ALIBABACLOUD_TINGWU_MODEL_UPDATETRANSCRIPTIONPHRASESRESULT_H_

View File

@@ -31,200 +31,272 @@ TingwuClient::TingwuClient(const Credentials &credentials, const ClientConfigura
RoaServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration) RoaServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
{ {
auto locationClient = std::make_shared<LocationClient>(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) : TingwuClient::TingwuClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
RoaServiceClient(SERVICE_NAME, credentialsProvider, configuration) RoaServiceClient(SERVICE_NAME, credentialsProvider, configuration)
{ {
auto locationClient = std::make_shared<LocationClient>(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) : TingwuClient::TingwuClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
RoaServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration) RoaServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
{ {
auto locationClient = std::make_shared<LocationClient>(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::~TingwuClient()
{} {}
TingwuClient::CreateFileTransOutcome TingwuClient::createFileTrans(const CreateFileTransRequest &request) const TingwuClient::CreateTaskOutcome TingwuClient::createTask(const CreateTaskRequest &request) const
{ {
auto endpointOutcome = endpointProvider_->getEndpoint(); auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess()) if (!endpointOutcome.isSuccess())
return CreateFileTransOutcome(endpointOutcome.error()); return CreateTaskOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request); auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess()) if (outcome.isSuccess())
return CreateFileTransOutcome(CreateFileTransResult(outcome.result())); return CreateTaskOutcome(CreateTaskResult(outcome.result()));
else 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]() auto fn = [this, request, handler, context]()
{ {
handler(this, request, createFileTrans(request), context); handler(this, request, createTask(request), context);
}; };
asyncExecute(new Runnable(fn)); 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]() [this, request]()
{ {
return this->createFileTrans(request); return this->createTask(request);
}); });
asyncExecute(new Runnable([task]() { (*task)(); })); asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future(); return task->get_future();
} }
TingwuClient::CreateMeetingTransOutcome TingwuClient::createMeetingTrans(const CreateMeetingTransRequest &request) const TingwuClient::CreateTranscriptionPhrasesOutcome TingwuClient::createTranscriptionPhrases(const CreateTranscriptionPhrasesRequest &request) const
{ {
auto endpointOutcome = endpointProvider_->getEndpoint(); auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess()) if (!endpointOutcome.isSuccess())
return CreateMeetingTransOutcome(endpointOutcome.error()); return CreateTranscriptionPhrasesOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request); auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess()) if (outcome.isSuccess())
return CreateMeetingTransOutcome(CreateMeetingTransResult(outcome.result())); return CreateTranscriptionPhrasesOutcome(CreateTranscriptionPhrasesResult(outcome.result()));
else 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]() auto fn = [this, request, handler, context]()
{ {
handler(this, request, createMeetingTrans(request), context); handler(this, request, createTranscriptionPhrases(request), context);
}; };
asyncExecute(new Runnable(fn)); 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]() [this, request]()
{ {
return this->createMeetingTrans(request); return this->createTranscriptionPhrases(request);
}); });
asyncExecute(new Runnable([task]() { (*task)(); })); asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future(); return task->get_future();
} }
TingwuClient::GetFileTransOutcome TingwuClient::getFileTrans(const GetFileTransRequest &request) const TingwuClient::DeleteTranscriptionPhrasesOutcome TingwuClient::deleteTranscriptionPhrases(const DeleteTranscriptionPhrasesRequest &request) const
{ {
auto endpointOutcome = endpointProvider_->getEndpoint(); auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess()) if (!endpointOutcome.isSuccess())
return GetFileTransOutcome(endpointOutcome.error()); return DeleteTranscriptionPhrasesOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request); auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess()) if (outcome.isSuccess())
return GetFileTransOutcome(GetFileTransResult(outcome.result())); return DeleteTranscriptionPhrasesOutcome(DeleteTranscriptionPhrasesResult(outcome.result()));
else 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]() auto fn = [this, request, handler, context]()
{ {
handler(this, request, getFileTrans(request), context); handler(this, request, deleteTranscriptionPhrases(request), context);
}; };
asyncExecute(new Runnable(fn)); 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]() [this, request]()
{ {
return this->getFileTrans(request); return this->deleteTranscriptionPhrases(request);
}); });
asyncExecute(new Runnable([task]() { (*task)(); })); asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future(); return task->get_future();
} }
TingwuClient::GetMeetingTransOutcome TingwuClient::getMeetingTrans(const GetMeetingTransRequest &request) const TingwuClient::GetTaskInfoOutcome TingwuClient::getTaskInfo(const GetTaskInfoRequest &request) const
{ {
auto endpointOutcome = endpointProvider_->getEndpoint(); auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess()) if (!endpointOutcome.isSuccess())
return GetMeetingTransOutcome(endpointOutcome.error()); return GetTaskInfoOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request); auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess()) if (outcome.isSuccess())
return GetMeetingTransOutcome(GetMeetingTransResult(outcome.result())); return GetTaskInfoOutcome(GetTaskInfoResult(outcome.result()));
else 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]() auto fn = [this, request, handler, context]()
{ {
handler(this, request, getMeetingTrans(request), context); handler(this, request, getTaskInfo(request), context);
}; };
asyncExecute(new Runnable(fn)); 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]() [this, request]()
{ {
return this->getMeetingTrans(request); return this->getTaskInfo(request);
}); });
asyncExecute(new Runnable([task]() { (*task)(); })); asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future(); return task->get_future();
} }
TingwuClient::StopMeetingTransOutcome TingwuClient::stopMeetingTrans(const StopMeetingTransRequest &request) const TingwuClient::GetTranscriptionPhrasesOutcome TingwuClient::getTranscriptionPhrases(const GetTranscriptionPhrasesRequest &request) const
{ {
auto endpointOutcome = endpointProvider_->getEndpoint(); auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess()) if (!endpointOutcome.isSuccess())
return StopMeetingTransOutcome(endpointOutcome.error()); return GetTranscriptionPhrasesOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request); auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess()) if (outcome.isSuccess())
return StopMeetingTransOutcome(StopMeetingTransResult(outcome.result())); return GetTranscriptionPhrasesOutcome(GetTranscriptionPhrasesResult(outcome.result()));
else 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]() auto fn = [this, request, handler, context]()
{ {
handler(this, request, stopMeetingTrans(request), context); handler(this, request, getTranscriptionPhrases(request), context);
}; };
asyncExecute(new Runnable(fn)); 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]() [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)(); })); asyncExecute(new Runnable([task]() { (*task)(); }));

View File

@@ -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);
}

View 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);
}

View File

@@ -14,36 +14,36 @@
* limitations under the License. * limitations under the License.
*/ */
#include <alibabacloud/tingwu/model/CreateFileTransResult.h> #include <alibabacloud/tingwu/model/CreateTaskResult.h>
#include <json/json.h> #include <json/json.h>
using namespace AlibabaCloud::Tingwu; using namespace AlibabaCloud::Tingwu;
using namespace AlibabaCloud::Tingwu::Model; using namespace AlibabaCloud::Tingwu::Model;
CreateFileTransResult::CreateFileTransResult() : CreateTaskResult::CreateTaskResult() :
ServiceResult() ServiceResult()
{} {}
CreateFileTransResult::CreateFileTransResult(const std::string &payload) : CreateTaskResult::CreateTaskResult(const std::string &payload) :
ServiceResult() ServiceResult()
{ {
parse(payload); parse(payload);
} }
CreateFileTransResult::~CreateFileTransResult() CreateTaskResult::~CreateTaskResult()
{} {}
void CreateFileTransResult::parse(const std::string &payload) void CreateTaskResult::parse(const std::string &payload)
{ {
Json::Reader reader; Json::Reader reader;
Json::Value value; Json::Value value;
reader.parse(payload, value); reader.parse(payload, value);
setRequestId(value["RequestId"].asString()); setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"]; auto dataNode = value["Data"];
if(!dataNode["TransId"].isNull()) if(!dataNode["TaskId"].isNull())
data_.transId = dataNode["TransId"].asString(); data_.taskId = dataNode["TaskId"].asString();
if(!dataNode["TransKey"].isNull()) if(!dataNode["TaskKey"].isNull())
data_.transKey = dataNode["TransKey"].asString(); data_.taskKey = dataNode["TaskKey"].asString();
if(!value["Code"].isNull()) if(!value["Code"].isNull())
code_ = value["Code"].asString(); code_ = value["Code"].asString();
if(!value["Message"].isNull()) 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_; return message_;
} }
CreateFileTransResult::Data CreateFileTransResult::getData()const CreateTaskResult::Data CreateTaskResult::getData()const
{ {
return data_; return data_;
} }
std::string CreateFileTransResult::getCode()const std::string CreateTaskResult::getCode()const
{ {
return code_; return code_;
} }

View File

@@ -14,23 +14,23 @@
* limitations under the License. * 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() CreateTranscriptionPhrasesRequest::CreateTranscriptionPhrasesRequest()
: RoaServiceRequest("tingwu", "2022-09-30") { : RoaServiceRequest("tingwu", "2023-09-30") {
setResourcePath("/openapi/meeting-trans"}; setResourcePath("/openapi/tingwu/v2/resources/phrases"};
setMethod(HttpRequest::Method::Put); setMethod(HttpRequest::Method::Post);
} }
CreateMeetingTransRequest::~CreateMeetingTransRequest() {} CreateTranscriptionPhrasesRequest::~CreateTranscriptionPhrasesRequest() {}
std::string CreateMeetingTransRequest::getBody() const { std::string CreateTranscriptionPhrasesRequest::getBody() const {
return body_; return body_;
} }
void CreateMeetingTransRequest::setBody(const std::string &body) { void CreateTranscriptionPhrasesRequest::setBody(const std::string &body) {
body_ = body; body_ = body;
setBodyParameter(std::string("body"), body); setBodyParameter(std::string("body"), body);
} }

View File

@@ -14,38 +14,40 @@
* limitations under the License. * limitations under the License.
*/ */
#include <alibabacloud/tingwu/model/CreateMeetingTransResult.h> #include <alibabacloud/tingwu/model/CreateTranscriptionPhrasesResult.h>
#include <json/json.h> #include <json/json.h>
using namespace AlibabaCloud::Tingwu; using namespace AlibabaCloud::Tingwu;
using namespace AlibabaCloud::Tingwu::Model; using namespace AlibabaCloud::Tingwu::Model;
CreateMeetingTransResult::CreateMeetingTransResult() : CreateTranscriptionPhrasesResult::CreateTranscriptionPhrasesResult() :
ServiceResult() ServiceResult()
{} {}
CreateMeetingTransResult::CreateMeetingTransResult(const std::string &payload) : CreateTranscriptionPhrasesResult::CreateTranscriptionPhrasesResult(const std::string &payload) :
ServiceResult() ServiceResult()
{ {
parse(payload); parse(payload);
} }
CreateMeetingTransResult::~CreateMeetingTransResult() CreateTranscriptionPhrasesResult::~CreateTranscriptionPhrasesResult()
{} {}
void CreateMeetingTransResult::parse(const std::string &payload) void CreateTranscriptionPhrasesResult::parse(const std::string &payload)
{ {
Json::Reader reader; Json::Reader reader;
Json::Value value; Json::Value value;
reader.parse(payload, value); reader.parse(payload, value);
setRequestId(value["RequestId"].asString()); setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"]; auto dataNode = value["Data"];
if(!dataNode["MeetingId"].isNull()) if(!dataNode["Status"].isNull())
data_.meetingId = dataNode["MeetingId"].asString(); data_.status = dataNode["Status"].asString();
if(!dataNode["MeetingJoinUrl"].isNull()) if(!dataNode["PhraseId"].isNull())
data_.meetingJoinUrl = dataNode["MeetingJoinUrl"].asString(); data_.phraseId = dataNode["PhraseId"].asString();
if(!dataNode["MeetingKey"].isNull()) if(!dataNode["ErrorCode"].isNull())
data_.meetingKey = dataNode["MeetingKey"].asString(); data_.errorCode = dataNode["ErrorCode"].asString();
if(!dataNode["ErrorMessage"].isNull())
data_.errorMessage = dataNode["ErrorMessage"].asString();
if(!value["Code"].isNull()) if(!value["Code"].isNull())
code_ = value["Code"].asString(); code_ = value["Code"].asString();
if(!value["Message"].isNull()) 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_; return message_;
} }
CreateMeetingTransResult::Data CreateMeetingTransResult::getData()const CreateTranscriptionPhrasesResult::Data CreateTranscriptionPhrasesResult::getData()const
{ {
return data_; return data_;
} }
std::string CreateMeetingTransResult::getCode()const std::string CreateTranscriptionPhrasesResult::getCode()const
{ {
return code_; return code_;
} }

View 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);
}

View 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_;
}

View File

@@ -14,24 +14,24 @@
* limitations under the License. * 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() GetTaskInfoRequest::GetTaskInfoRequest()
: RoaServiceRequest("tingwu", "2022-09-30") { : RoaServiceRequest("tingwu", "2023-09-30") {
setResourcePath("/openapi/file-trans/[TransId]"}; setResourcePath("/openapi/tingwu/v2/tasks/[TaskId]"};
setMethod(HttpRequest::Method::Get); setMethod(HttpRequest::Method::Get);
} }
GetFileTransRequest::~GetFileTransRequest() {} GetTaskInfoRequest::~GetTaskInfoRequest() {}
string GetFileTransRequest::getTransId() const { std::string GetTaskInfoRequest::getTaskId() const {
return transId_; return taskId_;
} }
void GetFileTransRequest::setTransId(string transId) { void GetTaskInfoRequest::setTaskId(const std::string &taskId) {
transId_ = transId; taskId_ = taskId;
setParameter(std::string("TransId"), std::to_string(transId)); setParameter(std::string("TaskId"), taskId);
} }

View File

@@ -14,38 +14,38 @@
* limitations under the License. * limitations under the License.
*/ */
#include <alibabacloud/tingwu/model/GetFileTransResult.h> #include <alibabacloud/tingwu/model/GetTaskInfoResult.h>
#include <json/json.h> #include <json/json.h>
using namespace AlibabaCloud::Tingwu; using namespace AlibabaCloud::Tingwu;
using namespace AlibabaCloud::Tingwu::Model; using namespace AlibabaCloud::Tingwu::Model;
GetFileTransResult::GetFileTransResult() : GetTaskInfoResult::GetTaskInfoResult() :
ServiceResult() ServiceResult()
{} {}
GetFileTransResult::GetFileTransResult(const std::string &payload) : GetTaskInfoResult::GetTaskInfoResult(const std::string &payload) :
ServiceResult() ServiceResult()
{ {
parse(payload); parse(payload);
} }
GetFileTransResult::~GetFileTransResult() GetTaskInfoResult::~GetTaskInfoResult()
{} {}
void GetFileTransResult::parse(const std::string &payload) void GetTaskInfoResult::parse(const std::string &payload)
{ {
Json::Reader reader; Json::Reader reader;
Json::Value value; Json::Value value;
reader.parse(payload, value); reader.parse(payload, value);
setRequestId(value["RequestId"].asString()); setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"]; auto dataNode = value["Data"];
if(!dataNode["TransId"].isNull()) if(!dataNode["TaskId"].isNull())
data_.transId = dataNode["TransId"].asString(); data_.taskId = dataNode["TaskId"].asString();
if(!dataNode["TransStatus"].isNull()) if(!dataNode["TaskKey"].isNull())
data_.transStatus = dataNode["TransStatus"].asString(); data_.taskKey = dataNode["TaskKey"].asString();
if(!dataNode["TransKey"].isNull()) if(!dataNode["TaskStatus"].isNull())
data_.transKey = dataNode["TransKey"].asString(); data_.taskStatus = dataNode["TaskStatus"].asString();
if(!value["Code"].isNull()) if(!value["Code"].isNull())
code_ = value["Code"].asString(); code_ = value["Code"].asString();
if(!value["Message"].isNull()) 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_; return message_;
} }
GetFileTransResult::Data GetFileTransResult::getData()const GetTaskInfoResult::Data GetTaskInfoResult::getData()const
{ {
return data_; return data_;
} }
std::string GetFileTransResult::getCode()const std::string GetTaskInfoResult::getCode()const
{ {
return code_; return code_;
} }

View 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);
}

View 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_;
}

View File

@@ -14,24 +14,15 @@
* limitations under the License. * 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() ListTranscriptionPhrasesRequest::ListTranscriptionPhrasesRequest()
: RoaServiceRequest("tingwu", "2022-09-30") { : RoaServiceRequest("tingwu", "2023-09-30") {
setResourcePath("/openapi/meeting-trans/[MeetingId]"}; setResourcePath("/openapi/tingwu/v2/resources/phrases"};
setMethod(HttpRequest::Method::Get); setMethod(HttpRequest::Method::Get);
} }
GetMeetingTransRequest::~GetMeetingTransRequest() {} ListTranscriptionPhrasesRequest::~ListTranscriptionPhrasesRequest() {}
string GetMeetingTransRequest::getMeetingId() const {
return meetingId_;
}
void GetMeetingTransRequest::setMeetingId(string meetingId) {
meetingId_ = meetingId;
setParameter(std::string("MeetingId"), std::to_string(meetingId));
}

View 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_;
}

View File

@@ -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));
}

View File

@@ -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_;
}

View 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);
}

View File

@@ -14,38 +14,38 @@
* limitations under the License. * limitations under the License.
*/ */
#include <alibabacloud/tingwu/model/GetMeetingTransResult.h> #include <alibabacloud/tingwu/model/UpdateTranscriptionPhrasesResult.h>
#include <json/json.h> #include <json/json.h>
using namespace AlibabaCloud::Tingwu; using namespace AlibabaCloud::Tingwu;
using namespace AlibabaCloud::Tingwu::Model; using namespace AlibabaCloud::Tingwu::Model;
GetMeetingTransResult::GetMeetingTransResult() : UpdateTranscriptionPhrasesResult::UpdateTranscriptionPhrasesResult() :
ServiceResult() ServiceResult()
{} {}
GetMeetingTransResult::GetMeetingTransResult(const std::string &payload) : UpdateTranscriptionPhrasesResult::UpdateTranscriptionPhrasesResult(const std::string &payload) :
ServiceResult() ServiceResult()
{ {
parse(payload); parse(payload);
} }
GetMeetingTransResult::~GetMeetingTransResult() UpdateTranscriptionPhrasesResult::~UpdateTranscriptionPhrasesResult()
{} {}
void GetMeetingTransResult::parse(const std::string &payload) void UpdateTranscriptionPhrasesResult::parse(const std::string &payload)
{ {
Json::Reader reader; Json::Reader reader;
Json::Value value; Json::Value value;
reader.parse(payload, value); reader.parse(payload, value);
setRequestId(value["RequestId"].asString()); setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"]; auto dataNode = value["Data"];
if(!dataNode["MeetingId"].isNull()) if(!dataNode["Status"].isNull())
data_.meetingId = dataNode["MeetingId"].asString(); data_.status = dataNode["Status"].asString();
if(!dataNode["MeetingStatus"].isNull()) if(!dataNode["ErrorCode"].isNull())
data_.meetingStatus = dataNode["MeetingStatus"].asString(); data_.errorCode = dataNode["ErrorCode"].asString();
if(!dataNode["MeetingKey"].isNull()) if(!dataNode["ErrorMessage"].isNull())
data_.meetingKey = dataNode["MeetingKey"].asString(); data_.errorMessage = dataNode["ErrorMessage"].asString();
if(!value["Code"].isNull()) if(!value["Code"].isNull())
code_ = value["Code"].asString(); code_ = value["Code"].asString();
if(!value["Message"].isNull()) 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_; return message_;
} }
GetMeetingTransResult::Data GetMeetingTransResult::getData()const UpdateTranscriptionPhrasesResult::Data UpdateTranscriptionPhrasesResult::getData()const
{ {
return data_; return data_;
} }
std::string GetMeetingTransResult::getCode()const std::string UpdateTranscriptionPhrasesResult::getCode()const
{ {
return code_; return code_;
} }