nosoop / SteamTrade-Java

An unofficial trading library for Valve's Steam Community service.
12 stars 2 forks source link

Add support for currencies. #3

Closed nosoop closed 10 years ago

nosoop commented 10 years ago

For completeness' sake, add support for currencies.

The action called is value "6" and all the data needed to notify the listener of the currency is in the event.

How to implement it is still debatable.

nosoop commented 10 years ago

With the basic TradeInternalItem data moved and handled in the abstract class TradeInternalAsset, a TradeInternalCurrency class is now subclassed from the assets instead of the items.

The current implementation passes the currency on to the onUserAddItem() method, and does not support amount information yet.

nosoop commented 10 years ago

Implemented by adding getters and setters for a tradedAmount field in commit 26cde185e1148cf0929510fcb93e45eaa654789b. Guess we're done here.