com.afrozaar.wordpress.wpapi.v2.model.Thumbnail Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wp-api-v2-client-java Show documentation
Show all versions of wp-api-v2-client-java Show documentation
A Java client implementation to the WordPress WP-API v2 plugin.
package com.afrozaar.wordpress.wpapi.v2.model;
import com.fasterxml.jackson.annotation.JsonProperty;
public class Thumbnail {
@JsonProperty("file")
private String file;
@JsonProperty("width")
private Integer width;
@JsonProperty("height")
private Integer height;
@JsonProperty("mime-type")
private String mimeType;
@JsonProperty("source_url")
private String sourceUrl;
public String getFile() {
return file;
}
public void setFile(String file) {
this.file = file;
}
public Integer getWidth() {
return width;
}
public void setWidth(Integer width) {
this.width = width;
}
public Integer getHeight() {
return height;
}
public void setHeight(Integer height) {
this.height = height;
}
public String getMimeType() {
return mimeType;
}
public void setMimeType(String mimeType) {
this.mimeType = mimeType;
}
public String getSourceUrl() {
return sourceUrl;
}
public void setSourceUrl(String sourceUrl) {
this.sourceUrl = sourceUrl;
}
@Override
public String toString() {
return "Thumbnail{" +
"file='" + file + '\'' +
", width=" + width +
", height=" + height +
", mimeType='" + mimeType + '\'' +
", sourceUrl='" + sourceUrl + '\'' +
'}';
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy