Skip to content

Commit 1cb7455

Browse files
committed
Switch from Integer to Long for id type. Closes #8
1 parent 248b913 commit 1cb7455

File tree

10 files changed

+30
-30
lines changed

10 files changed

+30
-30
lines changed

src/main/java/org/zendesk/client/v2/model/events/CcEvent.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
* @since 05/04/2013 11:56
1010
*/
1111
public class CcEvent extends Event {
12-
private List<Integer> recipients;
12+
private List<Long> recipients;
1313
private Via via;
1414

15-
public List<Integer> getRecipients() {
15+
public List<Long> getRecipients() {
1616
return recipients;
1717
}
1818

19-
public void setRecipients(List<Integer> recipients) {
19+
public void setRecipients(List<Long> recipients) {
2020
this.recipients = recipients;
2121
}
2222

src/main/java/org/zendesk/client/v2/model/events/CommentEvent.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public class CommentEvent extends PublicPrivateEvent {
1313
private String body;
1414
private String htmlBody;
1515
private Boolean trusted;
16-
private Integer authorId;
16+
private Long authorId;
1717
private List<Attachment> attachments;
1818

1919
public List<Attachment> getAttachments() {
@@ -25,11 +25,11 @@ public void setAttachments(List<Attachment> attachments) {
2525
}
2626

2727
@JsonProperty("author_id")
28-
public Integer getAuthorId() {
28+
public Long getAuthorId() {
2929
return authorId;
3030
}
3131

32-
public void setAuthorId(Integer authorId) {
32+
public void setAuthorId(Long authorId) {
3333
this.authorId = authorId;
3434
}
3535

src/main/java/org/zendesk/client/v2/model/events/CommentPrivacyChangeEvent.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
* @since 05/04/2013 11:55
88
*/
99
public class CommentPrivacyChangeEvent extends PublicPrivateEvent {
10-
private Integer commentId;
10+
private Long commentId;
1111

1212
@JsonProperty("comment_id")
13-
public Integer getCommentId() {
13+
public Long getCommentId() {
1414
return commentId;
1515
}
1616

17-
public void setCommentId(Integer commentId) {
17+
public void setCommentId(Long commentId) {
1818
this.commentId = commentId;
1919
}
2020

src/main/java/org/zendesk/client/v2/model/events/Event.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@
2727
})
2828

2929
public abstract class Event {
30-
private Integer id;
30+
private Long id;
3131

32-
public Integer getId() {
32+
public Long getId() {
3333
return id;
3434
}
3535

36-
public void setId(Integer id) {
36+
public void setId(Long id) {
3737
this.id = id;
3838
}
3939

src/main/java/org/zendesk/client/v2/model/events/FacebookEvent.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
*/
1111
public class FacebookEvent extends Event {
1212
private Map<String, Object> page;
13-
private Integer communication;
13+
private Long communication;
1414
private String ticketVia;
1515
private String body;
1616

17-
public Integer getCommunication() {
17+
public Long getCommunication() {
1818
return communication;
1919
}
2020

21-
public void setCommunication(Integer communication) {
21+
public void setCommunication(Long communication) {
2222
this.communication = communication;
2323
}
2424

src/main/java/org/zendesk/client/v2/model/events/SMSEvent.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
public class SMSEvent extends Event {
1010
private String body;
1111
private String phoneNumber;
12-
private Integer recipientId;
12+
private Long recipientId;
1313

1414
public String getBody() {
1515
return body;
@@ -29,11 +29,11 @@ public void setPhoneNumber(String phoneNumber) {
2929
}
3030

3131
@JsonProperty("recipient_id")
32-
public Integer getRecipientId() {
32+
public Long getRecipientId() {
3333
return recipientId;
3434
}
3535

36-
public void setRecipientId(Integer recipientId) {
36+
public void setRecipientId(Long recipientId) {
3737
this.recipientId = recipientId;
3838
}
3939

src/main/java/org/zendesk/client/v2/model/events/SatisfactionRatingEvent.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
public class
1010
SatisfactionRatingEvent extends Event {
1111
private String score;
12-
private Integer assigneeId;
12+
private Long assigneeId;
1313
private String body;
1414

1515
@JsonProperty("assignee_id")
16-
public Integer getAssigneeId() {
16+
public Long getAssigneeId() {
1717
return assigneeId;
1818
}
1919

20-
public void setAssigneeId(Integer assigneeId) {
20+
public void setAssigneeId(Long assigneeId) {
2121
this.assigneeId = assigneeId;
2222
}
2323

src/main/java/org/zendesk/client/v2/model/events/TicketSharingEvent.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @since 05/04/2013 11:57
88
*/
99
public class TicketSharingEvent extends Event {
10-
private Integer agreementId;
10+
private Long agreementId;
1111
private String action;
1212

1313
public String getAction() {
@@ -19,11 +19,11 @@ public void setAction(String action) {
1919
}
2020

2121
@JsonProperty("agreement_id")
22-
public Integer getAgreementId() {
22+
public Long getAgreementId() {
2323
return agreementId;
2424
}
2525

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

src/main/java/org/zendesk/client/v2/model/events/TweetEvent.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
public class TweetEvent extends Event {
1212
private Boolean directMessage;
1313
private String body;
14-
private List<Integer> recipients;
14+
private List<Long> recipients;
1515

1616
public String getBody() {
1717
return body;
@@ -30,11 +30,11 @@ public void setDirectMessage(Boolean directMessage) {
3030
this.directMessage = directMessage;
3131
}
3232

33-
public List<Integer> getRecipients() {
33+
public List<Long> getRecipients() {
3434
return recipients;
3535
}
3636

37-
public void setRecipients(List<Integer> recipients) {
37+
public void setRecipients(List<Long> recipients) {
3838
this.recipients = recipients;
3939
}
4040

src/main/java/org/zendesk/client/v2/model/events/VoiceCommentEvent.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public class VoiceCommentEvent extends PublicPrivateEvent {
1616
private String body;
1717
private String htmlBody;
1818
private Boolean trusted;
19-
private Integer authorId;
19+
private Long authorId;
2020
private List<String> attachments;
2121

2222
public List<String> getAttachments() {
@@ -28,11 +28,11 @@ public void setAttachments(List<String> attachments) {
2828
}
2929

3030
@JsonProperty("author_id")
31-
public Integer getAuthorId() {
31+
public Long getAuthorId() {
3232
return authorId;
3333
}
3434

35-
public void setAuthorId(Integer authorId) {
35+
public void setAuthorId(Long authorId) {
3636
this.authorId = authorId;
3737
}
3838

0 commit comments

Comments
 (0)