Skip to content

Commit 1aa9732

Browse files
authored
Merge pull request cloudbees-oss#276 from marydcouto/master
adding more fields in Request
2 parents 869b797 + 618497a commit 1aa9732

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

src/main/java/org/zendesk/client/v2/model/Request.java

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
import java.io.Serializable;
66
import java.util.Date;
7+
import java.util.List;
8+
9+
import org.zendesk.client.v2.model.Ticket.Requester;
710

811
/**
912
* @author stephenc
@@ -26,6 +29,10 @@ public class Request implements Serializable {
2629
protected Date createdAt;
2730
protected Date updatedAt;
2831
protected Comment comment;
32+
protected Boolean solved;
33+
protected Priority priority;
34+
protected List<CustomFieldValue> customFields;
35+
protected Type type;
2936

3037
@JsonProperty("created_at")
3138
public Date getCreatedAt() {
@@ -131,4 +138,51 @@ public Comment getComment() {
131138
public void setComment(Comment comment) {
132139
this.comment = comment;
133140
}
141+
142+
@JsonProperty("solved")
143+
public Boolean getSolved() {
144+
return solved;
145+
}
146+
147+
public void setSolved(Boolean solved) {
148+
this.solved = solved;
149+
}
150+
151+
@JsonProperty("priority")
152+
public Priority getPriority() {
153+
return priority;
154+
}
155+
156+
public void setPriority(Priority priority) {
157+
this.priority = priority;
158+
}
159+
160+
@JsonProperty("custom_fields")
161+
public List<CustomFieldValue> getCustomFields() {
162+
return customFields;
163+
}
164+
165+
public void setCustomFields(List<CustomFieldValue> customFields) {
166+
this.customFields = customFields;
167+
}
168+
169+
public Requester getRequester() {
170+
return requester;
171+
}
172+
173+
public void setRequester(Requester requester) {
174+
this.requester = requester;
175+
if (requester != null) {
176+
this.requesterId = null;
177+
}
178+
}
179+
180+
@JsonProperty("type")
181+
public Type getType() {
182+
return type;
183+
}
184+
185+
public void setType(Type type) {
186+
this.type = type;
187+
}
134188
}

0 commit comments

Comments
 (0)