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