org.tinymediamanager.scraper.animated.entities.Image Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scraper-animated Show documentation
Show all versions of scraper-animated Show documentation
A scraper for animated movie posters and fanarts
The newest version!
package org.tinymediamanager.scraper.animated.entities;
import java.util.HashMap;
import java.util.Map;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
public class Image {
@JsonProperty("date_added")
private String dateAdded; // yyyy-MM-dd HH:mm:ss
@JsonProperty("name")
private String name;
@JsonProperty("resolution")
private String resolution;
@JsonProperty("width")
private int width;
@JsonProperty("height")
private int height;
@JsonIgnore
private Map additionalProperties = new HashMap();
public String getDateAdded() {
return dateAdded;
}
public void setDateAdded(String dateAdded) {
this.dateAdded = dateAdded;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getResolution() {
return resolution;
}
public void setResolution(String resolution) {
this.resolution = resolution;
}
public int getWidth() {
return width;
}
public void setWidth(int width) {
this.width = width;
}
public int getHeight() {
return height;
}
public void setHeight(int height) {
this.height = height;
}
@JsonAnyGetter
public Map getAdditionalProperties() {
return this.additionalProperties;
}
@JsonAnySetter
public void setAdditionalProperty(String name, Object value) {
this.additionalProperties.put(name, value);
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
}
}