Init.
This commit is contained in:
102
tingwu/CMakeLists.txt
Normal file
102
tingwu/CMakeLists.txt
Normal file
@@ -0,0 +1,102 @@
|
||||
#
|
||||
# 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.
|
||||
#
|
||||
|
||||
set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include)
|
||||
|
||||
set(tingwu_public_header
|
||||
include/alibabacloud/tingwu/TingwuClient.h
|
||||
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 )
|
||||
|
||||
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 )
|
||||
|
||||
add_library(tingwu ${LIB_TYPE}
|
||||
${tingwu_public_header}
|
||||
${tingwu_public_header_model}
|
||||
${tingwu_src})
|
||||
|
||||
set_target_properties(tingwu
|
||||
PROPERTIES
|
||||
LINKER_LANGUAGE CXX
|
||||
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
|
||||
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
|
||||
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
|
||||
OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}tingwu
|
||||
)
|
||||
|
||||
if(${LIB_TYPE} STREQUAL "SHARED")
|
||||
set_target_properties(tingwu
|
||||
PROPERTIES
|
||||
DEFINE_SYMBOL ALIBABACLOUD_TINGWU_LIBRARY)
|
||||
endif()
|
||||
|
||||
target_include_directories(tingwu
|
||||
PRIVATE include
|
||||
${CMAKE_SOURCE_DIR}/core/include
|
||||
)
|
||||
target_link_libraries(tingwu
|
||||
core)
|
||||
|
||||
if(CMAKE_HOST_WIN32)
|
||||
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
|
||||
set(jsoncpp_install_dir ${INSTALL_DIR})
|
||||
add_dependencies(tingwu
|
||||
jsoncpp)
|
||||
target_include_directories(tingwu
|
||||
PRIVATE ${jsoncpp_install_dir}/include)
|
||||
target_link_libraries(tingwu
|
||||
${jsoncpp_install_dir}/lib/jsoncpp.lib)
|
||||
set_target_properties(tingwu
|
||||
PROPERTIES
|
||||
COMPILE_OPTIONS "/bigobj")
|
||||
else()
|
||||
target_include_directories(tingwu
|
||||
PRIVATE /usr/include/jsoncpp)
|
||||
target_link_libraries(tingwu
|
||||
jsoncpp)
|
||||
endif()
|
||||
|
||||
install(FILES ${tingwu_public_header}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/tingwu)
|
||||
install(FILES ${tingwu_public_header_model}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/tingwu/model)
|
||||
install(TARGETS tingwu
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
)
|
||||
86
tingwu/include/alibabacloud/tingwu/TingwuClient.h
Normal file
86
tingwu/include/alibabacloud/tingwu/TingwuClient.h
Normal file
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
* 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_TINGWUCLIENT_H_
|
||||
#define ALIBABACLOUD_TINGWU_TINGWUCLIENT_H_
|
||||
|
||||
#include <future>
|
||||
#include <alibabacloud/core/AsyncCallerContext.h>
|
||||
#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"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Tingwu
|
||||
{
|
||||
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;
|
||||
|
||||
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;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !ALIBABACLOUD_TINGWU_TINGWUCLIENT_H_
|
||||
32
tingwu/include/alibabacloud/tingwu/TingwuExport.h
Normal file
32
tingwu/include/alibabacloud/tingwu/TingwuExport.h
Normal file
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* 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_TINGWUEXPORT_H_
|
||||
#define ALIBABACLOUD_TINGWU_TINGWUEXPORT_H_
|
||||
|
||||
#include <alibabacloud/core/Global.h>
|
||||
|
||||
#if defined(ALIBABACLOUD_SHARED)
|
||||
# if defined(ALIBABACLOUD_TINGWU_LIBRARY)
|
||||
# define ALIBABACLOUD_TINGWU_EXPORT ALIBABACLOUD_DECL_EXPORT
|
||||
# else
|
||||
# define ALIBABACLOUD_TINGWU_EXPORT ALIBABACLOUD_DECL_IMPORT
|
||||
# endif
|
||||
#else
|
||||
# define ALIBABACLOUD_TINGWU_EXPORT
|
||||
#endif
|
||||
|
||||
#endif // !ALIBABACLOUD_TINGWU_TINGWUEXPORT_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_CREATEFILETRANSREQUEST_H_
|
||||
#define ALIBABACLOUD_TINGWU_MODEL_CREATEFILETRANSREQUEST_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 CreateFileTransRequest : public RoaServiceRequest {
|
||||
public:
|
||||
CreateFileTransRequest();
|
||||
~CreateFileTransRequest();
|
||||
std::string getBody() const;
|
||||
void setBody(const std::string &body);
|
||||
|
||||
private:
|
||||
std::string body_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Tingwu
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_TINGWU_MODEL_CREATEFILETRANSREQUEST_H_
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_TINGWU_MODEL_CREATEFILETRANSRESULT_H_
|
||||
#define ALIBABACLOUD_TINGWU_MODEL_CREATEFILETRANSRESULT_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 CreateFileTransResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string transKey;
|
||||
std::string transId;
|
||||
};
|
||||
|
||||
|
||||
CreateFileTransResult();
|
||||
explicit CreateFileTransResult(const std::string &payload);
|
||||
~CreateFileTransResult();
|
||||
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_CREATEFILETRANSRESULT_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_CREATEMEETINGTRANSREQUEST_H_
|
||||
#define ALIBABACLOUD_TINGWU_MODEL_CREATEMEETINGTRANSREQUEST_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 CreateMeetingTransRequest : public RoaServiceRequest {
|
||||
public:
|
||||
CreateMeetingTransRequest();
|
||||
~CreateMeetingTransRequest();
|
||||
std::string getBody() const;
|
||||
void setBody(const std::string &body);
|
||||
|
||||
private:
|
||||
std::string body_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Tingwu
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_TINGWU_MODEL_CREATEMEETINGTRANSREQUEST_H_
|
||||
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* 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_CREATEMEETINGTRANSRESULT_H_
|
||||
#define ALIBABACLOUD_TINGWU_MODEL_CREATEMEETINGTRANSRESULT_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 CreateMeetingTransResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string meetingId;
|
||||
std::string meetingJoinUrl;
|
||||
std::string meetingKey;
|
||||
};
|
||||
|
||||
|
||||
CreateMeetingTransResult();
|
||||
explicit CreateMeetingTransResult(const std::string &payload);
|
||||
~CreateMeetingTransResult();
|
||||
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_CREATEMEETINGTRANSRESULT_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_GETFILETRANSREQUEST_H_
|
||||
#define ALIBABACLOUD_TINGWU_MODEL_GETFILETRANSREQUEST_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 GetFileTransRequest : public RoaServiceRequest {
|
||||
public:
|
||||
GetFileTransRequest();
|
||||
~GetFileTransRequest();
|
||||
string getTransId() const;
|
||||
void setTransId(string transId);
|
||||
|
||||
private:
|
||||
string transId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Tingwu
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_TINGWU_MODEL_GETFILETRANSREQUEST_H_
|
||||
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* 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_GETFILETRANSRESULT_H_
|
||||
#define ALIBABACLOUD_TINGWU_MODEL_GETFILETRANSRESULT_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 GetFileTransResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string transKey;
|
||||
std::string transStatus;
|
||||
std::string transId;
|
||||
};
|
||||
|
||||
|
||||
GetFileTransResult();
|
||||
explicit GetFileTransResult(const std::string &payload);
|
||||
~GetFileTransResult();
|
||||
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_GETFILETRANSRESULT_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_GETMEETINGTRANSREQUEST_H_
|
||||
#define ALIBABACLOUD_TINGWU_MODEL_GETMEETINGTRANSREQUEST_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 GetMeetingTransRequest : public RoaServiceRequest {
|
||||
public:
|
||||
GetMeetingTransRequest();
|
||||
~GetMeetingTransRequest();
|
||||
string getMeetingId() const;
|
||||
void setMeetingId(string meetingId);
|
||||
|
||||
private:
|
||||
string meetingId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Tingwu
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_TINGWU_MODEL_GETMEETINGTRANSREQUEST_H_
|
||||
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* 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_GETMEETINGTRANSRESULT_H_
|
||||
#define ALIBABACLOUD_TINGWU_MODEL_GETMEETINGTRANSRESULT_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 GetMeetingTransResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string meetingStatus;
|
||||
std::string meetingId;
|
||||
std::string meetingKey;
|
||||
};
|
||||
|
||||
|
||||
GetMeetingTransResult();
|
||||
explicit GetMeetingTransResult(const std::string &payload);
|
||||
~GetMeetingTransResult();
|
||||
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_GETMEETINGTRANSRESULT_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_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_
|
||||
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* 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_STOPMEETINGTRANSRESULT_H_
|
||||
#define ALIBABACLOUD_TINGWU_MODEL_STOPMEETINGTRANSRESULT_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 StopMeetingTransResult : 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;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_TINGWU_MODEL_STOPMEETINGTRANSRESULT_H_
|
||||
233
tingwu/src/TingwuClient.cc
Normal file
233
tingwu/src/TingwuClient.cc
Normal file
@@ -0,0 +1,233 @@
|
||||
/*
|
||||
* 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/TingwuClient.h>
|
||||
#include <alibabacloud/core/SimpleCredentialsProvider.h>
|
||||
|
||||
using namespace AlibabaCloud;
|
||||
using namespace AlibabaCloud::Location;
|
||||
using namespace AlibabaCloud::Tingwu;
|
||||
using namespace AlibabaCloud::Tingwu::Model;
|
||||
|
||||
namespace
|
||||
{
|
||||
const std::string SERVICE_NAME = "tingwu";
|
||||
}
|
||||
|
||||
TingwuClient::TingwuClient(const Credentials &credentials, const ClientConfiguration &configuration) :
|
||||
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");
|
||||
}
|
||||
|
||||
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");
|
||||
}
|
||||
|
||||
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");
|
||||
}
|
||||
|
||||
TingwuClient::~TingwuClient()
|
||||
{}
|
||||
|
||||
TingwuClient::CreateFileTransOutcome TingwuClient::createFileTrans(const CreateFileTransRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateFileTransOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateFileTransOutcome(CreateFileTransResult(outcome.result()));
|
||||
else
|
||||
return CreateFileTransOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void TingwuClient::createFileTransAsync(const CreateFileTransRequest& request, const CreateFileTransAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createFileTrans(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
TingwuClient::CreateFileTransOutcomeCallable TingwuClient::createFileTransCallable(const CreateFileTransRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateFileTransOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createFileTrans(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
TingwuClient::CreateMeetingTransOutcome TingwuClient::createMeetingTrans(const CreateMeetingTransRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateMeetingTransOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateMeetingTransOutcome(CreateMeetingTransResult(outcome.result()));
|
||||
else
|
||||
return CreateMeetingTransOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void TingwuClient::createMeetingTransAsync(const CreateMeetingTransRequest& request, const CreateMeetingTransAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createMeetingTrans(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
TingwuClient::CreateMeetingTransOutcomeCallable TingwuClient::createMeetingTransCallable(const CreateMeetingTransRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateMeetingTransOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createMeetingTrans(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
TingwuClient::GetFileTransOutcome TingwuClient::getFileTrans(const GetFileTransRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetFileTransOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetFileTransOutcome(GetFileTransResult(outcome.result()));
|
||||
else
|
||||
return GetFileTransOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void TingwuClient::getFileTransAsync(const GetFileTransRequest& request, const GetFileTransAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getFileTrans(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
TingwuClient::GetFileTransOutcomeCallable TingwuClient::getFileTransCallable(const GetFileTransRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetFileTransOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getFileTrans(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
TingwuClient::GetMeetingTransOutcome TingwuClient::getMeetingTrans(const GetMeetingTransRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetMeetingTransOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetMeetingTransOutcome(GetMeetingTransResult(outcome.result()));
|
||||
else
|
||||
return GetMeetingTransOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void TingwuClient::getMeetingTransAsync(const GetMeetingTransRequest& request, const GetMeetingTransAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getMeetingTrans(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
TingwuClient::GetMeetingTransOutcomeCallable TingwuClient::getMeetingTransCallable(const GetMeetingTransRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetMeetingTransOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getMeetingTrans(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
TingwuClient::StopMeetingTransOutcome TingwuClient::stopMeetingTrans(const StopMeetingTransRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return StopMeetingTransOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return StopMeetingTransOutcome(StopMeetingTransResult(outcome.result()));
|
||||
else
|
||||
return StopMeetingTransOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void TingwuClient::stopMeetingTransAsync(const StopMeetingTransRequest& request, const StopMeetingTransAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, stopMeetingTrans(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
TingwuClient::StopMeetingTransOutcomeCallable TingwuClient::stopMeetingTransCallable(const StopMeetingTransRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<StopMeetingTransOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->stopMeetingTrans(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
37
tingwu/src/model/CreateFileTransRequest.cc
Normal file
37
tingwu/src/model/CreateFileTransRequest.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/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);
|
||||
}
|
||||
|
||||
68
tingwu/src/model/CreateFileTransResult.cc
Normal file
68
tingwu/src/model/CreateFileTransResult.cc
Normal 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/tingwu/model/CreateFileTransResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Tingwu;
|
||||
using namespace AlibabaCloud::Tingwu::Model;
|
||||
|
||||
CreateFileTransResult::CreateFileTransResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateFileTransResult::CreateFileTransResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateFileTransResult::~CreateFileTransResult()
|
||||
{}
|
||||
|
||||
void CreateFileTransResult::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(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateFileTransResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
CreateFileTransResult::Data CreateFileTransResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateFileTransResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
37
tingwu/src/model/CreateMeetingTransRequest.cc
Normal file
37
tingwu/src/model/CreateMeetingTransRequest.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/CreateMeetingTransRequest.h>
|
||||
|
||||
using AlibabaCloud::Tingwu::Model::CreateMeetingTransRequest;
|
||||
|
||||
CreateMeetingTransRequest::CreateMeetingTransRequest()
|
||||
: RoaServiceRequest("tingwu", "2022-09-30") {
|
||||
setResourcePath("/openapi/meeting-trans"};
|
||||
setMethod(HttpRequest::Method::Put);
|
||||
}
|
||||
|
||||
CreateMeetingTransRequest::~CreateMeetingTransRequest() {}
|
||||
|
||||
std::string CreateMeetingTransRequest::getBody() const {
|
||||
return body_;
|
||||
}
|
||||
|
||||
void CreateMeetingTransRequest::setBody(const std::string &body) {
|
||||
body_ = body;
|
||||
setBodyParameter(std::string("body"), body);
|
||||
}
|
||||
|
||||
70
tingwu/src/model/CreateMeetingTransResult.cc
Normal file
70
tingwu/src/model/CreateMeetingTransResult.cc
Normal file
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* 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/CreateMeetingTransResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Tingwu;
|
||||
using namespace AlibabaCloud::Tingwu::Model;
|
||||
|
||||
CreateMeetingTransResult::CreateMeetingTransResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateMeetingTransResult::CreateMeetingTransResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateMeetingTransResult::~CreateMeetingTransResult()
|
||||
{}
|
||||
|
||||
void CreateMeetingTransResult::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(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateMeetingTransResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
CreateMeetingTransResult::Data CreateMeetingTransResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateMeetingTransResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
37
tingwu/src/model/GetFileTransRequest.cc
Normal file
37
tingwu/src/model/GetFileTransRequest.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/GetFileTransRequest.h>
|
||||
|
||||
using AlibabaCloud::Tingwu::Model::GetFileTransRequest;
|
||||
|
||||
GetFileTransRequest::GetFileTransRequest()
|
||||
: RoaServiceRequest("tingwu", "2022-09-30") {
|
||||
setResourcePath("/openapi/file-trans/[TransId]"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetFileTransRequest::~GetFileTransRequest() {}
|
||||
|
||||
string GetFileTransRequest::getTransId() const {
|
||||
return transId_;
|
||||
}
|
||||
|
||||
void GetFileTransRequest::setTransId(string transId) {
|
||||
transId_ = transId;
|
||||
setParameter(std::string("TransId"), std::to_string(transId));
|
||||
}
|
||||
|
||||
70
tingwu/src/model/GetFileTransResult.cc
Normal file
70
tingwu/src/model/GetFileTransResult.cc
Normal file
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* 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/GetFileTransResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Tingwu;
|
||||
using namespace AlibabaCloud::Tingwu::Model;
|
||||
|
||||
GetFileTransResult::GetFileTransResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetFileTransResult::GetFileTransResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetFileTransResult::~GetFileTransResult()
|
||||
{}
|
||||
|
||||
void GetFileTransResult::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(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetFileTransResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetFileTransResult::Data GetFileTransResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetFileTransResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
37
tingwu/src/model/GetMeetingTransRequest.cc
Normal file
37
tingwu/src/model/GetMeetingTransRequest.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/GetMeetingTransRequest.h>
|
||||
|
||||
using AlibabaCloud::Tingwu::Model::GetMeetingTransRequest;
|
||||
|
||||
GetMeetingTransRequest::GetMeetingTransRequest()
|
||||
: RoaServiceRequest("tingwu", "2022-09-30") {
|
||||
setResourcePath("/openapi/meeting-trans/[MeetingId]"};
|
||||
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));
|
||||
}
|
||||
|
||||
70
tingwu/src/model/GetMeetingTransResult.cc
Normal file
70
tingwu/src/model/GetMeetingTransResult.cc
Normal file
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* 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/GetMeetingTransResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Tingwu;
|
||||
using namespace AlibabaCloud::Tingwu::Model;
|
||||
|
||||
GetMeetingTransResult::GetMeetingTransResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetMeetingTransResult::GetMeetingTransResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetMeetingTransResult::~GetMeetingTransResult()
|
||||
{}
|
||||
|
||||
void GetMeetingTransResult::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 GetMeetingTransResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetMeetingTransResult::Data GetMeetingTransResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetMeetingTransResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
37
tingwu/src/model/StopMeetingTransRequest.cc
Normal file
37
tingwu/src/model/StopMeetingTransRequest.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/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));
|
||||
}
|
||||
|
||||
70
tingwu/src/model/StopMeetingTransResult.cc
Normal file
70
tingwu/src/model/StopMeetingTransResult.cc
Normal file
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* 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_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user