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();
}
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 int clubLevel;
private boolean bundlePurchaseAllowed;
private boolean unused;
private boolean isPet;
private String previewImage;
@ -37,7 +37,7 @@ public class HOffer {
this.clubLevel = packet.readInteger();
this.bundlePurchaseAllowed = packet.readBoolean();
this.unused = packet.readBoolean();
this.isPet = packet.readBoolean();
this.previewImage = packet.readString();
}
@ -81,8 +81,8 @@ public class HOffer {
return bundlePurchaseAllowed;
}
public boolean isUnused() {
return unused;
public boolean isPet() {
return isPet;
}
public String getPreviewImage() {