Files
aliyun-openapi-cpp-sdk/rtc/src/model/MuteAudioRequest.cc
2019-09-18 11:18:56 +08:00

73 lines
1.8 KiB
C++

/*
* 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/MuteAudioRequest.h>
using AlibabaCloud::Rtc::Model::MuteAudioRequest;
MuteAudioRequest::MuteAudioRequest() :
RpcServiceRequest("rtc", "2018-01-11", "MuteAudio")
{}
MuteAudioRequest::~MuteAudioRequest()
{}
std::vector<std::string> MuteAudioRequest::getParticipantIds()const
{
return participantIds_;
}
void MuteAudioRequest::setParticipantIds(const std::vector<std::string>& participantIds)
{
participantIds_ = participantIds;
for(int i = 0; i!= participantIds.size(); i++)
setCoreParameter("ParticipantIds."+ std::to_string(i), participantIds.at(i));
}
std::string MuteAudioRequest::getConferenceId()const
{
return conferenceId_;
}
void MuteAudioRequest::setConferenceId(const std::string& conferenceId)
{
conferenceId_ = conferenceId;
setCoreParameter("ConferenceId", conferenceId);
}
long MuteAudioRequest::getOwnerId()const
{
return ownerId_;
}
void MuteAudioRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string MuteAudioRequest::getAppId()const
{
return appId_;
}
void MuteAudioRequest::setAppId(const std::string& appId)
{
appId_ = appId;
setCoreParameter("AppId", appId);
}