mirror of
https://github.com/sirjonasxx/G-Earth.git
synced 2024-11-29 19:50:51 +01:00
Merge pull request #177 from WiredSpast/master
Updated catalog parsers to include Silver
This commit is contained in:
commit
ef18ff1fd0
@ -13,6 +13,7 @@ public class HOffer {
|
|||||||
private int priceInCredits;
|
private int priceInCredits;
|
||||||
private int priceInActivityPoints;
|
private int priceInActivityPoints;
|
||||||
private int activityPointType;
|
private int activityPointType;
|
||||||
|
private int priceInSilver;
|
||||||
private boolean giftable;
|
private boolean giftable;
|
||||||
private List<HProduct> products = new ArrayList<>();
|
private List<HProduct> products = new ArrayList<>();
|
||||||
private int clubLevel;
|
private int clubLevel;
|
||||||
@ -28,6 +29,7 @@ public class HOffer {
|
|||||||
this.priceInCredits = packet.readInteger();
|
this.priceInCredits = packet.readInteger();
|
||||||
this.priceInActivityPoints = packet.readInteger();
|
this.priceInActivityPoints = packet.readInteger();
|
||||||
this.activityPointType = packet.readInteger();
|
this.activityPointType = packet.readInteger();
|
||||||
|
this.priceInSilver = packet.readInteger();
|
||||||
this.giftable = packet.readBoolean();
|
this.giftable = packet.readBoolean();
|
||||||
|
|
||||||
int productCount = packet.readInteger();
|
int productCount = packet.readInteger();
|
||||||
@ -65,6 +67,10 @@ public class HOffer {
|
|||||||
return activityPointType;
|
return activityPointType;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int getPriceInSilver() {
|
||||||
|
return priceInSilver;
|
||||||
|
}
|
||||||
|
|
||||||
public boolean isGiftable() {
|
public boolean isGiftable() {
|
||||||
return giftable;
|
return giftable;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user