All Downloads are FREE. Search and download functionalities are using the official Maven repository.

nl.pvanassen.steam.store.buy.BuyResult Maven / Gradle / Ivy

Go to download

A Java API to access the Steam community market through the HTTP interface. This may be against the TOS so be careful using it!

There is a newer version: 3.0.8
Show newest version
package nl.pvanassen.steam.store.buy;

/**
 * Result of a purchase attempt
 *
 * @author Paul van Assen
 */
public class BuyResult {

    private final boolean success;
    private final int wallet;
    private final String message;

    BuyResult(boolean success, int wallet, String message) {
        super();
        this.success = success;
        this.wallet = wallet;
        this.message = message;
    }

    /**
     * @return The error message
     */
    public String getMessage() {
        return message;
    }

    /**
     * @return the wallet
     */
    public int getWallet() {
        return wallet;
    }

    /**
     * @return the success
     */
    public boolean isSuccess() {
        return success;
    }

    /**
     * {@inheritDoc}
     *
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        return "BuyResult [success=" + success + ", wallet=" + wallet + "]";
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy