Skip to content

Commit 248b913

Browse files
committed
Switch from Integer to Long for id type. Closes #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

0 commit comments

Comments
 (0)