Skip to content

Commit

Permalink
Merge pull request #177 from WiredSpast/master
Browse files Browse the repository at this point in the history
Updated catalog parsers to include Silver
  • Loading branch information
sirjonasxx authored Jun 20, 2024
2 parents 2e0faa7 + 4299428 commit ef18ff1
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ public class HOffer {
private int priceInCredits;
private int priceInActivityPoints;
private int activityPointType;
private int priceInSilver;
private boolean giftable;
private List<HProduct> products = new ArrayList<>();
private int clubLevel;
Expand All @@ -28,6 +29,7 @@ protected HOffer(HPacket packet) {
this.priceInCredits = packet.readInteger();
this.priceInActivityPoints = packet.readInteger();
this.activityPointType = packet.readInteger();
this.priceInSilver = packet.readInteger();
this.giftable = packet.readBoolean();

int productCount = packet.readInteger();
Expand Down Expand Up @@ -65,6 +67,10 @@ public int getActivityPointType() {
return activityPointType;
}

public int getPriceInSilver() {
return priceInSilver;
}

public boolean isGiftable() {
return giftable;
}
Expand Down

0 comments on commit ef18ff1

Please sign in to comment.