org.teamapps.dto.UiAudioLevelIndicator 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 = UiAudioLevelIndicator.class)
public class UiAudioLevelIndicator extends UiComponent implements UiObject {
protected String deviceId;
protected int barWidth;
public UiAudioLevelIndicator() {
super();
}
@com.fasterxml.jackson.annotation.JsonIgnore
public UiObjectType getUiObjectType() {
return UiObjectType.UI_AUDIO_LEVEL_INDICATOR;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("id=" + id).append(", ")
.append("debuggingId=" + debuggingId).append(", ")
.append("deviceId=" + deviceId).append(", ")
.append("classNamesBySelector=" + classNamesBySelector).append(", ")
.append("visible=" + visible).append(", ")
.append("stylesBySelector=" + stylesBySelector).append(", ")
.append("attributesBySelector=" + attributesBySelector).append(", ")
.append("barWidth=" + barWidth)
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("deviceId")
public String getDeviceId() {
return deviceId;
}
@com.fasterxml.jackson.annotation.JsonGetter("barWidth")
public int getBarWidth() {
return barWidth;
}
@com.fasterxml.jackson.annotation.JsonSetter("id")
public UiAudioLevelIndicator setId(String id) {
this.id = id;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("debuggingId")
public UiAudioLevelIndicator setDebuggingId(String debuggingId) {
this.debuggingId = debuggingId;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("visible")
public UiAudioLevelIndicator setVisible(boolean visible) {
this.visible = visible;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("stylesBySelector")
public UiAudioLevelIndicator setStylesBySelector(Map> stylesBySelector) {
this.stylesBySelector = stylesBySelector;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("classNamesBySelector")
public UiAudioLevelIndicator setClassNamesBySelector(Map> classNamesBySelector) {
this.classNamesBySelector = classNamesBySelector;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("attributesBySelector")
public UiAudioLevelIndicator setAttributesBySelector(Map> attributesBySelector) {
this.attributesBySelector = attributesBySelector;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("deviceId")
public UiAudioLevelIndicator setDeviceId(String deviceId) {
this.deviceId = deviceId;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("barWidth")
public UiAudioLevelIndicator setBarWidth(int barWidth) {
this.barWidth = barWidth;
return this;
}
public static class SetDeviceIdCommand implements UiCommand {
@UiComponentId protected String componentId;
protected String deviceId;
/**
* @deprecated Only for Jackson deserialization. Use the other constructor instead.
*/
@Deprecated
public SetDeviceIdCommand() {
// default constructor for Jackson
}
public SetDeviceIdCommand(String componentId, String deviceId) {
this.componentId = componentId;
this.deviceId = deviceId;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("componentId=" + componentId).append(", ")
.append("deviceId=" + deviceId)
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("componentId")
public String getComponentId() {
return componentId;
}
@com.fasterxml.jackson.annotation.JsonGetter("deviceId")
public String getDeviceId() {
return deviceId;
}
}
}