Versions in this module Expand all Collapse all v0 v0.1.0 Apr 25, 2020 Changes in this version + type Action uint + const ActionAccept + const ActionAddItem + const ActionChatMessage + const ActionReady + const ActionRemoveItem + const ActionSetCurrency + const ActionUnready + type Client struct + LogPos uint + Version uint + func New(sessionID, steamLogin, steamLoginSecure string, other steamid.SteamID) (*Client, error) + func (t *Client) AddItem(slot uint, itemID, contextID uint64, appID uint32) (*Result, error) + func (t *Client) Cancel() (*Result, error) + func (t *Client) Chat(message string) (*Result, error) + func (t *Client) Confirm() (*Result, error) + func (t *Client) GetForeignInventory(contextID uint64, appID uint32, start uint) (*inventory.PartialInventory, error) + func (t *Client) GetMain() (*Main, error) + func (t *Client) GetOwnInventory(contextID uint64, appID uint32) (*inventory.Inventory, error) + func (t *Client) GetStatus() (*Result, error) + func (t *Client) RemoveItem(slot uint, itemID, contextID uint64, appID uint32) (*Result, error) + func (t *Client) SetCurrency(amount uint, currencyID, contextID uint64, appID uint32) (*Result, error) + func (t *Client) SetReady(ready bool) (*Result, error) + 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 Result struct + Error string + Events EventList + LogPos int + Me User + NewVersion bool + Success bool + Them User + TradeStatus Status + Version uint + type Status uint + const StatusCanceled + const StatusComplete + const StatusEmpty + const StatusFailed + const StatusOpen + const StatusTimeout + type User struct + Assets interface{} + Confirmed jsont.UintBool + ConnectionPending bool + Currency interface{} + Ready jsont.UintBool + SecSinceTouch int