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

nl.pvanassen.steam.store.tradeoffer.TradeOfferService 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.tradeoffer;

import com.google.common.base.Optional;
import nl.pvanassen.steam.store.common.InventoryItem;

import java.util.List;

/**
 * @author Paul van Assen
 */
public interface TradeOfferService {
    /**
     * Call to accept a trade offer
     * 
     * @param tradeOffer Trade offer to accept
     */
    void acceptTradeOffer(TradeOffer tradeOffer);

    /**
     * @return A list of trade offers
     */
    List getTradeOffers();

    /**
     * Make a trade offer of items to a user
     * 
     * @param partner Trading partner ID
     * @param me What do I offer
     * @param them What do they offer
     * @param message A message for the trade
     * @return The trade offer id
     */
    int makeTradeOffer(long partner, List me, List them, Optional message);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy