@@ -35,6 +35,9 @@ public static Notification readJSON(InputStream json) throws InvalidException {
3535 @ JsonProperty ("id" )
3636 private String id ;
3737
38+ @ JsonProperty ("subscription_id" )
39+ private String subscriptionID ;
40+
3841 @ JsonProperty ("topic" )
3942 private String topic ;
4043
@@ -80,6 +83,14 @@ public void setId(String id) {
8083 this .id = id ;
8184 }
8285
86+ public String getSubscriptionID () {
87+ return subscriptionID ;
88+ }
89+
90+ public void setSubscriptionID (String subscriptionID ) {
91+ this .subscriptionID = subscriptionID ;
92+ }
93+
8394 public String getTopic () {
8495 return topic ;
8596 }
@@ -162,6 +173,7 @@ public int hashCode() {
162173 int result = id != null ? id .hashCode () : 0 ;
163174 result = 31 * result + (topic != null ? topic .hashCode () : 0 );
164175 result = 31 * result + (appID != null ? appID .hashCode () : 0 );
176+ result = 31 * result + (subscriptionID != null ? subscriptionID .hashCode () : 0 );
165177 result = 31 * result + (data != null ? data .hashCode () : 0 );
166178 result = 31 * result + (deliveryStatus != null ? deliveryStatus .hashCode () : 0 );
167179 result = 31 * result + deliveryAttempts ;
@@ -185,6 +197,7 @@ public boolean equals(Object o) {
185197 if (deliveryAttempts != that .deliveryAttempts ) return false ;
186198 if (firstSentAt != that .firstSentAt ) return false ;
187199 if (appID != null ? !appID .equals (that .appID ) : that .appID != null ) return false ;
200+ if (subscriptionID != null ? !subscriptionID .equals (that .subscriptionID ) : that .subscriptionID != null ) return false ;
188201 if (data != null ? !data .equals (that .data ) : that .data != null ) return false ;
189202 if (deliveryStatus != null ? !deliveryStatus .equals (that .deliveryStatus ) : that .deliveryStatus != null )
190203 return false ;
@@ -202,6 +215,7 @@ public String toString() {
202215 return "Notification{" +
203216 "type='" + type + '\'' +
204217 ", id='" + id + '\'' +
218+ ", subscriptionID='" + subscriptionID + '\'' +
205219 ", topic='" + topic + '\'' +
206220 ", appID='" + appID + '\'' +
207221 ", data=" + data +
0 commit comments