
nl.pvanassen.steam.store.marketpage.MarketPage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of steam-api Show documentation
Show all versions of steam-api Show documentation
A Java API to access the Steam community market through the HTTP interface. This may be against the TOS so be careful using it!
package nl.pvanassen.steam.store.marketpage;
import com.google.common.collect.ImmutableList;
import java.util.List;
/**
* Outstanding items
*
* @author Paul van Assen
*/
public class MarketPage {
private final int wallet;
private final int items;
private final int amount;
private final List itemList;
private final List marketPageBuyOrders;
MarketPage(int wallet, int items, int amount, List itemList, List marketPageBuyOrders) {
this.wallet = wallet;
this.items = items;
this.amount = amount;
this.itemList = ImmutableList.copyOf(itemList);
if (marketPageBuyOrders == null) {
this.marketPageBuyOrders = ImmutableList.of();
}
else {
this.marketPageBuyOrders = ImmutableList.copyOf(marketPageBuyOrders);
}
}
/**
* @return Amount in euros of outstanding items
*/
public int getAmount() {
return amount;
}
/**
* @return Item list
*/
public List getItemList() {
return itemList;
}
/**
* @return Number of items
*/
public int getItems() {
return items;
}
/**
* @return Amount of money in the wallet
*/
public int getWallet() {
return wallet;
}
/**
* @return Status of the buy orders on the market page
*/
public List getMarketPageBuyOrders() {
return marketPageBuyOrders;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy