Updated catalog parsers to include Silver

This commit is contained in:
WiredSpast 2024-02-03 08:51:24 +01:00
parent 8a717ad73f
commit 4299428465
1 changed files with 6 additions and 0 deletions

View File

@ -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;
@ -28,6 +29,7 @@ public class HOffer {
this.priceInCredits = packet.readInteger();
this.priceInActivityPoints = packet.readInteger();
this.activityPointType = packet.readInteger();
this.priceInSilver = packet.readInteger();
this.giftable = packet.readBoolean();
int productCount = packet.readInteger();
@ -65,6 +67,10 @@ public class HOffer {
return activityPointType;
}
public int getPriceInSilver() {
return priceInSilver;
}
public boolean isGiftable() {
return giftable;
}