Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Adding Getter for the CanUpdate and the CoolOffPeriodInMillis
Browse files Browse the repository at this point in the history
  • Loading branch information
Aditya Jindal committed Nov 2, 2020
1 parent 8214dc8 commit 6097ac1
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,8 @@ public static class Summary {
@SerializedName(value = IP)
private String[] ip;
@SerializedName(value = COOL_OFF_PERIOD)
@SuppressFBWarnings(value = "URF_UNREAD_FIELD", justification = "Used in Summary Serializing")
private long coolOffPeriodInMillis;
@SerializedName(value = CAN_UPDATE)
@SuppressFBWarnings(value = "URF_UNREAD_FIELD", justification = "Used in Summary Serializing")
private boolean canUpdate;

public Summary(final List<NodeKey> impactedNodes,
Expand All @@ -155,5 +153,13 @@ public String toJson() {
Gson gson = new GsonBuilder().disableHtmlEscaping().create();
return gson.toJson(this);
}

public boolean getCanUpdate() {
return this.canUpdate;
}

public long getCoolOffPeriodInMillis() {
return this.coolOffPeriodInMillis;
}
}
}

0 comments on commit 6097ac1

Please sign in to comment.