org.zendesk.client.v2.model.Photo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zendesk-java-client Show documentation
Show all versions of zendesk-java-client Show documentation
Java client for the Zendesk API
The newest version!
package org.zendesk.client.v2.model;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.io.Serializable;
/**
* @author stephenc
* @since 05/04/2013 15:36
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class Photo implements Serializable {
private static final long serialVersionUID = 1L;
private Long id;
private String fileName;
private String url;
private String contentUrl;
private String mappedContentUrl;
private String contentType;
private Long size;
private Long width;
private Long height;
private Boolean inline;
@JsonProperty("content_type")
public String getContentType() {
return contentType;
}
public void setContentType(String contentType) {
this.contentType = contentType;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
@JsonProperty("content_url")
public String getContentUrl() {
return contentUrl;
}
public void setContentUrl(String contentUrl) {
this.contentUrl = contentUrl;
}
@JsonProperty("mapped_content_url")
public String getMappedContentUrl() {
return mappedContentUrl;
}
public void setMappedContentUrl(String mappedContentUrl) {
this.mappedContentUrl = mappedContentUrl;
}
@JsonProperty("file_name")
public String getFileName() {
return fileName;
}
public void setFileName(String fileName) {
this.fileName = fileName;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Long getSize() {
return size;
}
public void setSize(Long size) {
this.size = size;
}
public Long getWidth() {
return width;
}
public void setWidth(Long width) {
this.width = width;
}
public Long getHeight() {
return height;
}
public Boolean getInline() {
return inline;
}
public void setInline(Boolean inline) {
this.inline = inline;
}
public void setHeight(Long height) {
this.height = height;
}
@Override
public String toString() {
return "Photo"
+ "{contentType='"
+ contentType
+ '\''
+ ", id="
+ id
+ ", fileName='"
+ fileName
+ '\''
+ ", contentUrl='"
+ contentUrl
+ '\''
+ ", size="
+ size
+ ", width="
+ width
+ ", height="
+ height
+ ", inline="
+ inline
+ '}';
}
}