Skip to content

Commit b86b309

Browse files
authored
Revert "Add subscription_id to Notification POJO"
1 parent 6416326 commit b86b309

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

intercom-java/src/main/java/io/intercom/api/Notification.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ 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-
4138
@JsonProperty("topic")
4239
private String topic;
4340

@@ -83,14 +80,6 @@ public void setId(String id) {
8380
this.id = id;
8481
}
8582

86-
public String getSubscriptionID() {
87-
return subscriptionID;
88-
}
89-
90-
public void setSubscriptionID(String subscriptionID) {
91-
this.subscriptionID = subscriptionID;
92-
}
93-
9483
public String getTopic() {
9584
return topic;
9685
}
@@ -173,7 +162,6 @@ public int hashCode() {
173162
int result = id != null ? id.hashCode() : 0;
174163
result = 31 * result + (topic != null ? topic.hashCode() : 0);
175164
result = 31 * result + (appID != null ? appID.hashCode() : 0);
176-
result = 31 * result + (subscriptionID != null ? subscriptionID.hashCode() : 0);
177165
result = 31 * result + (data != null ? data.hashCode() : 0);
178166
result = 31 * result + (deliveryStatus != null ? deliveryStatus.hashCode() : 0);
179167
result = 31 * result + deliveryAttempts;
@@ -197,7 +185,6 @@ public boolean equals(Object o) {
197185
if (deliveryAttempts != that.deliveryAttempts) return false;
198186
if (firstSentAt != that.firstSentAt) return false;
199187
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;
201188
if (data != null ? !data.equals(that.data) : that.data != null) return false;
202189
if (deliveryStatus != null ? !deliveryStatus.equals(that.deliveryStatus) : that.deliveryStatus != null)
203190
return false;
@@ -215,7 +202,6 @@ public String toString() {
215202
return "Notification{" +
216203
"type='" + type + '\'' +
217204
", id='" + id + '\'' +
218-
", subscriptionID='" + subscriptionID + '\'' +
219205
", topic='" + topic + '\'' +
220206
", appID='" + appID + '\'' +
221207
", data=" + data +

0 commit comments

Comments
 (0)