All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.tsugi.contentitem.objects.Icon Maven / Gradle / Ivy

There is a newer version: 23.3
Show newest version

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;
    }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy