Skip to content

Commit 248b913

Browse files
committed
Switch from Integer to Long for id type. Closes cloudbees-oss#8
1 parent 0ede864 commit 248b913

File tree

15 files changed

+183
-165
lines changed

15 files changed

+183
-165
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
<groupId>com.cloudbees.thirdparty</groupId>
2727
<artifactId>zendesk-java-client</artifactId>
28-
<version>0.0.5-SNAPSHOT</version>
28+
<version>0.1.0-SNAPSHOT</version>
2929

3030
<name>zendesk-java-client</name>
3131
<description>Java client for the ZenDesk API</description>

src/main/java/org/zendesk/client/v2/ZenDesk.java

Lines changed: 49 additions & 49 deletions
Large diffs are not rendered by default.

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,20 @@
1212
* @since 05/04/2013 10:22
1313
*/
1414
public class Audit {
15-
private Integer id;
16-
private Integer ticketId;
15+
private Long id;
16+
private Long ticketId;
1717
private Map<String, Object> metadata;
1818
private Via via;
1919
private Date createdAt;
20-
private Integer authorId;
20+
private Long authorId;
2121
private List<Event> events;
2222

2323
@JsonProperty("author_id")
24-
public Integer getAuthorId() {
24+
public Long getAuthorId() {
2525
return authorId;
2626
}
2727

28-
public void setAuthorId(Integer authorId) {
28+
public void setAuthorId(Long authorId) {
2929
this.authorId = authorId;
3030
}
3131

@@ -46,11 +46,11 @@ public void setEvents(List<Event> events) {
4646
this.events = events;
4747
}
4848

49-
public Integer getId() {
49+
public Long getId() {
5050
return id;
5151
}
5252

53-
public void setId(Integer id) {
53+
public void setId(Long id) {
5454
this.id = id;
5555
}
5656

@@ -63,11 +63,11 @@ public void setMetadata(Map<String, Object> metadata) {
6363
}
6464

6565
@JsonProperty("ticket_id")
66-
public Integer getTicketId() {
66+
public Long getTicketId() {
6767
return ticketId;
6868
}
6969

70-
public void setTicketId(Integer ticketId) {
70+
public void setTicketId(Long ticketId) {
7171
this.ticketId = ticketId;
7272
}
7373

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
* @since 09/04/2013 15:09
1212
*/
1313
public class Comment {
14-
private Integer id;
14+
private Long id;
1515
private String body;
16-
private Integer authorId;
16+
private Long authorId;
1717
private List<String> uploads;
1818
private List<Attachment> attachments;
1919
private Date createdAt;
@@ -56,11 +56,11 @@ public void setAttachments(List<Attachment> attachments) {
5656
}
5757

5858
@JsonProperty("author_id")
59-
public Integer getAuthorId() {
59+
public Long getAuthorId() {
6060
return authorId;
6161
}
6262

63-
public void setAuthorId(Integer authorId) {
63+
public void setAuthorId(Long authorId) {
6464
this.authorId = authorId;
6565
}
6666

@@ -73,11 +73,11 @@ public void setCreatedAt(Date createdAt) {
7373
this.createdAt = createdAt;
7474
}
7575

76-
public Integer getId() {
76+
public Long getId() {
7777
return id;
7878
}
7979

80-
public void setId(Integer id) {
80+
public void setId(Long id) {
8181
this.id = id;
8282
}
8383

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
*/
99
@JsonIgnoreProperties(ignoreUnknown = true)
1010
public class CustomFieldValue {
11-
private Integer id;
11+
private Long id;
1212
private String value;
1313

14-
public Integer getId() {
14+
public Long getId() {
1515
return id;
1616
}
1717

18-
public void setId(Integer id) {
18+
public void setId(Long id) {
1919
this.id = id;
2020
}
2121

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* @since 05/04/2013 12:03
1111
*/
1212
public class Field {
13-
private Integer id;
13+
private Long id;
1414
private String url;
1515
private String type;
1616
private String title;
@@ -81,11 +81,11 @@ public void setEditableInPortal(Boolean editableInPortal) {
8181
this.editableInPortal = editableInPortal;
8282
}
8383

84-
public Integer getId() {
84+
public Long getId() {
8585
return id;
8686
}
8787

88-
public void setId(Integer id) {
88+
public void setId(Long id) {
8989
this.id = id;
9090
}
9191

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* @since 22/04/2013 16:27
1010
*/
1111
public class Group {
12-
private Integer id;
12+
private Long id;
1313
private String url;
1414
private String name;
1515
private Boolean deleted;
@@ -19,11 +19,11 @@ public class Group {
1919
public Group() {
2020
}
2121

22-
public Integer getId() {
22+
public Long getId() {
2323
return id;
2424
}
2525

26-
public void setId(Integer id) {
26+
public void setId(Long id) {
2727
this.id = id;
2828
}
2929

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* @since 09/04/2013 14:37
1010
*/
1111
public class Identity {
12-
private Integer id;
12+
private Long id;
1313
private String url;
1414
private Integer userId;
1515
private String type;
@@ -43,11 +43,11 @@ public void setValue(String value) {
4343
this.value = value;
4444
}
4545

46-
public Integer getId() {
46+
public Long getId() {
4747
return id;
4848
}
4949

50-
public void setId(Integer id) {
50+
public void setId(Long id) {
5151
this.id = id;
5252
}
5353

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
* @since 22/04/2013 15:38
1111
*/
1212
public class Organization {
13-
private Integer id;
13+
private Long id;
1414
private String externalId;
1515
private String name;
1616
private Date createdAt;
1717
private Date updatedAt;
1818
private List<String> domainNames;
1919
private String details;
2020
private String notes;
21-
private Integer groupId;
21+
private Long groupId;
2222
private Boolean sharedTickets;
2323
private Boolean sharedComments;
2424
private List<String> tags;
@@ -62,19 +62,19 @@ public void setExternalId(String externalId) {
6262
}
6363

6464
@JsonProperty("group_id")
65-
public Integer getGroupId() {
65+
public Long getGroupId() {
6666
return groupId;
6767
}
6868

69-
public void setGroupId(Integer groupId) {
69+
public void setGroupId(Long groupId) {
7070
this.groupId = groupId;
7171
}
7272

73-
public Integer getId() {
73+
public Long getId() {
7474
return id;
7575
}
7676

77-
public void setId(Integer id) {
77+
public void setId(Long id) {
7878
this.id = id;
7979
}
8080

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* @since 05/04/2013 15:36
1010
*/
1111
public class Photo {
12-
private Integer id;
12+
private Long id;
1313
private String fileName;
1414
private String contentUrl;
1515
private String contentType;
@@ -42,11 +42,11 @@ public void setFileName(String fileName) {
4242
this.fileName = fileName;
4343
}
4444

45-
public Integer getId() {
45+
public Long getId() {
4646
return id;
4747
}
4848

49-
public void setId(Integer id) {
49+
public void setId(Long id) {
5050
this.id = id;
5151
}
5252

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
* @since 09/04/2013 15:08
1010
*/
1111
public class Request {
12-
protected Integer id;
12+
protected Long id;
1313
protected String url;
1414
protected String subject;
1515
protected String description;
1616
protected Status status;
1717
protected Ticket.Requester requester;
18-
protected Integer requesterId;
19-
protected Integer organizationId;
18+
protected Long requesterId;
19+
protected Long organizationId;
2020
protected Via via;
2121
protected Date createdAt;
2222
protected Date updatedAt;
@@ -40,29 +40,29 @@ public void setDescription(String description) {
4040
this.description = description;
4141
}
4242

43-
public Integer getId() {
43+
public Long getId() {
4444
return id;
4545
}
4646

47-
public void setId(Integer id) {
47+
public void setId(Long id) {
4848
this.id = id;
4949
}
5050

5151
@JsonProperty("organization_id")
52-
public Integer getOrganizationId() {
52+
public Long getOrganizationId() {
5353
return organizationId;
5454
}
5555

56-
public void setOrganizationId(Integer organizationId) {
56+
public void setOrganizationId(Long organizationId) {
5757
this.organizationId = organizationId;
5858
}
5959

6060
@JsonProperty("requester_id")
61-
public Integer getRequesterId() {
61+
public Long getRequesterId() {
6262
return requesterId;
6363
}
6464

65-
public void setRequesterId(Integer requesterId) {
65+
public void setRequesterId(Long requesterId) {
6666
this.requesterId = requesterId;
6767
if (requesterId != null) {
6868
this.requester = null;

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

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,23 @@
1111
*/
1212
@JsonIgnoreProperties(ignoreUnknown = true)
1313
public class SatisfactionRating {
14-
private Integer id;
14+
private Long id;
1515
private String url;
16-
private Integer assigneeId;
17-
private Integer groupId;
18-
private Integer requesterId;
19-
private Integer ticketId;
16+
private Long assigneeId;
17+
private Long groupId;
18+
private Long requesterId;
19+
private Long ticketId;
2020
private String score;
2121
private Date createdAt;
2222
private Date updatedAt;
2323
private String comment;
2424

2525
@JsonProperty("assignee_id")
26-
public Integer getAssigneeId() {
26+
public Long getAssigneeId() {
2727
return assigneeId;
2828
}
2929

30-
public void setAssigneeId(Integer assigneeId) {
30+
public void setAssigneeId(Long assigneeId) {
3131
this.assigneeId = assigneeId;
3232
}
3333

@@ -49,28 +49,28 @@ public void setCreatedAt(Date createdAt) {
4949
}
5050

5151
@JsonProperty("group_id")
52-
public Integer getGroupId() {
52+
public Long getGroupId() {
5353
return groupId;
5454
}
5555

56-
public void setGroupId(Integer groupId) {
56+
public void setGroupId(Long groupId) {
5757
this.groupId = groupId;
5858
}
5959

60-
public Integer getId() {
60+
public Long getId() {
6161
return id;
6262
}
6363

64-
public void setId(Integer id) {
64+
public void setId(Long id) {
6565
this.id = id;
6666
}
6767

6868
@JsonProperty("requester_id")
69-
public Integer getRequesterId() {
69+
public Long getRequesterId() {
7070
return requesterId;
7171
}
7272

73-
public void setRequesterId(Integer requesterId) {
73+
public void setRequesterId(Long requesterId) {
7474
this.requesterId = requesterId;
7575
}
7676

@@ -83,11 +83,11 @@ public void setScore(String score) {
8383
}
8484

8585
@JsonProperty("ticket_id")
86-
public Integer getTicketId() {
86+
public Long getTicketId() {
8787
return ticketId;
8888
}
8989

90-
public void setTicketId(Integer ticketId) {
90+
public void setTicketId(Long ticketId) {
9191
this.ticketId = ticketId;
9292
}
9393

0 commit comments

Comments
 (0)