package org.zendesk.client.v2.model;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * @author stephenc
 * @since 05/04/2013 15:36
 */
public class Photo implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;
    private String fileName;
    private String contentUrl;
    private String contentType;
    private Long size;

    @JsonProperty("content_type")
    public String getContentType() {
        return contentType;
    }

    public void setContentType(String contentType) {
        this.contentType = contentType;
    }

    @JsonProperty("content_url")
    public String getContentUrl() {
        return contentUrl;
    }

    public void setContentUrl(String contentUrl) {
        this.contentUrl = contentUrl;
    }

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

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder();
        sb.append("Photo");
        sb.append("{contentType='").append(contentType).append('\'');
        sb.append(", id=").append(id);
        sb.append(", fileName='").append(fileName).append('\'');
        sb.append(", contentUrl='").append(contentUrl).append('\'');
        sb.append(", size=").append(size);
        sb.append('}');
        return sb.toString();
    }
}

@@ -61,16 +61,78 @@
 zable;%0A%0A
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;%0A
 import c
@@ -177,16 +177,16 @@
 operty;%0A
-
 %0A/**%0A * 
@@ -233,16 +233,60 @@
 :36%0A */%0A
+@JsonIgnoreProperties(ignoreUnknown = true)%0A
 public c
@@ -423,24 +423,48 @@
 g fileName;%0A
+    private String url;%0A
     private 
@@ -478,24 +478,61 @@
 contentUrl;%0A
+    private String mappedContentUrl;%0A
     private 
@@ -573,16 +573,93 @@
 ng size;
+%0A    private Long width;%0A    private Long height;%0A    private Boolean inline;
 %0A%0A    @J
@@ -850,32 +850,156 @@
 entType;%0A    %7D%0A%0A
+    public String getUrl() %7B%0A        return url;%0A    %7D%0A%0A    public void setUrl(String url) %7B%0A        this.url = url;%0A    %7D%0A%0A
     @JsonPropert
@@ -1173,32 +1173,274 @@
 tentUrl;%0A    %7D%0A%0A
+    @JsonProperty(%22mapped_content_url%22)%0A    public String getMappedContentUrl() %7B%0A        return mappedContentUrl;%0A    %7D%0A%0A    public void setMappedContentUrl(String mappedContentUrl) %7B%0A        this.mappedContentUrl = mappedContentUrl;%0A    %7D%0A%0A
     @JsonPropert
@@ -1844,24 +1844,438 @@
 ize;%0A    %7D%0A%0A
+    public Long getWidth() %7B%0A        return width;%0A    %7D%0A%0A    public void setWidth(Long width) %7B%0A        this.width = width;%0A    %7D%0A%0A    public Long getHeight() %7B%0A        return height;%0A    %7D%0A%0A    public Boolean getInline() %7B%0A        return inline;%0A    %7D%0A%0A    public void setInline(Boolean inline) %7B%0A        this.inline = inline;%0A    %7D%0A%0A    public void setHeight(Long height) %7B%0A        this.height = height;%0A    %7D%0A%0A
     @Overrid
@@ -2624,32 +2624,32 @@
 ).append('%5C'');%0A
-
         sb.appen
@@ -2675,16 +2675,155 @@
 (size);%0A
+        sb.append(%22, width=%22).append(width);%0A        sb.append(%22, height=%22).append(height);%0A        sb.append(%22, inline=%22).append(inline);%0A
         

Add additional attributes for Photo found in API responses, add JsonIgnoreProperties.ignoreUnknown (#185)