1
1
package org .zendesk .client .v2 .model .hc ;
2
2
3
+ import com .fasterxml .jackson .annotation .JsonInclude ;
4
+ import com .fasterxml .jackson .annotation .JsonInclude .Include ;
3
5
import com .fasterxml .jackson .annotation .JsonProperty ;
4
6
import org .zendesk .client .v2 .model .SearchResultEntity ;
5
7
@@ -41,6 +43,10 @@ public class Article implements SearchResultEntity {
41
43
/** Whether the source (default) translation of the article is out of date */
42
44
private Boolean outdated ;
43
45
46
+ /** Locales in which the article was marked as outdated */
47
+ @ JsonProperty ("outdated_locales" )
48
+ private List <String > outdatedLocales ;
49
+
44
50
/** An array of label names associated with this article. By default no label names are used. Only available on certain plans */
45
51
@ JsonProperty ("label_names" )
46
52
private List <String > labelNames ;
@@ -66,6 +72,16 @@ public class Article implements SearchResultEntity {
66
72
@ JsonProperty ("section_id" )
67
73
private Long sectionId ;
68
74
75
+ /** The id of the user segment which defines who can see this article. Set to null to make it accessible to everyone. */
76
+ @ JsonInclude (Include .ALWAYS )
77
+ @ JsonProperty (value = "user_segment_id" , defaultValue = "null" )
78
+ private Long userSegmentId ;
79
+
80
+ /** The id of the permission group which defines who can edit and publish this article. */
81
+ @ JsonInclude (Include .ALWAYS )
82
+ @ JsonProperty (value = "permission_group_id" , defaultValue = "null" )
83
+ private Long permissionGroupId ;
84
+
69
85
/** The time the article was created */
70
86
@ JsonProperty ("created_at" )
71
87
private Date createdAt ;
@@ -74,6 +90,10 @@ public class Article implements SearchResultEntity {
74
90
@ JsonProperty ("updated_at" )
75
91
private Date updatedAt ;
76
92
93
+ /** The time the article was last edited in its displayed locale */
94
+ @ JsonProperty ("edited_at" )
95
+ private Date editedAt ;
96
+
77
97
public Long getId () {
78
98
return id ;
79
99
}
@@ -154,6 +174,14 @@ public void setOutdated(Boolean outdated) {
154
174
this .outdated = outdated ;
155
175
}
156
176
177
+ public List <String > getOutdatedLocales () {
178
+ return outdatedLocales ;
179
+ }
180
+
181
+ public void setOutdatedLocales (List <String > outdatedLocales ) {
182
+ this .outdatedLocales = outdatedLocales ;
183
+ }
184
+
157
185
public List <String > getLabelNames () {
158
186
return labelNames ;
159
187
}
@@ -210,6 +238,22 @@ public void setSectionId(Long sectionId) {
210
238
this .sectionId = sectionId ;
211
239
}
212
240
241
+ public Long getUserSegmentId () {
242
+ return userSegmentId ;
243
+ }
244
+
245
+ public void setUserSegmentId (Long userSegmentId ) {
246
+ this .userSegmentId = userSegmentId ;
247
+ }
248
+
249
+ public Long getPermissionGroupId () {
250
+ return permissionGroupId ;
251
+ }
252
+
253
+ public void setPermissionGroupId (Long permissionGroupId ) {
254
+ this .permissionGroupId = permissionGroupId ;
255
+ }
256
+
213
257
public Date getCreatedAt () {
214
258
return createdAt ;
215
259
}
@@ -226,6 +270,14 @@ public void setUpdatedAt(Date updatedAt) {
226
270
this .updatedAt = updatedAt ;
227
271
}
228
272
273
+ public Date getEditedAt () {
274
+ return editedAt ;
275
+ }
276
+
277
+ public void setEditedAt (Date editedAt ) {
278
+ this .editedAt = editedAt ;
279
+ }
280
+
229
281
@ Override
230
282
public String toString () {
231
283
return "Article{" +
@@ -239,15 +291,19 @@ public String toString() {
239
291
", authorId=" + authorId +
240
292
", commentsDisabled=" + commentsDisabled +
241
293
", outdated=" + outdated +
294
+ ", outdatedLocales=" + outdatedLocales +
242
295
", labelNames=" + labelNames +
243
296
", draft=" + draft +
244
297
", promoted=" + promoted +
245
298
", position=" + position +
246
299
", voteSum=" + voteSum +
247
300
", voteCount=" + voteCount +
248
301
", sectionId=" + sectionId +
302
+ ", userSegmentId=" + userSegmentId +
303
+ ", permissionGroupId=" + permissionGroupId +
249
304
", createdAt=" + createdAt +
250
305
", updatedAt=" + updatedAt +
306
+ ", editedAt=" + editedAt +
251
307
'}' ;
252
308
}
253
309
}
0 commit comments