org.tsugi.contentitem.objects.Icon Maven / Gradle / Ivy
package org.tsugi.contentitem.objects;
import java.util.ArrayList;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import org.tsugi.jackson.objects.JacksonBase;
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
@JsonPropertyOrder({
"@id",
"width",
"height"
})
public class Icon extends JacksonBase {
@JsonProperty("@id")
private String _id;
@JsonProperty("width")
private Integer width;
@JsonProperty("height")
private Integer height;
// Constructor
public Icon(String url) {
this._id = url;
}
@JsonProperty("height")
public Integer getHeight() {
return height;
}
@JsonProperty("height")
public void setHeight(Integer height) {
this.height = height;
}
@JsonProperty("width")
public Integer getWidth() {
return width;
}
@JsonProperty("width")
public void setWidth(Integer width) {
this.width = width;
}
}