|
| 1 | +package org.zendesk.client.v2.model; |
| 2 | + |
| 3 | +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; |
| 4 | +import com.fasterxml.jackson.annotation.JsonProperty; |
| 5 | + |
| 6 | +import java.io.Serializable; |
| 7 | + |
| 8 | +@JsonIgnoreProperties(ignoreUnknown = true) |
| 9 | +public class View implements Serializable { |
| 10 | + |
| 11 | +<<<<<<< HEAD |
| 12 | + private static final long serialVersionUID = 1L; |
| 13 | +======= |
| 14 | + private static final long serialVersionUID = 8162172428393948830L; |
| 15 | + |
| 16 | +>>>>>>> 954b71b... Add basic View support - List the Views; List the tickets in a View |
| 17 | + private long id; |
| 18 | + private String title; |
| 19 | + private boolean active; |
| 20 | + private String updatedAt; |
| 21 | + private String createdAt; |
| 22 | + private long position; |
| 23 | + private String description; |
| 24 | + private Conditions conditions; |
| 25 | + private boolean watchable; |
| 26 | +<<<<<<< HEAD |
| 27 | + private String rawTitle; |
| 28 | +======= |
| 29 | +>>>>>>> 954b71b... Add basic View support - List the Views; List the tickets in a View |
| 30 | + |
| 31 | + public void setId(long id) { |
| 32 | + this.id = id; |
| 33 | + } |
| 34 | + |
| 35 | + @JsonProperty("id") |
| 36 | + public long getId() { |
| 37 | + return this.id; |
| 38 | + } |
| 39 | + |
| 40 | + public void setTitle(String title) { |
| 41 | + this.title = title; |
| 42 | + } |
| 43 | + |
| 44 | + @JsonProperty("title") |
| 45 | + public String getTitle() { |
| 46 | + return this.title; |
| 47 | + } |
| 48 | + |
| 49 | + public void setActive(boolean active) { |
| 50 | + this.active = active; |
| 51 | + } |
| 52 | + |
| 53 | + @JsonProperty("active") |
| 54 | + public boolean getActive() { |
| 55 | + return this.active; |
| 56 | + } |
| 57 | + |
| 58 | + public void setUpdatedAt(String updatedAt) { |
| 59 | + this.updatedAt = updatedAt; |
| 60 | + } |
| 61 | + |
| 62 | + @JsonProperty("updated_at") |
| 63 | + public String getUpdatedAt() { |
| 64 | + return this.updatedAt; |
| 65 | + } |
| 66 | + |
| 67 | + public void setCreatedAt(String createdAt) { |
| 68 | + this.createdAt = createdAt; |
| 69 | + } |
| 70 | + |
| 71 | + @JsonProperty("created_at") |
| 72 | + public String getCreatedAt() { |
| 73 | + return this.createdAt; |
| 74 | + } |
| 75 | + |
| 76 | + public void setPosition(long position) { |
| 77 | + this.position = position; |
| 78 | + } |
| 79 | + |
| 80 | + @JsonProperty("position") |
| 81 | + public long getPosition() { |
| 82 | + return this.position; |
| 83 | + } |
| 84 | + |
| 85 | + public void setDescription(String description) { |
| 86 | + this.description = description; |
| 87 | + } |
| 88 | + |
| 89 | + @JsonProperty("description") |
| 90 | + public String getDescription() { |
| 91 | + return this.description; |
| 92 | + } |
| 93 | + |
| 94 | + public void setConditions(Conditions conditions) { |
| 95 | + this.conditions = conditions; |
| 96 | + } |
| 97 | + |
| 98 | + @JsonProperty("conditions") |
| 99 | + public Conditions getConditions() { |
| 100 | + return this.conditions; |
| 101 | + } |
| 102 | + |
| 103 | + public void setWatchable(boolean watchable) { |
| 104 | + this.watchable = watchable; |
| 105 | + } |
| 106 | + |
| 107 | + @JsonProperty("watchable") |
| 108 | + public boolean getWatchable() { |
| 109 | + return this.watchable; |
| 110 | + } |
| 111 | + |
| 112 | +<<<<<<< HEAD |
| 113 | + public void setRawTitle(String rawTitle) { |
| 114 | + this.rawTitle = rawTitle; |
| 115 | + } |
| 116 | + |
| 117 | + @JsonProperty("raw_title") |
| 118 | + public String getRawTitle() { |
| 119 | + return this.rawTitle; |
| 120 | + } |
| 121 | + |
| 122 | +======= |
| 123 | +>>>>>>> 954b71b... Add basic View support - List the Views; List the tickets in a View |
| 124 | + //TODO: fix this. |
| 125 | + public String toString() { |
| 126 | + return "View " + |
| 127 | + "{id=" + id + |
| 128 | + ", title=" + title + |
| 129 | + ", active=" + active + |
| 130 | + ", updatedAt=" + updatedAt + |
| 131 | + ", createdAt=" + createdAt + |
| 132 | + ", position=" + position + |
| 133 | + ", description=" + description + |
| 134 | + ", conditions=" + conditions + |
| 135 | + ", watchable=" + watchable + |
| 136 | +<<<<<<< HEAD |
| 137 | + ", rawTitle=" + rawTitle + |
| 138 | +======= |
| 139 | +>>>>>>> 954b71b... Add basic View support - List the Views; List the tickets in a View |
| 140 | + "}"; |
| 141 | + } |
| 142 | +} |
0 commit comments