regenerate code
This commit is contained in:
@@ -41,10 +41,14 @@ set(rtc_public_header_model
|
||||
include/alibabacloud/rtc/model/DescribeAppsResult.h
|
||||
include/alibabacloud/rtc/model/DescribeChannelParticipantsRequest.h
|
||||
include/alibabacloud/rtc/model/DescribeChannelParticipantsResult.h
|
||||
include/alibabacloud/rtc/model/DescribeChannelUsersRequest.h
|
||||
include/alibabacloud/rtc/model/DescribeChannelUsersResult.h
|
||||
include/alibabacloud/rtc/model/DescribeConferenceAuthInfoRequest.h
|
||||
include/alibabacloud/rtc/model/DescribeConferenceAuthInfoResult.h
|
||||
include/alibabacloud/rtc/model/DescribeMAURuleRequest.h
|
||||
include/alibabacloud/rtc/model/DescribeMAURuleResult.h
|
||||
include/alibabacloud/rtc/model/DescribeRTCAppKeyRequest.h
|
||||
include/alibabacloud/rtc/model/DescribeRTCAppKeyResult.h
|
||||
include/alibabacloud/rtc/model/DescribeRtcChannelCntDataRequest.h
|
||||
include/alibabacloud/rtc/model/DescribeRtcChannelCntDataResult.h
|
||||
include/alibabacloud/rtc/model/DescribeRtcChannelListRequest.h
|
||||
@@ -65,6 +69,8 @@ set(rtc_public_header_model
|
||||
include/alibabacloud/rtc/model/DescribeRtcUserCntDataResult.h
|
||||
include/alibabacloud/rtc/model/DescribeRtcUserListRequest.h
|
||||
include/alibabacloud/rtc/model/DescribeRtcUserListResult.h
|
||||
include/alibabacloud/rtc/model/DescribeUserInfoInChannelRequest.h
|
||||
include/alibabacloud/rtc/model/DescribeUserInfoInChannelResult.h
|
||||
include/alibabacloud/rtc/model/DisableMAURuleRequest.h
|
||||
include/alibabacloud/rtc/model/DisableMAURuleResult.h
|
||||
include/alibabacloud/rtc/model/EnableMAURuleRequest.h
|
||||
@@ -87,6 +93,8 @@ set(rtc_public_header_model
|
||||
include/alibabacloud/rtc/model/RemoveParticipantsResult.h
|
||||
include/alibabacloud/rtc/model/RemoveTerminalsRequest.h
|
||||
include/alibabacloud/rtc/model/RemoveTerminalsResult.h
|
||||
include/alibabacloud/rtc/model/SetChannelPropertyRequest.h
|
||||
include/alibabacloud/rtc/model/SetChannelPropertyResult.h
|
||||
include/alibabacloud/rtc/model/StartMPUTaskRequest.h
|
||||
include/alibabacloud/rtc/model/StartMPUTaskResult.h
|
||||
include/alibabacloud/rtc/model/StartTaskRequest.h
|
||||
@@ -126,10 +134,14 @@ set(rtc_src
|
||||
src/model/DescribeAppsResult.cc
|
||||
src/model/DescribeChannelParticipantsRequest.cc
|
||||
src/model/DescribeChannelParticipantsResult.cc
|
||||
src/model/DescribeChannelUsersRequest.cc
|
||||
src/model/DescribeChannelUsersResult.cc
|
||||
src/model/DescribeConferenceAuthInfoRequest.cc
|
||||
src/model/DescribeConferenceAuthInfoResult.cc
|
||||
src/model/DescribeMAURuleRequest.cc
|
||||
src/model/DescribeMAURuleResult.cc
|
||||
src/model/DescribeRTCAppKeyRequest.cc
|
||||
src/model/DescribeRTCAppKeyResult.cc
|
||||
src/model/DescribeRtcChannelCntDataRequest.cc
|
||||
src/model/DescribeRtcChannelCntDataResult.cc
|
||||
src/model/DescribeRtcChannelListRequest.cc
|
||||
@@ -150,6 +162,8 @@ set(rtc_src
|
||||
src/model/DescribeRtcUserCntDataResult.cc
|
||||
src/model/DescribeRtcUserListRequest.cc
|
||||
src/model/DescribeRtcUserListResult.cc
|
||||
src/model/DescribeUserInfoInChannelRequest.cc
|
||||
src/model/DescribeUserInfoInChannelResult.cc
|
||||
src/model/DisableMAURuleRequest.cc
|
||||
src/model/DisableMAURuleResult.cc
|
||||
src/model/EnableMAURuleRequest.cc
|
||||
@@ -172,6 +186,8 @@ set(rtc_src
|
||||
src/model/RemoveParticipantsResult.cc
|
||||
src/model/RemoveTerminalsRequest.cc
|
||||
src/model/RemoveTerminalsResult.cc
|
||||
src/model/SetChannelPropertyRequest.cc
|
||||
src/model/SetChannelPropertyResult.cc
|
||||
src/model/StartMPUTaskRequest.cc
|
||||
src/model/StartMPUTaskResult.cc
|
||||
src/model/StartTaskRequest.cc
|
||||
|
||||
@@ -42,10 +42,14 @@
|
||||
#include "model/DescribeAppsResult.h"
|
||||
#include "model/DescribeChannelParticipantsRequest.h"
|
||||
#include "model/DescribeChannelParticipantsResult.h"
|
||||
#include "model/DescribeChannelUsersRequest.h"
|
||||
#include "model/DescribeChannelUsersResult.h"
|
||||
#include "model/DescribeConferenceAuthInfoRequest.h"
|
||||
#include "model/DescribeConferenceAuthInfoResult.h"
|
||||
#include "model/DescribeMAURuleRequest.h"
|
||||
#include "model/DescribeMAURuleResult.h"
|
||||
#include "model/DescribeRTCAppKeyRequest.h"
|
||||
#include "model/DescribeRTCAppKeyResult.h"
|
||||
#include "model/DescribeRtcChannelCntDataRequest.h"
|
||||
#include "model/DescribeRtcChannelCntDataResult.h"
|
||||
#include "model/DescribeRtcChannelListRequest.h"
|
||||
@@ -66,6 +70,8 @@
|
||||
#include "model/DescribeRtcUserCntDataResult.h"
|
||||
#include "model/DescribeRtcUserListRequest.h"
|
||||
#include "model/DescribeRtcUserListResult.h"
|
||||
#include "model/DescribeUserInfoInChannelRequest.h"
|
||||
#include "model/DescribeUserInfoInChannelResult.h"
|
||||
#include "model/DisableMAURuleRequest.h"
|
||||
#include "model/DisableMAURuleResult.h"
|
||||
#include "model/EnableMAURuleRequest.h"
|
||||
@@ -88,6 +94,8 @@
|
||||
#include "model/RemoveParticipantsResult.h"
|
||||
#include "model/RemoveTerminalsRequest.h"
|
||||
#include "model/RemoveTerminalsResult.h"
|
||||
#include "model/SetChannelPropertyRequest.h"
|
||||
#include "model/SetChannelPropertyResult.h"
|
||||
#include "model/StartMPUTaskRequest.h"
|
||||
#include "model/StartMPUTaskResult.h"
|
||||
#include "model/StartTaskRequest.h"
|
||||
@@ -143,12 +151,18 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeChannelParticipantsResult> DescribeChannelParticipantsOutcome;
|
||||
typedef std::future<DescribeChannelParticipantsOutcome> DescribeChannelParticipantsOutcomeCallable;
|
||||
typedef std::function<void(const RtcClient*, const Model::DescribeChannelParticipantsRequest&, const DescribeChannelParticipantsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeChannelParticipantsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeChannelUsersResult> DescribeChannelUsersOutcome;
|
||||
typedef std::future<DescribeChannelUsersOutcome> DescribeChannelUsersOutcomeCallable;
|
||||
typedef std::function<void(const RtcClient*, const Model::DescribeChannelUsersRequest&, const DescribeChannelUsersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeChannelUsersAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeConferenceAuthInfoResult> DescribeConferenceAuthInfoOutcome;
|
||||
typedef std::future<DescribeConferenceAuthInfoOutcome> DescribeConferenceAuthInfoOutcomeCallable;
|
||||
typedef std::function<void(const RtcClient*, const Model::DescribeConferenceAuthInfoRequest&, const DescribeConferenceAuthInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeConferenceAuthInfoAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeMAURuleResult> DescribeMAURuleOutcome;
|
||||
typedef std::future<DescribeMAURuleOutcome> DescribeMAURuleOutcomeCallable;
|
||||
typedef std::function<void(const RtcClient*, const Model::DescribeMAURuleRequest&, const DescribeMAURuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeMAURuleAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeRTCAppKeyResult> DescribeRTCAppKeyOutcome;
|
||||
typedef std::future<DescribeRTCAppKeyOutcome> DescribeRTCAppKeyOutcomeCallable;
|
||||
typedef std::function<void(const RtcClient*, const Model::DescribeRTCAppKeyRequest&, const DescribeRTCAppKeyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRTCAppKeyAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeRtcChannelCntDataResult> DescribeRtcChannelCntDataOutcome;
|
||||
typedef std::future<DescribeRtcChannelCntDataOutcome> DescribeRtcChannelCntDataOutcomeCallable;
|
||||
typedef std::function<void(const RtcClient*, const Model::DescribeRtcChannelCntDataRequest&, const DescribeRtcChannelCntDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRtcChannelCntDataAsyncHandler;
|
||||
@@ -179,6 +193,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeRtcUserListResult> DescribeRtcUserListOutcome;
|
||||
typedef std::future<DescribeRtcUserListOutcome> DescribeRtcUserListOutcomeCallable;
|
||||
typedef std::function<void(const RtcClient*, const Model::DescribeRtcUserListRequest&, const DescribeRtcUserListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRtcUserListAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeUserInfoInChannelResult> DescribeUserInfoInChannelOutcome;
|
||||
typedef std::future<DescribeUserInfoInChannelOutcome> DescribeUserInfoInChannelOutcomeCallable;
|
||||
typedef std::function<void(const RtcClient*, const Model::DescribeUserInfoInChannelRequest&, const DescribeUserInfoInChannelOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeUserInfoInChannelAsyncHandler;
|
||||
typedef Outcome<Error, Model::DisableMAURuleResult> DisableMAURuleOutcome;
|
||||
typedef std::future<DisableMAURuleOutcome> DisableMAURuleOutcomeCallable;
|
||||
typedef std::function<void(const RtcClient*, const Model::DisableMAURuleRequest&, const DisableMAURuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DisableMAURuleAsyncHandler;
|
||||
@@ -212,6 +229,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::RemoveTerminalsResult> RemoveTerminalsOutcome;
|
||||
typedef std::future<RemoveTerminalsOutcome> RemoveTerminalsOutcomeCallable;
|
||||
typedef std::function<void(const RtcClient*, const Model::RemoveTerminalsRequest&, const RemoveTerminalsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RemoveTerminalsAsyncHandler;
|
||||
typedef Outcome<Error, Model::SetChannelPropertyResult> SetChannelPropertyOutcome;
|
||||
typedef std::future<SetChannelPropertyOutcome> SetChannelPropertyOutcomeCallable;
|
||||
typedef std::function<void(const RtcClient*, const Model::SetChannelPropertyRequest&, const SetChannelPropertyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetChannelPropertyAsyncHandler;
|
||||
typedef Outcome<Error, Model::StartMPUTaskResult> StartMPUTaskOutcome;
|
||||
typedef std::future<StartMPUTaskOutcome> StartMPUTaskOutcomeCallable;
|
||||
typedef std::function<void(const RtcClient*, const Model::StartMPUTaskRequest&, const StartMPUTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StartMPUTaskAsyncHandler;
|
||||
@@ -271,12 +291,18 @@ namespace AlibabaCloud
|
||||
DescribeChannelParticipantsOutcome describeChannelParticipants(const Model::DescribeChannelParticipantsRequest &request)const;
|
||||
void describeChannelParticipantsAsync(const Model::DescribeChannelParticipantsRequest& request, const DescribeChannelParticipantsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeChannelParticipantsOutcomeCallable describeChannelParticipantsCallable(const Model::DescribeChannelParticipantsRequest& request) const;
|
||||
DescribeChannelUsersOutcome describeChannelUsers(const Model::DescribeChannelUsersRequest &request)const;
|
||||
void describeChannelUsersAsync(const Model::DescribeChannelUsersRequest& request, const DescribeChannelUsersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeChannelUsersOutcomeCallable describeChannelUsersCallable(const Model::DescribeChannelUsersRequest& request) const;
|
||||
DescribeConferenceAuthInfoOutcome describeConferenceAuthInfo(const Model::DescribeConferenceAuthInfoRequest &request)const;
|
||||
void describeConferenceAuthInfoAsync(const Model::DescribeConferenceAuthInfoRequest& request, const DescribeConferenceAuthInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeConferenceAuthInfoOutcomeCallable describeConferenceAuthInfoCallable(const Model::DescribeConferenceAuthInfoRequest& request) const;
|
||||
DescribeMAURuleOutcome describeMAURule(const Model::DescribeMAURuleRequest &request)const;
|
||||
void describeMAURuleAsync(const Model::DescribeMAURuleRequest& request, const DescribeMAURuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeMAURuleOutcomeCallable describeMAURuleCallable(const Model::DescribeMAURuleRequest& request) const;
|
||||
DescribeRTCAppKeyOutcome describeRTCAppKey(const Model::DescribeRTCAppKeyRequest &request)const;
|
||||
void describeRTCAppKeyAsync(const Model::DescribeRTCAppKeyRequest& request, const DescribeRTCAppKeyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeRTCAppKeyOutcomeCallable describeRTCAppKeyCallable(const Model::DescribeRTCAppKeyRequest& request) const;
|
||||
DescribeRtcChannelCntDataOutcome describeRtcChannelCntData(const Model::DescribeRtcChannelCntDataRequest &request)const;
|
||||
void describeRtcChannelCntDataAsync(const Model::DescribeRtcChannelCntDataRequest& request, const DescribeRtcChannelCntDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeRtcChannelCntDataOutcomeCallable describeRtcChannelCntDataCallable(const Model::DescribeRtcChannelCntDataRequest& request) const;
|
||||
@@ -307,6 +333,9 @@ namespace AlibabaCloud
|
||||
DescribeRtcUserListOutcome describeRtcUserList(const Model::DescribeRtcUserListRequest &request)const;
|
||||
void describeRtcUserListAsync(const Model::DescribeRtcUserListRequest& request, const DescribeRtcUserListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeRtcUserListOutcomeCallable describeRtcUserListCallable(const Model::DescribeRtcUserListRequest& request) const;
|
||||
DescribeUserInfoInChannelOutcome describeUserInfoInChannel(const Model::DescribeUserInfoInChannelRequest &request)const;
|
||||
void describeUserInfoInChannelAsync(const Model::DescribeUserInfoInChannelRequest& request, const DescribeUserInfoInChannelAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeUserInfoInChannelOutcomeCallable describeUserInfoInChannelCallable(const Model::DescribeUserInfoInChannelRequest& request) const;
|
||||
DisableMAURuleOutcome disableMAURule(const Model::DisableMAURuleRequest &request)const;
|
||||
void disableMAURuleAsync(const Model::DisableMAURuleRequest& request, const DisableMAURuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DisableMAURuleOutcomeCallable disableMAURuleCallable(const Model::DisableMAURuleRequest& request) const;
|
||||
@@ -340,6 +369,9 @@ namespace AlibabaCloud
|
||||
RemoveTerminalsOutcome removeTerminals(const Model::RemoveTerminalsRequest &request)const;
|
||||
void removeTerminalsAsync(const Model::RemoveTerminalsRequest& request, const RemoveTerminalsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RemoveTerminalsOutcomeCallable removeTerminalsCallable(const Model::RemoveTerminalsRequest& request) const;
|
||||
SetChannelPropertyOutcome setChannelProperty(const Model::SetChannelPropertyRequest &request)const;
|
||||
void setChannelPropertyAsync(const Model::SetChannelPropertyRequest& request, const SetChannelPropertyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SetChannelPropertyOutcomeCallable setChannelPropertyCallable(const Model::SetChannelPropertyRequest& request) const;
|
||||
StartMPUTaskOutcome startMPUTask(const Model::StartMPUTaskRequest &request)const;
|
||||
void startMPUTaskAsync(const Model::StartMPUTaskRequest& request, const StartMPUTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
StartMPUTaskOutcomeCallable startMPUTaskCallable(const Model::StartMPUTaskRequest& request) const;
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* 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_RTC_MODEL_DESCRIBECHANNELUSERSREQUEST_H_
|
||||
#define ALIBABACLOUD_RTC_MODEL_DESCRIBECHANNELUSERSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/rtc/RtcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rtc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RTC_EXPORT DescribeChannelUsersRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeChannelUsersRequest();
|
||||
~DescribeChannelUsersRequest();
|
||||
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getAppId()const;
|
||||
void setAppId(const std::string& appId);
|
||||
std::string getChannelId()const;
|
||||
void setChannelId(const std::string& channelId);
|
||||
|
||||
private:
|
||||
long ownerId_;
|
||||
std::string appId_;
|
||||
std::string channelId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBECHANNELUSERSREQUEST_H_
|
||||
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* 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_RTC_MODEL_DESCRIBECHANNELUSERSRESULT_H_
|
||||
#define ALIBABACLOUD_RTC_MODEL_DESCRIBECHANNELUSERSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/rtc/RtcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rtc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RTC_EXPORT DescribeChannelUsersResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DescribeChannelUsersResult();
|
||||
explicit DescribeChannelUsersResult(const std::string &payload);
|
||||
~DescribeChannelUsersResult();
|
||||
std::vector<std::string> getInteractiveUserList()const;
|
||||
int getLiveUserNum()const;
|
||||
int getChannelProfile()const;
|
||||
int getInteractiveUserNum()const;
|
||||
std::vector<std::string> getUserList()const;
|
||||
std::vector<std::string> getLiveUserList()const;
|
||||
int getTimestamp()const;
|
||||
bool getIsChannelExist()const;
|
||||
int getCommTotalNum()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<std::string> interactiveUserList_;
|
||||
int liveUserNum_;
|
||||
int channelProfile_;
|
||||
int interactiveUserNum_;
|
||||
std::vector<std::string> userList_;
|
||||
std::vector<std::string> liveUserList_;
|
||||
int timestamp_;
|
||||
bool isChannelExist_;
|
||||
int commTotalNum_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBECHANNELUSERSRESULT_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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_RTC_MODEL_DESCRIBERTCAPPKEYREQUEST_H_
|
||||
#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCAPPKEYREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/rtc/RtcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rtc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RTC_EXPORT DescribeRTCAppKeyRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeRTCAppKeyRequest();
|
||||
~DescribeRTCAppKeyRequest();
|
||||
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getAppId()const;
|
||||
void setAppId(const std::string& appId);
|
||||
|
||||
private:
|
||||
long ownerId_;
|
||||
std::string appId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERTCAPPKEYREQUEST_H_
|
||||
51
rtc/include/alibabacloud/rtc/model/DescribeRTCAppKeyResult.h
Normal file
51
rtc/include/alibabacloud/rtc/model/DescribeRTCAppKeyResult.h
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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_RTC_MODEL_DESCRIBERTCAPPKEYRESULT_H_
|
||||
#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCAPPKEYRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/rtc/RtcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rtc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RTC_EXPORT DescribeRTCAppKeyResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DescribeRTCAppKeyResult();
|
||||
explicit DescribeRTCAppKeyResult(const std::string &payload);
|
||||
~DescribeRTCAppKeyResult();
|
||||
std::string getAppKey()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string appKey_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERTCAPPKEYRESULT_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* 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_RTC_MODEL_DESCRIBEUSERINFOINCHANNELREQUEST_H_
|
||||
#define ALIBABACLOUD_RTC_MODEL_DESCRIBEUSERINFOINCHANNELREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/rtc/RtcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rtc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RTC_EXPORT DescribeUserInfoInChannelRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeUserInfoInChannelRequest();
|
||||
~DescribeUserInfoInChannelRequest();
|
||||
|
||||
std::string getUserId()const;
|
||||
void setUserId(const std::string& userId);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getAppId()const;
|
||||
void setAppId(const std::string& appId);
|
||||
std::string getChannelId()const;
|
||||
void setChannelId(const std::string& channelId);
|
||||
|
||||
private:
|
||||
std::string userId_;
|
||||
long ownerId_;
|
||||
std::string appId_;
|
||||
std::string channelId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBEUSERINFOINCHANNELREQUEST_H_
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* 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_RTC_MODEL_DESCRIBEUSERINFOINCHANNELRESULT_H_
|
||||
#define ALIBABACLOUD_RTC_MODEL_DESCRIBEUSERINFOINCHANNELRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/rtc/RtcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rtc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RTC_EXPORT DescribeUserInfoInChannelResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct PropertyItem
|
||||
{
|
||||
int role;
|
||||
int join;
|
||||
std::string session;
|
||||
};
|
||||
|
||||
|
||||
DescribeUserInfoInChannelResult();
|
||||
explicit DescribeUserInfoInChannelResult(const std::string &payload);
|
||||
~DescribeUserInfoInChannelResult();
|
||||
bool getIsInChannel()const;
|
||||
std::vector<PropertyItem> getProperty()const;
|
||||
int getTimestamp()const;
|
||||
bool getIsChannelExist()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
bool isInChannel_;
|
||||
std::vector<PropertyItem> property_;
|
||||
int timestamp_;
|
||||
bool isChannelExist_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBEUSERINFOINCHANNELRESULT_H_
|
||||
@@ -35,17 +35,17 @@ namespace AlibabaCloud
|
||||
GetMPUTaskStatusRequest();
|
||||
~GetMPUTaskStatusRequest();
|
||||
|
||||
std::string getTaskId()const;
|
||||
void setTaskId(const std::string& taskId);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getAppId()const;
|
||||
void setAppId(const std::string& appId);
|
||||
std::string getTaskId()const;
|
||||
void setTaskId(const std::string& taskId);
|
||||
|
||||
private:
|
||||
std::string taskId_;
|
||||
long ownerId_;
|
||||
std::string appId_;
|
||||
std::string taskId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -37,17 +37,17 @@ namespace AlibabaCloud
|
||||
|
||||
std::vector<std::string> getParticipantIds()const;
|
||||
void setParticipantIds(const std::vector<std::string>& participantIds);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getConferenceId()const;
|
||||
void setConferenceId(const std::string& conferenceId);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getAppId()const;
|
||||
void setAppId(const std::string& appId);
|
||||
|
||||
private:
|
||||
std::vector<std::string> participantIds_;
|
||||
long ownerId_;
|
||||
std::string conferenceId_;
|
||||
long ownerId_;
|
||||
std::string appId_;
|
||||
|
||||
};
|
||||
|
||||
@@ -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_RTC_MODEL_SETCHANNELPROPERTYREQUEST_H_
|
||||
#define ALIBABACLOUD_RTC_MODEL_SETCHANNELPROPERTYREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/rtc/RtcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rtc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RTC_EXPORT SetChannelPropertyRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
SetChannelPropertyRequest();
|
||||
~SetChannelPropertyRequest();
|
||||
|
||||
int getStartTime()const;
|
||||
void setStartTime(int startTime);
|
||||
int getMaxUserNum()const;
|
||||
void setMaxUserNum(int maxUserNum);
|
||||
int getDuration()const;
|
||||
void setDuration(int duration);
|
||||
std::string getTopics()const;
|
||||
void setTopics(const std::string& topics);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getPriority()const;
|
||||
void setPriority(const std::string& priority);
|
||||
std::string getAppId()const;
|
||||
void setAppId(const std::string& appId);
|
||||
std::string getChannelId()const;
|
||||
void setChannelId(const std::string& channelId);
|
||||
|
||||
private:
|
||||
int startTime_;
|
||||
int maxUserNum_;
|
||||
int duration_;
|
||||
std::string topics_;
|
||||
long ownerId_;
|
||||
std::string priority_;
|
||||
std::string appId_;
|
||||
std::string channelId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RTC_MODEL_SETCHANNELPROPERTYREQUEST_H_
|
||||
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* 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_RTC_MODEL_SETCHANNELPROPERTYRESULT_H_
|
||||
#define ALIBABACLOUD_RTC_MODEL_SETCHANNELPROPERTYRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/rtc/RtcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rtc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RTC_EXPORT SetChannelPropertyResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
SetChannelPropertyResult();
|
||||
explicit SetChannelPropertyResult(const std::string &payload);
|
||||
~SetChannelPropertyResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RTC_MODEL_SETCHANNELPROPERTYRESULT_H_
|
||||
@@ -411,6 +411,42 @@ RtcClient::DescribeChannelParticipantsOutcomeCallable RtcClient::describeChannel
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::DescribeChannelUsersOutcome RtcClient::describeChannelUsers(const DescribeChannelUsersRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeChannelUsersOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeChannelUsersOutcome(DescribeChannelUsersResult(outcome.result()));
|
||||
else
|
||||
return DescribeChannelUsersOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RtcClient::describeChannelUsersAsync(const DescribeChannelUsersRequest& request, const DescribeChannelUsersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeChannelUsers(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RtcClient::DescribeChannelUsersOutcomeCallable RtcClient::describeChannelUsersCallable(const DescribeChannelUsersRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeChannelUsersOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeChannelUsers(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::DescribeConferenceAuthInfoOutcome RtcClient::describeConferenceAuthInfo(const DescribeConferenceAuthInfoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -483,6 +519,42 @@ RtcClient::DescribeMAURuleOutcomeCallable RtcClient::describeMAURuleCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::DescribeRTCAppKeyOutcome RtcClient::describeRTCAppKey(const DescribeRTCAppKeyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeRTCAppKeyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeRTCAppKeyOutcome(DescribeRTCAppKeyResult(outcome.result()));
|
||||
else
|
||||
return DescribeRTCAppKeyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RtcClient::describeRTCAppKeyAsync(const DescribeRTCAppKeyRequest& request, const DescribeRTCAppKeyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeRTCAppKey(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RtcClient::DescribeRTCAppKeyOutcomeCallable RtcClient::describeRTCAppKeyCallable(const DescribeRTCAppKeyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeRTCAppKeyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeRTCAppKey(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::DescribeRtcChannelCntDataOutcome RtcClient::describeRtcChannelCntData(const DescribeRtcChannelCntDataRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -843,6 +915,42 @@ RtcClient::DescribeRtcUserListOutcomeCallable RtcClient::describeRtcUserListCall
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::DescribeUserInfoInChannelOutcome RtcClient::describeUserInfoInChannel(const DescribeUserInfoInChannelRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeUserInfoInChannelOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeUserInfoInChannelOutcome(DescribeUserInfoInChannelResult(outcome.result()));
|
||||
else
|
||||
return DescribeUserInfoInChannelOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RtcClient::describeUserInfoInChannelAsync(const DescribeUserInfoInChannelRequest& request, const DescribeUserInfoInChannelAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeUserInfoInChannel(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RtcClient::DescribeUserInfoInChannelOutcomeCallable RtcClient::describeUserInfoInChannelCallable(const DescribeUserInfoInChannelRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeUserInfoInChannelOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeUserInfoInChannel(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::DisableMAURuleOutcome RtcClient::disableMAURule(const DisableMAURuleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1239,6 +1347,42 @@ RtcClient::RemoveTerminalsOutcomeCallable RtcClient::removeTerminalsCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::SetChannelPropertyOutcome RtcClient::setChannelProperty(const SetChannelPropertyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SetChannelPropertyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SetChannelPropertyOutcome(SetChannelPropertyResult(outcome.result()));
|
||||
else
|
||||
return SetChannelPropertyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RtcClient::setChannelPropertyAsync(const SetChannelPropertyRequest& request, const SetChannelPropertyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, setChannelProperty(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RtcClient::SetChannelPropertyOutcomeCallable RtcClient::setChannelPropertyCallable(const SetChannelPropertyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SetChannelPropertyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->setChannelProperty(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::StartMPUTaskOutcome RtcClient::startMPUTask(const StartMPUTaskRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
62
rtc/src/model/DescribeChannelUsersRequest.cc
Normal file
62
rtc/src/model/DescribeChannelUsersRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* 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/rtc/model/DescribeChannelUsersRequest.h>
|
||||
|
||||
using AlibabaCloud::Rtc::Model::DescribeChannelUsersRequest;
|
||||
|
||||
DescribeChannelUsersRequest::DescribeChannelUsersRequest() :
|
||||
RpcServiceRequest("rtc", "2018-01-11", "DescribeChannelUsers")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeChannelUsersRequest::~DescribeChannelUsersRequest()
|
||||
{}
|
||||
|
||||
long DescribeChannelUsersRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeChannelUsersRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeChannelUsersRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DescribeChannelUsersRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string DescribeChannelUsersRequest::getChannelId()const
|
||||
{
|
||||
return channelId_;
|
||||
}
|
||||
|
||||
void DescribeChannelUsersRequest::setChannelId(const std::string& channelId)
|
||||
{
|
||||
channelId_ = channelId;
|
||||
setParameter("ChannelId", channelId);
|
||||
}
|
||||
|
||||
110
rtc/src/model/DescribeChannelUsersResult.cc
Normal file
110
rtc/src/model/DescribeChannelUsersResult.cc
Normal file
@@ -0,0 +1,110 @@
|
||||
/*
|
||||
* 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/rtc/model/DescribeChannelUsersResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rtc;
|
||||
using namespace AlibabaCloud::Rtc::Model;
|
||||
|
||||
DescribeChannelUsersResult::DescribeChannelUsersResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeChannelUsersResult::DescribeChannelUsersResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeChannelUsersResult::~DescribeChannelUsersResult()
|
||||
{}
|
||||
|
||||
void DescribeChannelUsersResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allUserList = value["UserList"]["User"];
|
||||
for (const auto &item : allUserList)
|
||||
userList_.push_back(item.asString());
|
||||
auto allInteractiveUserList = value["InteractiveUserList"]["InteractiveUser"];
|
||||
for (const auto &item : allInteractiveUserList)
|
||||
interactiveUserList_.push_back(item.asString());
|
||||
auto allLiveUserList = value["LiveUserList"]["LiveUser"];
|
||||
for (const auto &item : allLiveUserList)
|
||||
liveUserList_.push_back(item.asString());
|
||||
if(!value["Timestamp"].isNull())
|
||||
timestamp_ = std::stoi(value["Timestamp"].asString());
|
||||
if(!value["IsChannelExist"].isNull())
|
||||
isChannelExist_ = value["IsChannelExist"].asString() == "true";
|
||||
if(!value["ChannelProfile"].isNull())
|
||||
channelProfile_ = std::stoi(value["ChannelProfile"].asString());
|
||||
if(!value["CommTotalNum"].isNull())
|
||||
commTotalNum_ = std::stoi(value["CommTotalNum"].asString());
|
||||
if(!value["InteractiveUserNum"].isNull())
|
||||
interactiveUserNum_ = std::stoi(value["InteractiveUserNum"].asString());
|
||||
if(!value["LiveUserNum"].isNull())
|
||||
liveUserNum_ = std::stoi(value["LiveUserNum"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeChannelUsersResult::getInteractiveUserList()const
|
||||
{
|
||||
return interactiveUserList_;
|
||||
}
|
||||
|
||||
int DescribeChannelUsersResult::getLiveUserNum()const
|
||||
{
|
||||
return liveUserNum_;
|
||||
}
|
||||
|
||||
int DescribeChannelUsersResult::getChannelProfile()const
|
||||
{
|
||||
return channelProfile_;
|
||||
}
|
||||
|
||||
int DescribeChannelUsersResult::getInteractiveUserNum()const
|
||||
{
|
||||
return interactiveUserNum_;
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeChannelUsersResult::getUserList()const
|
||||
{
|
||||
return userList_;
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeChannelUsersResult::getLiveUserList()const
|
||||
{
|
||||
return liveUserList_;
|
||||
}
|
||||
|
||||
int DescribeChannelUsersResult::getTimestamp()const
|
||||
{
|
||||
return timestamp_;
|
||||
}
|
||||
|
||||
bool DescribeChannelUsersResult::getIsChannelExist()const
|
||||
{
|
||||
return isChannelExist_;
|
||||
}
|
||||
|
||||
int DescribeChannelUsersResult::getCommTotalNum()const
|
||||
{
|
||||
return commTotalNum_;
|
||||
}
|
||||
|
||||
51
rtc/src/model/DescribeRTCAppKeyRequest.cc
Normal file
51
rtc/src/model/DescribeRTCAppKeyRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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/rtc/model/DescribeRTCAppKeyRequest.h>
|
||||
|
||||
using AlibabaCloud::Rtc::Model::DescribeRTCAppKeyRequest;
|
||||
|
||||
DescribeRTCAppKeyRequest::DescribeRTCAppKeyRequest() :
|
||||
RpcServiceRequest("rtc", "2018-01-11", "DescribeRTCAppKey")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeRTCAppKeyRequest::~DescribeRTCAppKeyRequest()
|
||||
{}
|
||||
|
||||
long DescribeRTCAppKeyRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeRTCAppKeyRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeRTCAppKeyRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DescribeRTCAppKeyRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
51
rtc/src/model/DescribeRTCAppKeyResult.cc
Normal file
51
rtc/src/model/DescribeRTCAppKeyResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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/rtc/model/DescribeRTCAppKeyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rtc;
|
||||
using namespace AlibabaCloud::Rtc::Model;
|
||||
|
||||
DescribeRTCAppKeyResult::DescribeRTCAppKeyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeRTCAppKeyResult::DescribeRTCAppKeyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeRTCAppKeyResult::~DescribeRTCAppKeyResult()
|
||||
{}
|
||||
|
||||
void DescribeRTCAppKeyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["AppKey"].isNull())
|
||||
appKey_ = value["AppKey"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeRTCAppKeyResult::getAppKey()const
|
||||
{
|
||||
return appKey_;
|
||||
}
|
||||
|
||||
73
rtc/src/model/DescribeUserInfoInChannelRequest.cc
Normal file
73
rtc/src/model/DescribeUserInfoInChannelRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* 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/rtc/model/DescribeUserInfoInChannelRequest.h>
|
||||
|
||||
using AlibabaCloud::Rtc::Model::DescribeUserInfoInChannelRequest;
|
||||
|
||||
DescribeUserInfoInChannelRequest::DescribeUserInfoInChannelRequest() :
|
||||
RpcServiceRequest("rtc", "2018-01-11", "DescribeUserInfoInChannel")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeUserInfoInChannelRequest::~DescribeUserInfoInChannelRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeUserInfoInChannelRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void DescribeUserInfoInChannelRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setParameter("UserId", userId);
|
||||
}
|
||||
|
||||
long DescribeUserInfoInChannelRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeUserInfoInChannelRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeUserInfoInChannelRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DescribeUserInfoInChannelRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string DescribeUserInfoInChannelRequest::getChannelId()const
|
||||
{
|
||||
return channelId_;
|
||||
}
|
||||
|
||||
void DescribeUserInfoInChannelRequest::setChannelId(const std::string& channelId)
|
||||
{
|
||||
channelId_ = channelId;
|
||||
setParameter("ChannelId", channelId);
|
||||
}
|
||||
|
||||
82
rtc/src/model/DescribeUserInfoInChannelResult.cc
Normal file
82
rtc/src/model/DescribeUserInfoInChannelResult.cc
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rtc/model/DescribeUserInfoInChannelResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rtc;
|
||||
using namespace AlibabaCloud::Rtc::Model;
|
||||
|
||||
DescribeUserInfoInChannelResult::DescribeUserInfoInChannelResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeUserInfoInChannelResult::DescribeUserInfoInChannelResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeUserInfoInChannelResult::~DescribeUserInfoInChannelResult()
|
||||
{}
|
||||
|
||||
void DescribeUserInfoInChannelResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allPropertyNode = value["Property"]["PropertyItem"];
|
||||
for (auto valuePropertyPropertyItem : allPropertyNode)
|
||||
{
|
||||
PropertyItem propertyObject;
|
||||
if(!valuePropertyPropertyItem["Session"].isNull())
|
||||
propertyObject.session = valuePropertyPropertyItem["Session"].asString();
|
||||
if(!valuePropertyPropertyItem["Join"].isNull())
|
||||
propertyObject.join = std::stoi(valuePropertyPropertyItem["Join"].asString());
|
||||
if(!valuePropertyPropertyItem["Role"].isNull())
|
||||
propertyObject.role = std::stoi(valuePropertyPropertyItem["Role"].asString());
|
||||
property_.push_back(propertyObject);
|
||||
}
|
||||
if(!value["Timestamp"].isNull())
|
||||
timestamp_ = std::stoi(value["Timestamp"].asString());
|
||||
if(!value["IsChannelExist"].isNull())
|
||||
isChannelExist_ = value["IsChannelExist"].asString() == "true";
|
||||
if(!value["IsInChannel"].isNull())
|
||||
isInChannel_ = value["IsInChannel"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool DescribeUserInfoInChannelResult::getIsInChannel()const
|
||||
{
|
||||
return isInChannel_;
|
||||
}
|
||||
|
||||
std::vector<DescribeUserInfoInChannelResult::PropertyItem> DescribeUserInfoInChannelResult::getProperty()const
|
||||
{
|
||||
return property_;
|
||||
}
|
||||
|
||||
int DescribeUserInfoInChannelResult::getTimestamp()const
|
||||
{
|
||||
return timestamp_;
|
||||
}
|
||||
|
||||
bool DescribeUserInfoInChannelResult::getIsChannelExist()const
|
||||
{
|
||||
return isChannelExist_;
|
||||
}
|
||||
|
||||
@@ -27,6 +27,17 @@ GetMPUTaskStatusRequest::GetMPUTaskStatusRequest() :
|
||||
GetMPUTaskStatusRequest::~GetMPUTaskStatusRequest()
|
||||
{}
|
||||
|
||||
std::string GetMPUTaskStatusRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void GetMPUTaskStatusRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setParameter("TaskId", taskId);
|
||||
}
|
||||
|
||||
long GetMPUTaskStatusRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
@@ -49,14 +60,3 @@ void GetMPUTaskStatusRequest::setAppId(const std::string& appId)
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string GetMPUTaskStatusRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void GetMPUTaskStatusRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setParameter("TaskId", taskId);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,17 +40,6 @@ void RemoveParticipantsRequest::setParticipantIds(const std::vector<std::string>
|
||||
}
|
||||
}
|
||||
|
||||
long RemoveParticipantsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void RemoveParticipantsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string RemoveParticipantsRequest::getConferenceId()const
|
||||
{
|
||||
return conferenceId_;
|
||||
@@ -62,6 +51,17 @@ void RemoveParticipantsRequest::setConferenceId(const std::string& conferenceId)
|
||||
setParameter("ConferenceId", conferenceId);
|
||||
}
|
||||
|
||||
long RemoveParticipantsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void RemoveParticipantsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string RemoveParticipantsRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
|
||||
117
rtc/src/model/SetChannelPropertyRequest.cc
Normal file
117
rtc/src/model/SetChannelPropertyRequest.cc
Normal file
@@ -0,0 +1,117 @@
|
||||
/*
|
||||
* 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/rtc/model/SetChannelPropertyRequest.h>
|
||||
|
||||
using AlibabaCloud::Rtc::Model::SetChannelPropertyRequest;
|
||||
|
||||
SetChannelPropertyRequest::SetChannelPropertyRequest() :
|
||||
RpcServiceRequest("rtc", "2018-01-11", "SetChannelProperty")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SetChannelPropertyRequest::~SetChannelPropertyRequest()
|
||||
{}
|
||||
|
||||
int SetChannelPropertyRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void SetChannelPropertyRequest::setStartTime(int startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
int SetChannelPropertyRequest::getMaxUserNum()const
|
||||
{
|
||||
return maxUserNum_;
|
||||
}
|
||||
|
||||
void SetChannelPropertyRequest::setMaxUserNum(int maxUserNum)
|
||||
{
|
||||
maxUserNum_ = maxUserNum;
|
||||
setParameter("MaxUserNum", std::to_string(maxUserNum));
|
||||
}
|
||||
|
||||
int SetChannelPropertyRequest::getDuration()const
|
||||
{
|
||||
return duration_;
|
||||
}
|
||||
|
||||
void SetChannelPropertyRequest::setDuration(int duration)
|
||||
{
|
||||
duration_ = duration;
|
||||
setParameter("Duration", std::to_string(duration));
|
||||
}
|
||||
|
||||
std::string SetChannelPropertyRequest::getTopics()const
|
||||
{
|
||||
return topics_;
|
||||
}
|
||||
|
||||
void SetChannelPropertyRequest::setTopics(const std::string& topics)
|
||||
{
|
||||
topics_ = topics;
|
||||
setParameter("Topics", topics);
|
||||
}
|
||||
|
||||
long SetChannelPropertyRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void SetChannelPropertyRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string SetChannelPropertyRequest::getPriority()const
|
||||
{
|
||||
return priority_;
|
||||
}
|
||||
|
||||
void SetChannelPropertyRequest::setPriority(const std::string& priority)
|
||||
{
|
||||
priority_ = priority;
|
||||
setParameter("Priority", priority);
|
||||
}
|
||||
|
||||
std::string SetChannelPropertyRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void SetChannelPropertyRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string SetChannelPropertyRequest::getChannelId()const
|
||||
{
|
||||
return channelId_;
|
||||
}
|
||||
|
||||
void SetChannelPropertyRequest::setChannelId(const std::string& channelId)
|
||||
{
|
||||
channelId_ = channelId;
|
||||
setParameter("ChannelId", channelId);
|
||||
}
|
||||
|
||||
44
rtc/src/model/SetChannelPropertyResult.cc
Normal file
44
rtc/src/model/SetChannelPropertyResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/rtc/model/SetChannelPropertyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rtc;
|
||||
using namespace AlibabaCloud::Rtc::Model;
|
||||
|
||||
SetChannelPropertyResult::SetChannelPropertyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SetChannelPropertyResult::SetChannelPropertyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SetChannelPropertyResult::~SetChannelPropertyResult()
|
||||
{}
|
||||
|
||||
void SetChannelPropertyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user