getters & ispet

This commit is contained in:
sirjonasxx 2021-09-06 18:04:52 +02:00
parent d23701a3ca
commit e94db6c85c
2 changed files with 36 additions and 4 deletions

View File

@ -32,4 +32,36 @@ public class HFrontPageItem {
this.expirationTime = packet.readInteger(); this.expirationTime = packet.readInteger();
} }
public int getPosition() {
return position;
}
public String getItemName() {
return itemName;
}
public String getItemPromoImage() {
return itemPromoImage;
}
public int getType() {
return type;
}
public String getCataloguePageLocation() {
return cataloguePageLocation;
}
public int getProductOfferId() {
return productOfferId;
}
public String getProductCode() {
return productCode;
}
public int getExpirationTime() {
return expirationTime;
}
} }

View File

@ -17,7 +17,7 @@ public class HOffer {
private List<HProduct> products = new ArrayList<>(); private List<HProduct> products = new ArrayList<>();
private int clubLevel; private int clubLevel;
private boolean bundlePurchaseAllowed; private boolean bundlePurchaseAllowed;
private boolean unused; private boolean isPet;
private String previewImage; private String previewImage;
@ -37,7 +37,7 @@ public class HOffer {
this.clubLevel = packet.readInteger(); this.clubLevel = packet.readInteger();
this.bundlePurchaseAllowed = packet.readBoolean(); this.bundlePurchaseAllowed = packet.readBoolean();
this.unused = packet.readBoolean(); this.isPet = packet.readBoolean();
this.previewImage = packet.readString(); this.previewImage = packet.readString();
} }
@ -81,8 +81,8 @@ public class HOffer {
return bundlePurchaseAllowed; return bundlePurchaseAllowed;
} }
public boolean isUnused() { public boolean isPet() {
return unused; return isPet;
} }
public String getPreviewImage() { public String getPreviewImage() {