org.teamapps.dto.UiMediaSoupPublishingParameters Maven / Gradle / Ivy
The newest version!
package org.teamapps.dto;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Set;
import java.util.function.Supplier;
import java.util.stream.Collectors;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonTypeIdResolver;
/**
* THIS IS GENERATED CODE!
* PLEASE DO NOT MODIFY - ALL YOUR WORK WOULD BE LOST!
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.CUSTOM, property = "_type", defaultImpl = UiMediaSoupPublishingParameters.class)
public class UiMediaSoupPublishingParameters implements UiObject {
protected String streamUuid;
protected UiMediaServerUrlAndToken server;
protected UiAudioTrackConstraints audioConstraints;
protected UiVideoTrackConstraints videoConstraints;
protected UiScreenSharingConstraints screenSharingConstraints;
protected boolean simulcast;
protected long minBitrate;
protected long maxBitrate;
protected long keyFrameRequestDelay = 2500;
public UiMediaSoupPublishingParameters() {
}
@com.fasterxml.jackson.annotation.JsonIgnore
public UiObjectType getUiObjectType() {
return UiObjectType.UI_MEDIA_SOUP_PUBLISHING_PARAMETERS;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("streamUuid=" + streamUuid).append(", ")
.append("simulcast=" + simulcast).append(", ")
.append("minBitrate=" + minBitrate).append(", ")
.append("maxBitrate=" + maxBitrate).append(", ")
.append("keyFrameRequestDelay=" + keyFrameRequestDelay).append(", ")
.append(server != null ? "server={" + server.toString() + "}" : "").append(", ")
.append(audioConstraints != null ? "audioConstraints={" + audioConstraints.toString() + "}" : "").append(", ")
.append(videoConstraints != null ? "videoConstraints={" + videoConstraints.toString() + "}" : "").append(", ")
.append(screenSharingConstraints != null ? "screenSharingConstraints={" + screenSharingConstraints.toString() + "}" : "")
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("streamUuid")
public String getStreamUuid() {
return streamUuid;
}
@com.fasterxml.jackson.annotation.JsonGetter("server")
public UiMediaServerUrlAndToken getServer() {
return server;
}
@com.fasterxml.jackson.annotation.JsonGetter("audioConstraints")
public UiAudioTrackConstraints getAudioConstraints() {
return audioConstraints;
}
@com.fasterxml.jackson.annotation.JsonGetter("videoConstraints")
public UiVideoTrackConstraints getVideoConstraints() {
return videoConstraints;
}
@com.fasterxml.jackson.annotation.JsonGetter("screenSharingConstraints")
public UiScreenSharingConstraints getScreenSharingConstraints() {
return screenSharingConstraints;
}
@com.fasterxml.jackson.annotation.JsonGetter("simulcast")
public boolean getSimulcast() {
return simulcast;
}
@com.fasterxml.jackson.annotation.JsonGetter("minBitrate")
public long getMinBitrate() {
return minBitrate;
}
@com.fasterxml.jackson.annotation.JsonGetter("maxBitrate")
public long getMaxBitrate() {
return maxBitrate;
}
@com.fasterxml.jackson.annotation.JsonGetter("keyFrameRequestDelay")
public long getKeyFrameRequestDelay() {
return keyFrameRequestDelay;
}
@com.fasterxml.jackson.annotation.JsonSetter("streamUuid")
public UiMediaSoupPublishingParameters setStreamUuid(String streamUuid) {
this.streamUuid = streamUuid;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("server")
public UiMediaSoupPublishingParameters setServer(UiMediaServerUrlAndToken server) {
this.server = server;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("audioConstraints")
public UiMediaSoupPublishingParameters setAudioConstraints(UiAudioTrackConstraints audioConstraints) {
this.audioConstraints = audioConstraints;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("videoConstraints")
public UiMediaSoupPublishingParameters setVideoConstraints(UiVideoTrackConstraints videoConstraints) {
this.videoConstraints = videoConstraints;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("screenSharingConstraints")
public UiMediaSoupPublishingParameters setScreenSharingConstraints(UiScreenSharingConstraints screenSharingConstraints) {
this.screenSharingConstraints = screenSharingConstraints;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("simulcast")
public UiMediaSoupPublishingParameters setSimulcast(boolean simulcast) {
this.simulcast = simulcast;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("minBitrate")
public UiMediaSoupPublishingParameters setMinBitrate(long minBitrate) {
this.minBitrate = minBitrate;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("maxBitrate")
public UiMediaSoupPublishingParameters setMaxBitrate(long maxBitrate) {
this.maxBitrate = maxBitrate;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("keyFrameRequestDelay")
public UiMediaSoupPublishingParameters setKeyFrameRequestDelay(long keyFrameRequestDelay) {
this.keyFrameRequestDelay = keyFrameRequestDelay;
return this;
}
}