package org.zendesk.client.v2.model.hc;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.Date;

/**
 * @author schristou88
 *         Date: 8/31/15
 *         Time: 1:39 AM
 */
public class ArticleAttachments {

    // Automatically assigned when the article attachment is created
    private int id;

    // The API url of this article attachment
    private String url;

    // Id of the associated article, if present
    private int articleId;

    // The name of the file
    private String fileName;

    // A full URL where the attachment file can be downloaded
    private String contentUrl;

    // The content type of the file. Example: image/png
    private String contentType;

    // The size of the attachment file in bytes
    private int size;

    // If true, the attached file is shown in the dedicated admin UI for inline attachments and
    // its url can be referenced in the HTML body of the article.
    // If false, the attachment is listed in the list of attachments. Default is false
    private boolean inline;

    // The time at which the article attachment was created
    private Date createdAt;

    // The time at which the article attachment was last updated
    private Date updatedAt;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    @JsonProperty("article_id")
    public int getArticleId() {
        return articleId;
    }

    public void setArticleId(int articleId) {
        this.articleId = articleId;
    }

    @JsonProperty("file_name")
    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

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

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

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

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

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    @JsonProperty("inline")
    public boolean isInline() {
        return inline;
    }

    public void setInline(boolean inline) {
        this.inline = inline;
    }

    @JsonProperty("created_at")
    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    @JsonProperty("updated_at")
    public Date getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }

    @Override
    public String toString() {
        return "ArticleAttachments{" +
                "id=" + id +
                ", url='" + url + '\'' +
                ", articleId=" + articleId +
                ", fileName='" + fileName + '\'' +
                ", contentUrl='" + contentUrl + '\'' +
                ", contentType='" + contentType + '\'' +
                ", size=" + size +
                ", inline=" + inline +
                ", createdAt=" + createdAt +
                ", updatedAt=" + updatedAt +
                '}';
    }
}

@@ -234,17 +234,26 @@
 %7B%0A%0A    /
-/
+**%0A     * 
  Automat
@@ -299,32 +299,40 @@
 ment is created%0A
+     */%0A
     private int 
@@ -337,25 +337,34 @@
 t id;%0A%0A    /
-/
+**%0A     * 
  The API url
@@ -387,24 +387,32 @@
  attachment%0A
+     */%0A
     private 
@@ -429,17 +429,26 @@
 ;%0A%0A    /
-/
+**%0A     * 
  Id of t
@@ -477,24 +477,32 @@
  if present%0A
+     */%0A
     private 
@@ -518,25 +518,34 @@
 leId;%0A%0A    /
-/
+**%0A     * 
  The name of
@@ -554,16 +554,24 @@
 he file%0A
+     */%0A
     priv
@@ -597,17 +597,26 @@
 ;%0A%0A    /
-/
+**%0A     * 
  A full 
@@ -663,16 +663,24 @@
 nloaded%0A
+     */%0A
     priv
@@ -704,25 +704,34 @@
 tUrl;%0A%0A    /
-/
+**%0A     * 
  The content
@@ -768,16 +768,24 @@
 age/png%0A
+     */%0A
     priv
@@ -810,25 +810,34 @@
 Type;%0A%0A    /
-/
+**%0A     * 
  The size of
@@ -866,16 +866,24 @@
 n bytes%0A
+     */%0A
     priv
@@ -898,25 +898,34 @@
 size;%0A%0A    /
-/
+**%0A     * 
  If true, th
@@ -1006,18 +1006,19 @@
 and%0A    
-//
+ * 
  its url
@@ -1073,18 +1073,19 @@
 le.%0A    
-//
+ * 
  If fals
@@ -1157,16 +1157,24 @@
 s false%0A
+     */%0A
     priv
@@ -1191,33 +1191,42 @@
 n inline;%0A%0A    /
-/
+**%0A     * 
  The time at whi
@@ -1259,24 +1259,32 @@
 was created%0A
+     */%0A
     private 
@@ -1305,17 +1305,26 @@
 ;%0A%0A    /
-/
+**%0A     * 
  The tim
@@ -1370,24 +1370,32 @@
 ast updated%0A
+     */%0A
     private 

Convert field descriptions to javadoc.