C# Class SteamBot.Trade

Show file Open project: Top-Cat/SteamBot Class Usage Examples

Public Properties

Property Type Description
LastAction System.DateTime
MaximumActionGap int
MaximumTradeTime int
MeReady bool
MyInventory Inventory
MyItems dynamic
MyTrade HashSet
OMyTrade HashSet
OOtherTrade HashSet
OtherInventory Inventory
OtherItems dynamic
OtherReady bool
OtherTrade HashSet
Otrades HashSet[]
SteamCommunityDomain string
SteamTradeUrl string
TradeStart System.DateTime
inventories Inventory[]
meSID SteamKit2.SteamID
otherSID SteamKit2.SteamID
pollLock2 string
trades HashSet[]

Protected Properties

Property Type Description
apiKey string
baseTradeURL string
logpos int
numEvents int
sessionId string
steamLogin string
version int

Public Methods

Method Description
AcceptTrade ( ) : dynamic
AddItemByDefindex ( int defindex, int slot ) : bool
AddListener ( TradeListener listener ) : void
Poll ( ) : void
SendMessage ( string msg ) : string
SetReady ( bool ready ) : void
Trade ( SteamID me, SteamID other, string sessionId, string token, string apiKey, TradeListener listener = null ) : System
addItem ( ulong itemid, int slot ) : void
removeItem ( ulong itemid ) : void

Protected Methods

Method Description
Fetch ( string url, string method, NameValueCollection data = null, bool sendLoginData = true ) : string
GetInventory ( SteamID steamid ) : dynamic
GetStatus ( ) : SteamBot.StatusObj
PrintConsole ( String line, ConsoleColor color = ConsoleColor.White ) : void

Method Details

AcceptTrade() public method

public AcceptTrade ( ) : dynamic
return dynamic

AddItemByDefindex() public method

public AddItemByDefindex ( int defindex, int slot ) : bool
defindex int
slot int
return bool

AddListener() public method

public AddListener ( TradeListener listener ) : void
listener TradeListener
return void

Fetch() protected method

protected Fetch ( string url, string method, NameValueCollection data = null, bool sendLoginData = true ) : string
url string
method string
data System.Collections.Specialized.NameValueCollection
sendLoginData bool
return string

GetInventory() protected method

protected GetInventory ( SteamID steamid ) : dynamic
steamid SteamKit2.SteamID
return dynamic

GetStatus() protected method

protected GetStatus ( ) : SteamBot.StatusObj
return SteamBot.StatusObj

Poll() public method

public Poll ( ) : void
return void

PrintConsole() protected static method

protected static PrintConsole ( String line, ConsoleColor color = ConsoleColor.White ) : void
line String
color ConsoleColor
return void

SendMessage() public method

public SendMessage ( string msg ) : string
msg string
return string

SetReady() public method

public SetReady ( bool ready ) : void
ready bool
return void

Trade() public method

public Trade ( SteamID me, SteamID other, string sessionId, string token, string apiKey, TradeListener listener = null ) : System
me SteamKit2.SteamID
other SteamKit2.SteamID
sessionId string
token string
apiKey string
listener TradeListener
return System

addItem() public method

public addItem ( ulong itemid, int slot ) : void
itemid ulong
slot int
return void

removeItem() public method

public removeItem ( ulong itemid ) : void
itemid ulong
return void

Property Details

LastAction public property

public DateTime,System LastAction
return System.DateTime

MaximumActionGap public property

public int MaximumActionGap
return int

MaximumTradeTime public property

public int MaximumTradeTime
return int

MeReady public property

public bool MeReady
return bool

MyInventory public property

public Inventory MyInventory
return Inventory

MyItems public property

public dynamic MyItems
return dynamic

MyTrade public property

public HashSet MyTrade
return HashSet

OMyTrade public property

public HashSet OMyTrade
return HashSet

OOtherTrade public property

public HashSet OOtherTrade
return HashSet

OtherInventory public property

public Inventory OtherInventory
return Inventory

OtherItems public property

public dynamic OtherItems
return dynamic

OtherReady public property

public bool OtherReady
return bool

OtherTrade public property

public HashSet OtherTrade
return HashSet

Otrades public property

public HashSet[] Otrades
return HashSet[]

SteamCommunityDomain public static property

public static string SteamCommunityDomain
return string

SteamTradeUrl public static property

public static string SteamTradeUrl
return string

TradeStart public property

public DateTime,System TradeStart
return System.DateTime

apiKey protected property

protected string apiKey
return string

baseTradeURL protected property

protected string baseTradeURL
return string

inventories public property

public Inventory[] inventories
return Inventory[]

logpos protected property

protected int logpos
return int

meSID public property

public SteamID,SteamKit2 meSID
return SteamKit2.SteamID

numEvents protected property

protected int numEvents
return int

otherSID public property

public SteamID,SteamKit2 otherSID
return SteamKit2.SteamID

pollLock2 public property

public string pollLock2
return string

sessionId protected property

protected string sessionId
return string

steamLogin protected property

protected string steamLogin
return string

trades public property

public HashSet[] trades
return HashSet[]

version protected property

protected int version
return int