org.teamapps.dto.UiWaitingVideoInfo Maven / Gradle / Ivy
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 = UiWaitingVideoInfo.class)
public class UiWaitingVideoInfo implements UiObject {
protected String url;
protected long durationInSeconds;
/**
* @deprecated Only for Jackson deserialization. Use the other constructor instead.
*/
@Deprecated
public UiWaitingVideoInfo() {
// default constructor for Jackson
}
public UiWaitingVideoInfo(String url, long durationInSeconds) {
this.url = url;
this.durationInSeconds = durationInSeconds;
}
@com.fasterxml.jackson.annotation.JsonIgnore
public UiObjectType getUiObjectType() {
return UiObjectType.UI_WAITING_VIDEO_INFO;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("url=" + url).append(", ")
.append("durationInSeconds=" + durationInSeconds)
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("url")
public String getUrl() {
return url;
}
@com.fasterxml.jackson.annotation.JsonGetter("durationInSeconds")
public long getDurationInSeconds() {
return durationInSeconds;
}
}