LIVE SDK Auto Released By wb-czb515173,Version:1.36.42
Signed-off-by: sdk-team <sdk-team@alibabacloud.com>
This commit is contained in:
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* 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/AddCasterProgramRequest.h>
|
||||
|
||||
using AlibabaCloud::Live::Model::AddCasterProgramRequest;
|
||||
|
||||
AddCasterProgramRequest::AddCasterProgramRequest() :
|
||||
RpcServiceRequest("live", "2016-11-01", "AddCasterProgram")
|
||||
{}
|
||||
|
||||
AddCasterProgramRequest::~AddCasterProgramRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* 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/AddCasterProgramRequest.h>
|
||||
|
||||
using AlibabaCloud::Live::Model::AddCasterProgramRequest;
|
||||
|
||||
AddCasterProgramRequest::AddCasterProgramRequest() :
|
||||
RpcServiceRequest("live", "2016-11-01", "AddCasterProgram")
|
||||
{}
|
||||
|
||||
AddCasterProgramRequest::~AddCasterProgramRequest()
|
||||
{}
|
||||
|
||||
std::string AddCasterProgramRequest::getCasterId()const
|
||||
{
|
||||
return casterId_;
|
||||
@@ -33,7 +33,7 @@ std::string AddCasterProgramRequest::getCasterId()const
|
||||
void AddCasterProgramRequest::setCasterId(const std::string& casterId)
|
||||
{
|
||||
casterId_ = casterId;
|
||||
setParameter("CasterId", casterId);
|
||||
setCoreParameter("CasterId", casterId);
|
||||
}
|
||||
|
||||
std::vector<AddCasterProgramRequest::Episode> AddCasterProgramRequest::getEpisode()const
|
||||
@@ -48,13 +48,13 @@ void AddCasterProgramRequest::setEpisode(const std::vector<Episode>& episode)
|
||||
for(int i = 0; i!= episode.size(); i++) {
|
||||
auto obj = episode.at(i);
|
||||
std::string str ="Episode."+ std::to_string(i);
|
||||
setParameter(str + ".ResourceId", obj.resourceId);
|
||||
for(int i = 0; i!= obj.componentId.size(); i++)
|
||||
setParameter(str + ".ComponentId."+ std::to_string(i), obj.componentId.at(i));
|
||||
setParameter(str + ".SwitchType", obj.switchType);
|
||||
setParameter(str + ".EpisodeType", obj.episodeType);
|
||||
setParameter(str + ".EpisodeName", obj.episodeName);
|
||||
setParameter(str + ".EndTime", obj.endTime);
|
||||
setCoreParameter(str + ".ResourceId", obj.resourceId);
|
||||
for(int i = 0; i!= obj.componentId.size(); i++)
|
||||
setCoreParameter(str + ".ComponentId."+ std::to_string(i), obj.componentId.at(i));
|
||||
setCoreParameter(str + ".SwitchType", obj.switchType);
|
||||
setCoreParameter(str + ".EpisodeType", obj.episodeType);
|
||||
setCoreParameter(str + ".EpisodeName", obj.episodeName);
|
||||
setCoreParameter(str + ".EndTime", obj.endTime);
|
||||
setCoreParameter(str + ".StartTime", obj.startTime);
|
||||
}
|
||||
}
|
||||
@@ -66,6 +66,6 @@ long AddCasterProgramRequest::getOwnerId()const
|
||||
|
||||
void AddCasterProgramRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user