com.aliyuncs.live.model.v20161101.UpdateCasterSceneAudioRequest Maven / Gradle / Ivy
/*
* 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.
*/
package com.aliyuncs.live.model.v20161101;
import com.aliyuncs.RpcAcsRequest;
import java.util.List;
import com.aliyuncs.http.MethodType;
import com.aliyuncs.live.Endpoint;
/**
* @author auto create
* @version
*/
public class UpdateCasterSceneAudioRequest extends RpcAcsRequest {
private String casterId;
private Long ownerId;
private List audioLayers;
private String sceneId;
private List mixLists;
private Integer followEnable;
public UpdateCasterSceneAudioRequest() {
super("live", "2016-11-01", "UpdateCasterSceneAudio", "live");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
} catch (Exception e) {}
}
public String getCasterId() {
return this.casterId;
}
public void setCasterId(String casterId) {
this.casterId = casterId;
if(casterId != null){
putQueryParameter("CasterId", casterId);
}
}
public Long getOwnerId() {
return this.ownerId;
}
public void setOwnerId(Long ownerId) {
this.ownerId = ownerId;
if(ownerId != null){
putQueryParameter("OwnerId", ownerId.toString());
}
}
public List getAudioLayers() {
return this.audioLayers;
}
public void setAudioLayers(List audioLayers) {
this.audioLayers = audioLayers;
if (audioLayers != null) {
for (int depth1 = 0; depth1 < audioLayers.size(); depth1++) {
putQueryParameter("AudioLayer." + (depth1 + 1) + ".Filter" , audioLayers.get(depth1).getFilter());
putQueryParameter("AudioLayer." + (depth1 + 1) + ".FixedDelayDuration" , audioLayers.get(depth1).getFixedDelayDuration());
putQueryParameter("AudioLayer." + (depth1 + 1) + ".ValidChannel" , audioLayers.get(depth1).getValidChannel());
putQueryParameter("AudioLayer." + (depth1 + 1) + ".VolumeRate" , audioLayers.get(depth1).getVolumeRate());
}
}
}
public String getSceneId() {
return this.sceneId;
}
public void setSceneId(String sceneId) {
this.sceneId = sceneId;
if(sceneId != null){
putQueryParameter("SceneId", sceneId);
}
}
public List getMixLists() {
return this.mixLists;
}
public void setMixLists(List mixLists) {
this.mixLists = mixLists;
if (mixLists != null) {
for (int i = 0; i < mixLists.size(); i++) {
putQueryParameter("MixList." + (i + 1) , mixLists.get(i));
}
}
}
public Integer getFollowEnable() {
return this.followEnable;
}
public void setFollowEnable(Integer followEnable) {
this.followEnable = followEnable;
if(followEnable != null){
putQueryParameter("FollowEnable", followEnable.toString());
}
}
public static class AudioLayer {
private String filter;
private Integer fixedDelayDuration;
private String validChannel;
private Float volumeRate;
public String getFilter() {
return this.filter;
}
public void setFilter(String filter) {
this.filter = filter;
}
public Integer getFixedDelayDuration() {
return this.fixedDelayDuration;
}
public void setFixedDelayDuration(Integer fixedDelayDuration) {
this.fixedDelayDuration = fixedDelayDuration;
}
public String getValidChannel() {
return this.validChannel;
}
public void setValidChannel(String validChannel) {
this.validChannel = validChannel;
}
public Float getVolumeRate() {
return this.volumeRate;
}
public void setVolumeRate(Float volumeRate) {
this.volumeRate = volumeRate;
}
}
@Override
public Class getResponseClass() {
return UpdateCasterSceneAudioResponse.class;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy