Versions in this module Expand all Collapse all v1 v1.0.0 Jan 20, 2016 Changes in this version + const Action_Accept + const Action_AddItem + const Action_ChatMessage + const Action_Ready + const Action_RemoveItem + const Action_SetCurrency + const Action_Unready + const TradeStatus_Cancelled + const TradeStatus_Complete + const TradeStatus_Empty + const TradeStatus_Failed + const TradeStatus_Open + const TradeStatus_Timeout + type Action uint + type Currency struct + Amount uint64 + AppId uint64 + ContextId uint64 + CurrencyId uint64 + type Event struct + Action Action + AppId uint32 + AssetId uint64 + ContextId uint64 + CurrencyId uint64 + NewAmount uint64 + OldAmount uint64 + SteamId steamid.SteamId + Text string + Timestamp uint64 + type EventList map[uint]*Event + func (e *EventList) UnmarshalJSON(data []byte) error + type Main struct + PartnerOnProbation bool + type Status struct + Error string + Events EventList + LogPos int + Me User + NewVersion bool + Success bool + Them User + TradeStatus TradeStatus + Version uint + type Trade struct + LogPos uint + Version uint + func New(sessionId, steamLogin, steamLoginSecure string, other steamid.SteamId) *Trade + func (t *Trade) AddItem(slot uint, itemId, contextId uint64, appId uint32) (*Status, error) + func (t *Trade) Cancel() (*Status, error) + func (t *Trade) Chat(message string) (*Status, error) + func (t *Trade) Confirm() (*Status, error) + func (t *Trade) GetForeignInventory(contextId uint64, appId uint32, start *uint) (*inventory.PartialInventory, error) + func (t *Trade) GetMain() (*Main, error) + func (t *Trade) GetOwnInventory(contextId uint64, appId uint32) (*inventory.Inventory, error) + func (t *Trade) GetStatus() (*Status, error) + func (t *Trade) RemoveItem(slot uint, itemId, contextId uint64, appId uint32) (*Status, error) + func (t *Trade) SetCurrency(amount uint, currencyId, contextId uint64, appId uint32) (*Status, error) + func (t *Trade) SetReady(ready bool) (*Status, error) + type TradeStatus uint + type User struct + Assets interface{} + Confirmed jsont.UintBool + ConnectionPending bool + Currency interface{} + Ready jsont.UintBool + SecSinceTouch int