Add live message mute related interface.
This commit is contained in:
@@ -89,6 +89,8 @@ set(live_public_header_model
|
||||
include/alibabacloud/live/model/BatchSetLiveDomainConfigsResult.h
|
||||
include/alibabacloud/live/model/CancelMuteAllGroupUserRequest.h
|
||||
include/alibabacloud/live/model/CancelMuteAllGroupUserResult.h
|
||||
include/alibabacloud/live/model/CancelMuteGroupUserRequest.h
|
||||
include/alibabacloud/live/model/CancelMuteGroupUserResult.h
|
||||
include/alibabacloud/live/model/CloseLiveShiftRequest.h
|
||||
include/alibabacloud/live/model/CloseLiveShiftResult.h
|
||||
include/alibabacloud/live/model/CopyCasterRequest.h
|
||||
@@ -377,6 +379,8 @@ set(live_public_header_model
|
||||
include/alibabacloud/live/model/DescribeLiveUserDomainsResult.h
|
||||
include/alibabacloud/live/model/DescribeLiveUserTagsRequest.h
|
||||
include/alibabacloud/live/model/DescribeLiveUserTagsResult.h
|
||||
include/alibabacloud/live/model/DescribeMeterLiveInteractionDauRequest.h
|
||||
include/alibabacloud/live/model/DescribeMeterLiveInteractionDauResult.h
|
||||
include/alibabacloud/live/model/DescribeMeterLiveRtcDurationRequest.h
|
||||
include/alibabacloud/live/model/DescribeMeterLiveRtcDurationResult.h
|
||||
include/alibabacloud/live/model/DescribeMixStreamListRequest.h
|
||||
@@ -491,6 +495,10 @@ set(live_public_header_model
|
||||
include/alibabacloud/live/model/ModifyShowListResult.h
|
||||
include/alibabacloud/live/model/ModifyStudioLayoutRequest.h
|
||||
include/alibabacloud/live/model/ModifyStudioLayoutResult.h
|
||||
include/alibabacloud/live/model/MuteAllGroupUserRequest.h
|
||||
include/alibabacloud/live/model/MuteAllGroupUserResult.h
|
||||
include/alibabacloud/live/model/MuteGroupUserRequest.h
|
||||
include/alibabacloud/live/model/MuteGroupUserResult.h
|
||||
include/alibabacloud/live/model/OpenLiveShiftRequest.h
|
||||
include/alibabacloud/live/model/OpenLiveShiftResult.h
|
||||
include/alibabacloud/live/model/PlayChoosenShowRequest.h
|
||||
@@ -680,6 +688,8 @@ set(live_src
|
||||
src/model/BatchSetLiveDomainConfigsResult.cc
|
||||
src/model/CancelMuteAllGroupUserRequest.cc
|
||||
src/model/CancelMuteAllGroupUserResult.cc
|
||||
src/model/CancelMuteGroupUserRequest.cc
|
||||
src/model/CancelMuteGroupUserResult.cc
|
||||
src/model/CloseLiveShiftRequest.cc
|
||||
src/model/CloseLiveShiftResult.cc
|
||||
src/model/CopyCasterRequest.cc
|
||||
@@ -968,6 +978,8 @@ set(live_src
|
||||
src/model/DescribeLiveUserDomainsResult.cc
|
||||
src/model/DescribeLiveUserTagsRequest.cc
|
||||
src/model/DescribeLiveUserTagsResult.cc
|
||||
src/model/DescribeMeterLiveInteractionDauRequest.cc
|
||||
src/model/DescribeMeterLiveInteractionDauResult.cc
|
||||
src/model/DescribeMeterLiveRtcDurationRequest.cc
|
||||
src/model/DescribeMeterLiveRtcDurationResult.cc
|
||||
src/model/DescribeMixStreamListRequest.cc
|
||||
@@ -1082,6 +1094,10 @@ set(live_src
|
||||
src/model/ModifyShowListResult.cc
|
||||
src/model/ModifyStudioLayoutRequest.cc
|
||||
src/model/ModifyStudioLayoutResult.cc
|
||||
src/model/MuteAllGroupUserRequest.cc
|
||||
src/model/MuteAllGroupUserResult.cc
|
||||
src/model/MuteGroupUserRequest.cc
|
||||
src/model/MuteGroupUserResult.cc
|
||||
src/model/OpenLiveShiftRequest.cc
|
||||
src/model/OpenLiveShiftResult.cc
|
||||
src/model/PlayChoosenShowRequest.cc
|
||||
|
||||
@@ -90,6 +90,8 @@
|
||||
#include "model/BatchSetLiveDomainConfigsResult.h"
|
||||
#include "model/CancelMuteAllGroupUserRequest.h"
|
||||
#include "model/CancelMuteAllGroupUserResult.h"
|
||||
#include "model/CancelMuteGroupUserRequest.h"
|
||||
#include "model/CancelMuteGroupUserResult.h"
|
||||
#include "model/CloseLiveShiftRequest.h"
|
||||
#include "model/CloseLiveShiftResult.h"
|
||||
#include "model/CopyCasterRequest.h"
|
||||
@@ -378,6 +380,8 @@
|
||||
#include "model/DescribeLiveUserDomainsResult.h"
|
||||
#include "model/DescribeLiveUserTagsRequest.h"
|
||||
#include "model/DescribeLiveUserTagsResult.h"
|
||||
#include "model/DescribeMeterLiveInteractionDauRequest.h"
|
||||
#include "model/DescribeMeterLiveInteractionDauResult.h"
|
||||
#include "model/DescribeMeterLiveRtcDurationRequest.h"
|
||||
#include "model/DescribeMeterLiveRtcDurationResult.h"
|
||||
#include "model/DescribeMixStreamListRequest.h"
|
||||
@@ -492,6 +496,10 @@
|
||||
#include "model/ModifyShowListResult.h"
|
||||
#include "model/ModifyStudioLayoutRequest.h"
|
||||
#include "model/ModifyStudioLayoutResult.h"
|
||||
#include "model/MuteAllGroupUserRequest.h"
|
||||
#include "model/MuteAllGroupUserResult.h"
|
||||
#include "model/MuteGroupUserRequest.h"
|
||||
#include "model/MuteGroupUserResult.h"
|
||||
#include "model/OpenLiveShiftRequest.h"
|
||||
#include "model/OpenLiveShiftResult.h"
|
||||
#include "model/PlayChoosenShowRequest.h"
|
||||
@@ -721,6 +729,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CancelMuteAllGroupUserResult> CancelMuteAllGroupUserOutcome;
|
||||
typedef std::future<CancelMuteAllGroupUserOutcome> CancelMuteAllGroupUserOutcomeCallable;
|
||||
typedef std::function<void(const LiveClient*, const Model::CancelMuteAllGroupUserRequest&, const CancelMuteAllGroupUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CancelMuteAllGroupUserAsyncHandler;
|
||||
typedef Outcome<Error, Model::CancelMuteGroupUserResult> CancelMuteGroupUserOutcome;
|
||||
typedef std::future<CancelMuteGroupUserOutcome> CancelMuteGroupUserOutcomeCallable;
|
||||
typedef std::function<void(const LiveClient*, const Model::CancelMuteGroupUserRequest&, const CancelMuteGroupUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CancelMuteGroupUserAsyncHandler;
|
||||
typedef Outcome<Error, Model::CloseLiveShiftResult> CloseLiveShiftOutcome;
|
||||
typedef std::future<CloseLiveShiftOutcome> CloseLiveShiftOutcomeCallable;
|
||||
typedef std::function<void(const LiveClient*, const Model::CloseLiveShiftRequest&, const CloseLiveShiftOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CloseLiveShiftAsyncHandler;
|
||||
@@ -1153,6 +1164,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeLiveUserTagsResult> DescribeLiveUserTagsOutcome;
|
||||
typedef std::future<DescribeLiveUserTagsOutcome> DescribeLiveUserTagsOutcomeCallable;
|
||||
typedef std::function<void(const LiveClient*, const Model::DescribeLiveUserTagsRequest&, const DescribeLiveUserTagsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeLiveUserTagsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeMeterLiveInteractionDauResult> DescribeMeterLiveInteractionDauOutcome;
|
||||
typedef std::future<DescribeMeterLiveInteractionDauOutcome> DescribeMeterLiveInteractionDauOutcomeCallable;
|
||||
typedef std::function<void(const LiveClient*, const Model::DescribeMeterLiveInteractionDauRequest&, const DescribeMeterLiveInteractionDauOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeMeterLiveInteractionDauAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeMeterLiveRtcDurationResult> DescribeMeterLiveRtcDurationOutcome;
|
||||
typedef std::future<DescribeMeterLiveRtcDurationOutcome> DescribeMeterLiveRtcDurationOutcomeCallable;
|
||||
typedef std::function<void(const LiveClient*, const Model::DescribeMeterLiveRtcDurationRequest&, const DescribeMeterLiveRtcDurationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeMeterLiveRtcDurationAsyncHandler;
|
||||
@@ -1324,6 +1338,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ModifyStudioLayoutResult> ModifyStudioLayoutOutcome;
|
||||
typedef std::future<ModifyStudioLayoutOutcome> ModifyStudioLayoutOutcomeCallable;
|
||||
typedef std::function<void(const LiveClient*, const Model::ModifyStudioLayoutRequest&, const ModifyStudioLayoutOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyStudioLayoutAsyncHandler;
|
||||
typedef Outcome<Error, Model::MuteAllGroupUserResult> MuteAllGroupUserOutcome;
|
||||
typedef std::future<MuteAllGroupUserOutcome> MuteAllGroupUserOutcomeCallable;
|
||||
typedef std::function<void(const LiveClient*, const Model::MuteAllGroupUserRequest&, const MuteAllGroupUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> MuteAllGroupUserAsyncHandler;
|
||||
typedef Outcome<Error, Model::MuteGroupUserResult> MuteGroupUserOutcome;
|
||||
typedef std::future<MuteGroupUserOutcome> MuteGroupUserOutcomeCallable;
|
||||
typedef std::function<void(const LiveClient*, const Model::MuteGroupUserRequest&, const MuteGroupUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> MuteGroupUserAsyncHandler;
|
||||
typedef Outcome<Error, Model::OpenLiveShiftResult> OpenLiveShiftOutcome;
|
||||
typedef std::future<OpenLiveShiftOutcome> OpenLiveShiftOutcomeCallable;
|
||||
typedef std::function<void(const LiveClient*, const Model::OpenLiveShiftRequest&, const OpenLiveShiftOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> OpenLiveShiftAsyncHandler;
|
||||
@@ -1608,6 +1628,9 @@ namespace AlibabaCloud
|
||||
CancelMuteAllGroupUserOutcome cancelMuteAllGroupUser(const Model::CancelMuteAllGroupUserRequest &request)const;
|
||||
void cancelMuteAllGroupUserAsync(const Model::CancelMuteAllGroupUserRequest& request, const CancelMuteAllGroupUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CancelMuteAllGroupUserOutcomeCallable cancelMuteAllGroupUserCallable(const Model::CancelMuteAllGroupUserRequest& request) const;
|
||||
CancelMuteGroupUserOutcome cancelMuteGroupUser(const Model::CancelMuteGroupUserRequest &request)const;
|
||||
void cancelMuteGroupUserAsync(const Model::CancelMuteGroupUserRequest& request, const CancelMuteGroupUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CancelMuteGroupUserOutcomeCallable cancelMuteGroupUserCallable(const Model::CancelMuteGroupUserRequest& request) const;
|
||||
CloseLiveShiftOutcome closeLiveShift(const Model::CloseLiveShiftRequest &request)const;
|
||||
void closeLiveShiftAsync(const Model::CloseLiveShiftRequest& request, const CloseLiveShiftAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CloseLiveShiftOutcomeCallable closeLiveShiftCallable(const Model::CloseLiveShiftRequest& request) const;
|
||||
@@ -2040,6 +2063,9 @@ namespace AlibabaCloud
|
||||
DescribeLiveUserTagsOutcome describeLiveUserTags(const Model::DescribeLiveUserTagsRequest &request)const;
|
||||
void describeLiveUserTagsAsync(const Model::DescribeLiveUserTagsRequest& request, const DescribeLiveUserTagsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeLiveUserTagsOutcomeCallable describeLiveUserTagsCallable(const Model::DescribeLiveUserTagsRequest& request) const;
|
||||
DescribeMeterLiveInteractionDauOutcome describeMeterLiveInteractionDau(const Model::DescribeMeterLiveInteractionDauRequest &request)const;
|
||||
void describeMeterLiveInteractionDauAsync(const Model::DescribeMeterLiveInteractionDauRequest& request, const DescribeMeterLiveInteractionDauAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeMeterLiveInteractionDauOutcomeCallable describeMeterLiveInteractionDauCallable(const Model::DescribeMeterLiveInteractionDauRequest& request) const;
|
||||
DescribeMeterLiveRtcDurationOutcome describeMeterLiveRtcDuration(const Model::DescribeMeterLiveRtcDurationRequest &request)const;
|
||||
void describeMeterLiveRtcDurationAsync(const Model::DescribeMeterLiveRtcDurationRequest& request, const DescribeMeterLiveRtcDurationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeMeterLiveRtcDurationOutcomeCallable describeMeterLiveRtcDurationCallable(const Model::DescribeMeterLiveRtcDurationRequest& request) const;
|
||||
@@ -2211,6 +2237,12 @@ namespace AlibabaCloud
|
||||
ModifyStudioLayoutOutcome modifyStudioLayout(const Model::ModifyStudioLayoutRequest &request)const;
|
||||
void modifyStudioLayoutAsync(const Model::ModifyStudioLayoutRequest& request, const ModifyStudioLayoutAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyStudioLayoutOutcomeCallable modifyStudioLayoutCallable(const Model::ModifyStudioLayoutRequest& request) const;
|
||||
MuteAllGroupUserOutcome muteAllGroupUser(const Model::MuteAllGroupUserRequest &request)const;
|
||||
void muteAllGroupUserAsync(const Model::MuteAllGroupUserRequest& request, const MuteAllGroupUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
MuteAllGroupUserOutcomeCallable muteAllGroupUserCallable(const Model::MuteAllGroupUserRequest& request) const;
|
||||
MuteGroupUserOutcome muteGroupUser(const Model::MuteGroupUserRequest &request)const;
|
||||
void muteGroupUserAsync(const Model::MuteGroupUserRequest& request, const MuteGroupUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
MuteGroupUserOutcomeCallable muteGroupUserCallable(const Model::MuteGroupUserRequest& request) const;
|
||||
OpenLiveShiftOutcome openLiveShift(const Model::OpenLiveShiftRequest &request)const;
|
||||
void openLiveShiftAsync(const Model::OpenLiveShiftRequest& request, const OpenLiveShiftAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
OpenLiveShiftOutcomeCallable openLiveShiftCallable(const Model::OpenLiveShiftRequest& 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_LIVE_MODEL_CANCELMUTEGROUPUSERREQUEST_H_
|
||||
#define ALIBABACLOUD_LIVE_MODEL_CANCELMUTEGROUPUSERREQUEST_H_
|
||||
|
||||
#include <alibabacloud/live/LiveExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Live {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_LIVE_EXPORT CancelMuteGroupUserRequest : public RpcServiceRequest {
|
||||
public:
|
||||
CancelMuteGroupUserRequest();
|
||||
~CancelMuteGroupUserRequest();
|
||||
std::vector<std::string> getCancelMuteUserList() const;
|
||||
void setCancelMuteUserList(const std::vector<std::string> &cancelMuteUserList);
|
||||
std::string getOperatorUserId() const;
|
||||
void setOperatorUserId(const std::string &operatorUserId);
|
||||
int getBroadCastType() const;
|
||||
void setBroadCastType(int broadCastType);
|
||||
std::string getGroupId() const;
|
||||
void setGroupId(const std::string &groupId);
|
||||
std::string getAppId() const;
|
||||
void setAppId(const std::string &appId);
|
||||
|
||||
private:
|
||||
std::vector<std::string> cancelMuteUserList_;
|
||||
std::string operatorUserId_;
|
||||
int broadCastType_;
|
||||
std::string groupId_;
|
||||
std::string appId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Live
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_LIVE_MODEL_CANCELMUTEGROUPUSERREQUEST_H_
|
||||
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_LIVE_MODEL_CANCELMUTEGROUPUSERRESULT_H_
|
||||
#define ALIBABACLOUD_LIVE_MODEL_CANCELMUTEGROUPUSERRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/live/LiveExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Live
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_LIVE_EXPORT CancelMuteGroupUserResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
bool success;
|
||||
};
|
||||
|
||||
|
||||
CancelMuteGroupUserResult();
|
||||
explicit CancelMuteGroupUserResult(const std::string &payload);
|
||||
~CancelMuteGroupUserResult();
|
||||
Result getResult()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Result result_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_LIVE_MODEL_CANCELMUTEGROUPUSERRESULT_H_
|
||||
@@ -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_LIVE_MODEL_DESCRIBEMETERLIVEINTERACTIONDAUREQUEST_H_
|
||||
#define ALIBABACLOUD_LIVE_MODEL_DESCRIBEMETERLIVEINTERACTIONDAUREQUEST_H_
|
||||
|
||||
#include <alibabacloud/live/LiveExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Live {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_LIVE_EXPORT DescribeMeterLiveInteractionDauRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DescribeMeterLiveInteractionDauRequest();
|
||||
~DescribeMeterLiveInteractionDauRequest();
|
||||
long getStartTs() const;
|
||||
void setStartTs(long startTs);
|
||||
std::string getServiceArea() const;
|
||||
void setServiceArea(const std::string &serviceArea);
|
||||
std::string getAppId() const;
|
||||
void setAppId(const std::string &appId);
|
||||
long getEndTs() const;
|
||||
void setEndTs(long endTs);
|
||||
long getInterval() const;
|
||||
void setInterval(long interval);
|
||||
|
||||
private:
|
||||
long startTs_;
|
||||
std::string serviceArea_;
|
||||
std::string appId_;
|
||||
long endTs_;
|
||||
long interval_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Live
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBEMETERLIVEINTERACTIONDAUREQUEST_H_
|
||||
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* 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_LIVE_MODEL_DESCRIBEMETERLIVEINTERACTIONDAURESULT_H_
|
||||
#define ALIBABACLOUD_LIVE_MODEL_DESCRIBEMETERLIVEINTERACTIONDAURESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/live/LiveExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Live
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_LIVE_EXPORT DescribeMeterLiveInteractionDauResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct DataItem
|
||||
{
|
||||
double dau;
|
||||
long timestamp;
|
||||
};
|
||||
|
||||
|
||||
DescribeMeterLiveInteractionDauResult();
|
||||
explicit DescribeMeterLiveInteractionDauResult(const std::string &payload);
|
||||
~DescribeMeterLiveInteractionDauResult();
|
||||
std::vector<DataItem> getData()const;
|
||||
double getPeakDau()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<DataItem> data_;
|
||||
double peakDau_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBEMETERLIVEINTERACTIONDAURESULT_H_
|
||||
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_LIVE_MODEL_MUTEALLGROUPUSERREQUEST_H_
|
||||
#define ALIBABACLOUD_LIVE_MODEL_MUTEALLGROUPUSERREQUEST_H_
|
||||
|
||||
#include <alibabacloud/live/LiveExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Live {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_LIVE_EXPORT MuteAllGroupUserRequest : public RpcServiceRequest {
|
||||
public:
|
||||
MuteAllGroupUserRequest();
|
||||
~MuteAllGroupUserRequest();
|
||||
std::string getOperatorUserId() const;
|
||||
void setOperatorUserId(const std::string &operatorUserId);
|
||||
std::string getGroupId() const;
|
||||
void setGroupId(const std::string &groupId);
|
||||
std::string getAppId() const;
|
||||
void setAppId(const std::string &appId);
|
||||
|
||||
private:
|
||||
std::string operatorUserId_;
|
||||
std::string groupId_;
|
||||
std::string appId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Live
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_LIVE_MODEL_MUTEALLGROUPUSERREQUEST_H_
|
||||
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_LIVE_MODEL_MUTEALLGROUPUSERRESULT_H_
|
||||
#define ALIBABACLOUD_LIVE_MODEL_MUTEALLGROUPUSERRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/live/LiveExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Live
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_LIVE_EXPORT MuteAllGroupUserResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
bool success;
|
||||
};
|
||||
|
||||
|
||||
MuteAllGroupUserResult();
|
||||
explicit MuteAllGroupUserResult(const std::string &payload);
|
||||
~MuteAllGroupUserResult();
|
||||
Result getResult()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Result result_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_LIVE_MODEL_MUTEALLGROUPUSERRESULT_H_
|
||||
57
live/include/alibabacloud/live/model/MuteGroupUserRequest.h
Normal file
57
live/include/alibabacloud/live/model/MuteGroupUserRequest.h
Normal file
@@ -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_LIVE_MODEL_MUTEGROUPUSERREQUEST_H_
|
||||
#define ALIBABACLOUD_LIVE_MODEL_MUTEGROUPUSERREQUEST_H_
|
||||
|
||||
#include <alibabacloud/live/LiveExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Live {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_LIVE_EXPORT MuteGroupUserRequest : public RpcServiceRequest {
|
||||
public:
|
||||
MuteGroupUserRequest();
|
||||
~MuteGroupUserRequest();
|
||||
std::vector<std::string> getMuteUserList() const;
|
||||
void setMuteUserList(const std::vector<std::string> &muteUserList);
|
||||
std::string getOperatorUserId() const;
|
||||
void setOperatorUserId(const std::string &operatorUserId);
|
||||
int getBroadCastType() const;
|
||||
void setBroadCastType(int broadCastType);
|
||||
std::string getGroupId() const;
|
||||
void setGroupId(const std::string &groupId);
|
||||
int getMuteTime() const;
|
||||
void setMuteTime(int muteTime);
|
||||
std::string getAppId() const;
|
||||
void setAppId(const std::string &appId);
|
||||
|
||||
private:
|
||||
std::vector<std::string> muteUserList_;
|
||||
std::string operatorUserId_;
|
||||
int broadCastType_;
|
||||
std::string groupId_;
|
||||
int muteTime_;
|
||||
std::string appId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Live
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_LIVE_MODEL_MUTEGROUPUSERREQUEST_H_
|
||||
55
live/include/alibabacloud/live/model/MuteGroupUserResult.h
Normal file
55
live/include/alibabacloud/live/model/MuteGroupUserResult.h
Normal file
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_LIVE_MODEL_MUTEGROUPUSERRESULT_H_
|
||||
#define ALIBABACLOUD_LIVE_MODEL_MUTEGROUPUSERRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/live/LiveExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Live
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_LIVE_EXPORT MuteGroupUserResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
bool success;
|
||||
};
|
||||
|
||||
|
||||
MuteGroupUserResult();
|
||||
explicit MuteGroupUserResult(const std::string &payload);
|
||||
~MuteGroupUserResult();
|
||||
Result getResult()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Result result_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_LIVE_MODEL_MUTEGROUPUSERRESULT_H_
|
||||
@@ -1275,6 +1275,42 @@ LiveClient::CancelMuteAllGroupUserOutcomeCallable LiveClient::cancelMuteAllGroup
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::CancelMuteGroupUserOutcome LiveClient::cancelMuteGroupUser(const CancelMuteGroupUserRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CancelMuteGroupUserOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CancelMuteGroupUserOutcome(CancelMuteGroupUserResult(outcome.result()));
|
||||
else
|
||||
return CancelMuteGroupUserOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LiveClient::cancelMuteGroupUserAsync(const CancelMuteGroupUserRequest& request, const CancelMuteGroupUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, cancelMuteGroupUser(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LiveClient::CancelMuteGroupUserOutcomeCallable LiveClient::cancelMuteGroupUserCallable(const CancelMuteGroupUserRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CancelMuteGroupUserOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->cancelMuteGroupUser(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::CloseLiveShiftOutcome LiveClient::closeLiveShift(const CloseLiveShiftRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -6459,6 +6495,42 @@ LiveClient::DescribeLiveUserTagsOutcomeCallable LiveClient::describeLiveUserTags
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::DescribeMeterLiveInteractionDauOutcome LiveClient::describeMeterLiveInteractionDau(const DescribeMeterLiveInteractionDauRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeMeterLiveInteractionDauOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeMeterLiveInteractionDauOutcome(DescribeMeterLiveInteractionDauResult(outcome.result()));
|
||||
else
|
||||
return DescribeMeterLiveInteractionDauOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LiveClient::describeMeterLiveInteractionDauAsync(const DescribeMeterLiveInteractionDauRequest& request, const DescribeMeterLiveInteractionDauAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeMeterLiveInteractionDau(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LiveClient::DescribeMeterLiveInteractionDauOutcomeCallable LiveClient::describeMeterLiveInteractionDauCallable(const DescribeMeterLiveInteractionDauRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeMeterLiveInteractionDauOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeMeterLiveInteractionDau(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::DescribeMeterLiveRtcDurationOutcome LiveClient::describeMeterLiveRtcDuration(const DescribeMeterLiveRtcDurationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -8511,6 +8583,78 @@ LiveClient::ModifyStudioLayoutOutcomeCallable LiveClient::modifyStudioLayoutCall
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::MuteAllGroupUserOutcome LiveClient::muteAllGroupUser(const MuteAllGroupUserRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return MuteAllGroupUserOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return MuteAllGroupUserOutcome(MuteAllGroupUserResult(outcome.result()));
|
||||
else
|
||||
return MuteAllGroupUserOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LiveClient::muteAllGroupUserAsync(const MuteAllGroupUserRequest& request, const MuteAllGroupUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, muteAllGroupUser(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LiveClient::MuteAllGroupUserOutcomeCallable LiveClient::muteAllGroupUserCallable(const MuteAllGroupUserRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<MuteAllGroupUserOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->muteAllGroupUser(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::MuteGroupUserOutcome LiveClient::muteGroupUser(const MuteGroupUserRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return MuteGroupUserOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return MuteGroupUserOutcome(MuteGroupUserResult(outcome.result()));
|
||||
else
|
||||
return MuteGroupUserOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LiveClient::muteGroupUserAsync(const MuteGroupUserRequest& request, const MuteGroupUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, muteGroupUser(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LiveClient::MuteGroupUserOutcomeCallable LiveClient::muteGroupUserCallable(const MuteGroupUserRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<MuteGroupUserOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->muteGroupUser(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::OpenLiveShiftOutcome LiveClient::openLiveShift(const OpenLiveShiftRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
74
live/src/model/CancelMuteGroupUserRequest.cc
Normal file
74
live/src/model/CancelMuteGroupUserRequest.cc
Normal file
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* 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/live/model/CancelMuteGroupUserRequest.h>
|
||||
|
||||
using AlibabaCloud::Live::Model::CancelMuteGroupUserRequest;
|
||||
|
||||
CancelMuteGroupUserRequest::CancelMuteGroupUserRequest()
|
||||
: RpcServiceRequest("live", "2016-11-01", "CancelMuteGroupUser") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CancelMuteGroupUserRequest::~CancelMuteGroupUserRequest() {}
|
||||
|
||||
std::vector<CancelMuteGroupUserRequest::std::string> CancelMuteGroupUserRequest::getCancelMuteUserList() const {
|
||||
return cancelMuteUserList_;
|
||||
}
|
||||
|
||||
void CancelMuteGroupUserRequest::setCancelMuteUserList(const std::vector<CancelMuteGroupUserRequest::std::string> &cancelMuteUserList) {
|
||||
cancelMuteUserList_ = cancelMuteUserList;
|
||||
for(int dep1 = 0; dep1 != cancelMuteUserList.size(); dep1++) {
|
||||
setBodyParameter(std::string("CancelMuteUserList") + "." + std::to_string(dep1 + 1), cancelMuteUserList[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::string CancelMuteGroupUserRequest::getOperatorUserId() const {
|
||||
return operatorUserId_;
|
||||
}
|
||||
|
||||
void CancelMuteGroupUserRequest::setOperatorUserId(const std::string &operatorUserId) {
|
||||
operatorUserId_ = operatorUserId;
|
||||
setBodyParameter(std::string("OperatorUserId"), operatorUserId);
|
||||
}
|
||||
|
||||
int CancelMuteGroupUserRequest::getBroadCastType() const {
|
||||
return broadCastType_;
|
||||
}
|
||||
|
||||
void CancelMuteGroupUserRequest::setBroadCastType(int broadCastType) {
|
||||
broadCastType_ = broadCastType;
|
||||
setBodyParameter(std::string("BroadCastType"), std::to_string(broadCastType));
|
||||
}
|
||||
|
||||
std::string CancelMuteGroupUserRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void CancelMuteGroupUserRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setBodyParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
std::string CancelMuteGroupUserRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void CancelMuteGroupUserRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setBodyParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
52
live/src/model/CancelMuteGroupUserResult.cc
Normal file
52
live/src/model/CancelMuteGroupUserResult.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* 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/live/model/CancelMuteGroupUserResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Live;
|
||||
using namespace AlibabaCloud::Live::Model;
|
||||
|
||||
CancelMuteGroupUserResult::CancelMuteGroupUserResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CancelMuteGroupUserResult::CancelMuteGroupUserResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CancelMuteGroupUserResult::~CancelMuteGroupUserResult()
|
||||
{}
|
||||
|
||||
void CancelMuteGroupUserResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["Success"].isNull())
|
||||
result_.success = resultNode["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
CancelMuteGroupUserResult::Result CancelMuteGroupUserResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
72
live/src/model/DescribeMeterLiveInteractionDauRequest.cc
Normal file
72
live/src/model/DescribeMeterLiveInteractionDauRequest.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* 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/live/model/DescribeMeterLiveInteractionDauRequest.h>
|
||||
|
||||
using AlibabaCloud::Live::Model::DescribeMeterLiveInteractionDauRequest;
|
||||
|
||||
DescribeMeterLiveInteractionDauRequest::DescribeMeterLiveInteractionDauRequest()
|
||||
: RpcServiceRequest("live", "2016-11-01", "DescribeMeterLiveInteractionDau") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeMeterLiveInteractionDauRequest::~DescribeMeterLiveInteractionDauRequest() {}
|
||||
|
||||
long DescribeMeterLiveInteractionDauRequest::getStartTs() const {
|
||||
return startTs_;
|
||||
}
|
||||
|
||||
void DescribeMeterLiveInteractionDauRequest::setStartTs(long startTs) {
|
||||
startTs_ = startTs;
|
||||
setParameter(std::string("StartTs"), std::to_string(startTs));
|
||||
}
|
||||
|
||||
std::string DescribeMeterLiveInteractionDauRequest::getServiceArea() const {
|
||||
return serviceArea_;
|
||||
}
|
||||
|
||||
void DescribeMeterLiveInteractionDauRequest::setServiceArea(const std::string &serviceArea) {
|
||||
serviceArea_ = serviceArea;
|
||||
setParameter(std::string("ServiceArea"), serviceArea);
|
||||
}
|
||||
|
||||
std::string DescribeMeterLiveInteractionDauRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DescribeMeterLiveInteractionDauRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
long DescribeMeterLiveInteractionDauRequest::getEndTs() const {
|
||||
return endTs_;
|
||||
}
|
||||
|
||||
void DescribeMeterLiveInteractionDauRequest::setEndTs(long endTs) {
|
||||
endTs_ = endTs;
|
||||
setParameter(std::string("EndTs"), std::to_string(endTs));
|
||||
}
|
||||
|
||||
long DescribeMeterLiveInteractionDauRequest::getInterval() const {
|
||||
return interval_;
|
||||
}
|
||||
|
||||
void DescribeMeterLiveInteractionDauRequest::setInterval(long interval) {
|
||||
interval_ = interval;
|
||||
setParameter(std::string("Interval"), std::to_string(interval));
|
||||
}
|
||||
|
||||
66
live/src/model/DescribeMeterLiveInteractionDauResult.cc
Normal file
66
live/src/model/DescribeMeterLiveInteractionDauResult.cc
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* 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/live/model/DescribeMeterLiveInteractionDauResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Live;
|
||||
using namespace AlibabaCloud::Live::Model;
|
||||
|
||||
DescribeMeterLiveInteractionDauResult::DescribeMeterLiveInteractionDauResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeMeterLiveInteractionDauResult::DescribeMeterLiveInteractionDauResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeMeterLiveInteractionDauResult::~DescribeMeterLiveInteractionDauResult()
|
||||
{}
|
||||
|
||||
void DescribeMeterLiveInteractionDauResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["DataItem"];
|
||||
for (auto valueDataDataItem : allDataNode)
|
||||
{
|
||||
DataItem dataObject;
|
||||
if(!valueDataDataItem["Timestamp"].isNull())
|
||||
dataObject.timestamp = std::stol(valueDataDataItem["Timestamp"].asString());
|
||||
if(!valueDataDataItem["Dau"].isNull())
|
||||
dataObject.dau = valueDataDataItem["Dau"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["PeakDau"].isNull())
|
||||
peakDau_ = value["PeakDau"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeMeterLiveInteractionDauResult::DataItem> DescribeMeterLiveInteractionDauResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
double DescribeMeterLiveInteractionDauResult::getPeakDau()const
|
||||
{
|
||||
return peakDau_;
|
||||
}
|
||||
|
||||
54
live/src/model/MuteAllGroupUserRequest.cc
Normal file
54
live/src/model/MuteAllGroupUserRequest.cc
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/live/model/MuteAllGroupUserRequest.h>
|
||||
|
||||
using AlibabaCloud::Live::Model::MuteAllGroupUserRequest;
|
||||
|
||||
MuteAllGroupUserRequest::MuteAllGroupUserRequest()
|
||||
: RpcServiceRequest("live", "2016-11-01", "MuteAllGroupUser") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
MuteAllGroupUserRequest::~MuteAllGroupUserRequest() {}
|
||||
|
||||
std::string MuteAllGroupUserRequest::getOperatorUserId() const {
|
||||
return operatorUserId_;
|
||||
}
|
||||
|
||||
void MuteAllGroupUserRequest::setOperatorUserId(const std::string &operatorUserId) {
|
||||
operatorUserId_ = operatorUserId;
|
||||
setBodyParameter(std::string("OperatorUserId"), operatorUserId);
|
||||
}
|
||||
|
||||
std::string MuteAllGroupUserRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void MuteAllGroupUserRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setBodyParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
std::string MuteAllGroupUserRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void MuteAllGroupUserRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setBodyParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
52
live/src/model/MuteAllGroupUserResult.cc
Normal file
52
live/src/model/MuteAllGroupUserResult.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* 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/live/model/MuteAllGroupUserResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Live;
|
||||
using namespace AlibabaCloud::Live::Model;
|
||||
|
||||
MuteAllGroupUserResult::MuteAllGroupUserResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
MuteAllGroupUserResult::MuteAllGroupUserResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
MuteAllGroupUserResult::~MuteAllGroupUserResult()
|
||||
{}
|
||||
|
||||
void MuteAllGroupUserResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["Success"].isNull())
|
||||
result_.success = resultNode["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
MuteAllGroupUserResult::Result MuteAllGroupUserResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
83
live/src/model/MuteGroupUserRequest.cc
Normal file
83
live/src/model/MuteGroupUserRequest.cc
Normal file
@@ -0,0 +1,83 @@
|
||||
/*
|
||||
* 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/live/model/MuteGroupUserRequest.h>
|
||||
|
||||
using AlibabaCloud::Live::Model::MuteGroupUserRequest;
|
||||
|
||||
MuteGroupUserRequest::MuteGroupUserRequest()
|
||||
: RpcServiceRequest("live", "2016-11-01", "MuteGroupUser") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
MuteGroupUserRequest::~MuteGroupUserRequest() {}
|
||||
|
||||
std::vector<MuteGroupUserRequest::std::string> MuteGroupUserRequest::getMuteUserList() const {
|
||||
return muteUserList_;
|
||||
}
|
||||
|
||||
void MuteGroupUserRequest::setMuteUserList(const std::vector<MuteGroupUserRequest::std::string> &muteUserList) {
|
||||
muteUserList_ = muteUserList;
|
||||
for(int dep1 = 0; dep1 != muteUserList.size(); dep1++) {
|
||||
setBodyParameter(std::string("MuteUserList") + "." + std::to_string(dep1 + 1), muteUserList[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::string MuteGroupUserRequest::getOperatorUserId() const {
|
||||
return operatorUserId_;
|
||||
}
|
||||
|
||||
void MuteGroupUserRequest::setOperatorUserId(const std::string &operatorUserId) {
|
||||
operatorUserId_ = operatorUserId;
|
||||
setBodyParameter(std::string("OperatorUserId"), operatorUserId);
|
||||
}
|
||||
|
||||
int MuteGroupUserRequest::getBroadCastType() const {
|
||||
return broadCastType_;
|
||||
}
|
||||
|
||||
void MuteGroupUserRequest::setBroadCastType(int broadCastType) {
|
||||
broadCastType_ = broadCastType;
|
||||
setBodyParameter(std::string("BroadCastType"), std::to_string(broadCastType));
|
||||
}
|
||||
|
||||
std::string MuteGroupUserRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void MuteGroupUserRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setBodyParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
int MuteGroupUserRequest::getMuteTime() const {
|
||||
return muteTime_;
|
||||
}
|
||||
|
||||
void MuteGroupUserRequest::setMuteTime(int muteTime) {
|
||||
muteTime_ = muteTime;
|
||||
setBodyParameter(std::string("MuteTime"), std::to_string(muteTime));
|
||||
}
|
||||
|
||||
std::string MuteGroupUserRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void MuteGroupUserRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setBodyParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
52
live/src/model/MuteGroupUserResult.cc
Normal file
52
live/src/model/MuteGroupUserResult.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* 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/live/model/MuteGroupUserResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Live;
|
||||
using namespace AlibabaCloud::Live::Model;
|
||||
|
||||
MuteGroupUserResult::MuteGroupUserResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
MuteGroupUserResult::MuteGroupUserResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
MuteGroupUserResult::~MuteGroupUserResult()
|
||||
{}
|
||||
|
||||
void MuteGroupUserResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["Success"].isNull())
|
||||
result_.success = resultNode["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
MuteGroupUserResult::Result MuteGroupUserResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user