File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed
src/main/java/org/zendesk/client/v2/model Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ public class Comment implements Serializable {
23
23
private List <Attachment > attachments ;
24
24
private Date createdAt ;
25
25
private Boolean publicComment ;
26
+ private CommentType type ;
27
+
26
28
27
29
public Comment () {
28
30
}
@@ -104,6 +106,15 @@ public void setPublic(Boolean isPublic) {
104
106
this .publicComment = isPublic ;
105
107
}
106
108
109
+ @ JsonProperty ("type" )
110
+ public CommentType getType () {
111
+ return type ;
112
+ }
113
+
114
+ public void setType (CommentType type ) {
115
+ this .type = type ;
116
+ }
117
+
107
118
@ Override
108
119
public String toString () {
109
120
return "Comment{" + "id=" + id +
Original file line number Diff line number Diff line change
1
+ package org .zendesk .client .v2 .model ;
2
+
3
+ import com .fasterxml .jackson .annotation .JsonProperty ;
4
+
5
+ /**
6
+ * https://developer.zendesk.com/api-reference/ticketing/tickets/ticket_comments/
7
+ */
8
+ public enum CommentType {
9
+
10
+ @ JsonProperty ("Comment" ) COMMENT ,
11
+ @ JsonProperty ("VoiceComment" ) VOICE_COMMENT ;
12
+
13
+ }
You can’t perform that action at this time.
0 commit comments