Skip to content

Commit 3568472

Browse files
authored
Merge pull request #54 from rubenvicario/remove-deprecated-fields
Remove deprecated fields on notification endpoint response payloads
2 parents a313d94 + 775a6c5 commit 3568472

File tree

2 files changed

+0
-27
lines changed

2 files changed

+0
-27
lines changed

src/main/java/com/currencyfair/onesignal/model/notification/CreateNotificationResponse.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,6 @@ public class CreateNotificationResponse {
2727
*/
2828
private String id;
2929

30-
/**
31-
* Number of recipients that receive the notification.
32-
*/
33-
private Integer recipients;
34-
3530
/**
3631
* Not strictly defined so treating it dynamically... No smart mapping to a class can be done since errors content
3732
* can be an array of strings (as error messages) or a JSON object (as "invalid_player_ids").
@@ -46,14 +41,6 @@ public void setId(String id) {
4641
this.id = id;
4742
}
4843

49-
public Integer getRecipients() {
50-
return recipients;
51-
}
52-
53-
public void setRecipients(Integer recipients) {
54-
this.recipients = recipients;
55-
}
56-
5744
public Object getErrors() {
5845
return errors;
5946
}

src/main/java/com/currencyfair/onesignal/model/notification/ViewNotificationResponse.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,6 @@ public class ViewNotificationResponse extends Notification {
3030
*/
3131
private Long successful;
3232

33-
/**
34-
* Number of notifications that have not been sent out yet. This can mean either our system is still processing the
35-
* notification or you have delayed options set.
36-
*/
37-
private Long remaining;
38-
3933
/**
4034
* Number of notifications that could not be delivered due to an error. You can find more information by viewing
4135
* the notification in the dashboard.
@@ -78,14 +72,6 @@ public void setSuccessful(Long successful) {
7872
this.successful = successful;
7973
}
8074

81-
public Long getRemaining() {
82-
return remaining;
83-
}
84-
85-
public void setRemaining(Long remaining) {
86-
this.remaining = remaining;
87-
}
88-
8975
public Long getFailed() {
9076
return failed;
9177
}

0 commit comments

Comments
 (0)