org.teamapps.dto.UiQrCodeScanner 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 = UiQrCodeScanner.class)
public class UiQrCodeScanner extends UiComponent implements UiObject {
protected boolean scanning;
protected boolean stopsScanningAtFirstResult;
public UiQrCodeScanner() {
super();
}
@com.fasterxml.jackson.annotation.JsonIgnore
public UiObjectType getUiObjectType() {
return UiObjectType.UI_QR_CODE_SCANNER;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("id=" + id).append(", ")
.append("debuggingId=" + debuggingId).append(", ")
.append("classNamesBySelector=" + classNamesBySelector).append(", ")
.append("visible=" + visible).append(", ")
.append("stylesBySelector=" + stylesBySelector).append(", ")
.append("attributesBySelector=" + attributesBySelector).append(", ")
.append("scanning=" + scanning).append(", ")
.append("stopsScanningAtFirstResult=" + stopsScanningAtFirstResult)
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("scanning")
public boolean getScanning() {
return scanning;
}
@com.fasterxml.jackson.annotation.JsonGetter("stopsScanningAtFirstResult")
public boolean getStopsScanningAtFirstResult() {
return stopsScanningAtFirstResult;
}
@com.fasterxml.jackson.annotation.JsonSetter("id")
public UiQrCodeScanner setId(String id) {
this.id = id;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("debuggingId")
public UiQrCodeScanner setDebuggingId(String debuggingId) {
this.debuggingId = debuggingId;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("visible")
public UiQrCodeScanner setVisible(boolean visible) {
this.visible = visible;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("stylesBySelector")
public UiQrCodeScanner setStylesBySelector(Map> stylesBySelector) {
this.stylesBySelector = stylesBySelector;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("classNamesBySelector")
public UiQrCodeScanner setClassNamesBySelector(Map> classNamesBySelector) {
this.classNamesBySelector = classNamesBySelector;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("attributesBySelector")
public UiQrCodeScanner setAttributesBySelector(Map> attributesBySelector) {
this.attributesBySelector = attributesBySelector;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("scanning")
public UiQrCodeScanner setScanning(boolean scanning) {
this.scanning = scanning;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("stopsScanningAtFirstResult")
public UiQrCodeScanner setStopsScanningAtFirstResult(boolean stopsScanningAtFirstResult) {
this.stopsScanningAtFirstResult = stopsScanningAtFirstResult;
return this;
}
public static class QrCodeDetectedEvent implements UiEvent {
@UiComponentId protected String componentId;
protected String code;
/**
* @deprecated Only for Jackson deserialization. Use the other constructor instead.
*/
@Deprecated
public QrCodeDetectedEvent() {
// default constructor for Jackson
}
public QrCodeDetectedEvent(String componentId, String code) {
this.componentId = componentId;
this.code = code;
}
public UiEventType getUiEventType() {
return UiEventType.UI_QR_CODE_SCANNER_QR_CODE_DETECTED;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("componentId=" + componentId).append(", ")
.append("code=" + code)
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("componentId")
public String getComponentId() {
return componentId;
}
@com.fasterxml.jackson.annotation.JsonGetter("code")
public String getCode() {
return code;
}
}
public static class StartScanningCommand implements UiCommand {
@UiComponentId protected String componentId;
protected boolean stopScanningAtFirstResult;
/**
* @deprecated Only for Jackson deserialization. Use the other constructor instead.
*/
@Deprecated
public StartScanningCommand() {
// default constructor for Jackson
}
public StartScanningCommand(String componentId, boolean stopScanningAtFirstResult) {
this.componentId = componentId;
this.stopScanningAtFirstResult = stopScanningAtFirstResult;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("componentId=" + componentId).append(", ")
.append("stopScanningAtFirstResult=" + stopScanningAtFirstResult)
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("componentId")
public String getComponentId() {
return componentId;
}
@com.fasterxml.jackson.annotation.JsonGetter("stopScanningAtFirstResult")
public boolean getStopScanningAtFirstResult() {
return stopScanningAtFirstResult;
}
}
public static class StopScanningCommand implements UiCommand {
@UiComponentId protected String componentId;
/**
* @deprecated Only for Jackson deserialization. Use the other constructor instead.
*/
@Deprecated
public StopScanningCommand() {
// default constructor for Jackson
}
public StopScanningCommand(String componentId) {
this.componentId = componentId;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("componentId=" + componentId)
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("componentId")
public String getComponentId() {
return componentId;
}
}
public static class SwitchCameraCommand implements UiCommand {
@UiComponentId protected String componentId;
/**
* @deprecated Only for Jackson deserialization. Use the other constructor instead.
*/
@Deprecated
public SwitchCameraCommand() {
// default constructor for Jackson
}
public SwitchCameraCommand(String componentId) {
this.componentId = componentId;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("componentId=" + componentId)
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("componentId")
public String getComponentId() {
return componentId;
}
}
}