Versions in this module Expand all Collapse all v1 v1.0.0 Jan 20, 2016 Changes in this version + const TradeEndReason_Cancelled + const TradeEndReason_Complete + const TradeEndReason_Failed + const TradeEndReason_Timeout + type ChatEvent struct + Message string + type Currency struct + AppId uint32 + ContextId uint64 + CurrencyId uint64 + type Item struct + AppId uint32 + AssetId uint64 + ContextId uint64 + type ItemAddedEvent struct + Item *Item + type ItemRemovedEvent struct + Item *Item + type ReadyEvent struct + type SetCurrencyEvent struct + Currency *Currency + NewAmount uint64 + OldAmount uint64 + type Slot uint + type Trade struct + MeReady bool + ThemId steamid.SteamId + ThemReady bool + func New(sessionId, steamLogin, steamLoginSecure string, other steamid.SteamId) *Trade + func (t *Trade) AddItem(slot Slot, item *Item) error + func (t *Trade) Cancel() error + func (t *Trade) Chat(message string) error + func (t *Trade) Confirm() error + func (t *Trade) Events() []interface{} + func (t *Trade) GetMain() (*tradeapi.Main, error) + func (t *Trade) GetOwnInventory(contextId uint64, appId uint32) (*inventory.Inventory, error) + func (t *Trade) GetTheirInventory(contextId uint64, appId uint32) (*inventory.Inventory, error) + func (t *Trade) Poll() ([]interface{}, error) + func (t *Trade) RemoveItem(slot Slot, item *Item) error + func (t *Trade) SetCurrency(amount uint, currency *Currency) error + func (t *Trade) SetReady(ready bool) error + func (t *Trade) Version() uint + type TradeEndReason uint + type TradeEndedEvent struct + Reason TradeEndReason + type UnreadyEvent struct