C# Class SteamBot.Trade

Mostra 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_oe property

public DateTime,System LastAction
return System.DateTime

MaximumActionGap public_oe property

public int MaximumActionGap
return int

MaximumTradeTime public_oe property

public int MaximumTradeTime
return int

MeReady public_oe property

public bool MeReady
return bool

MyInventory public_oe property

public Inventory MyInventory
return Inventory

MyItems public_oe property

public dynamic MyItems
return dynamic

MyTrade public_oe property

public HashSet MyTrade
return HashSet

OMyTrade public_oe property

public HashSet OMyTrade
return HashSet

OOtherTrade public_oe property

public HashSet OOtherTrade
return HashSet

OtherInventory public_oe property

public Inventory OtherInventory
return Inventory

OtherItems public_oe property

public dynamic OtherItems
return dynamic

OtherReady public_oe property

public bool OtherReady
return bool

OtherTrade public_oe property

public HashSet OtherTrade
return HashSet

Otrades public_oe property

public HashSet[] Otrades
return HashSet[]

SteamCommunityDomain public_oe static_oe property

public static string SteamCommunityDomain
return string

SteamTradeUrl public_oe static_oe property

public static string SteamTradeUrl
return string

TradeStart public_oe property

public DateTime,System TradeStart
return System.DateTime

apiKey protected_oe property

protected string apiKey
return string

baseTradeURL protected_oe property

protected string baseTradeURL
return string

inventories public_oe property

public Inventory[] inventories
return Inventory[]

logpos protected_oe property

protected int logpos
return int

meSID public_oe property

public SteamID,SteamKit2 meSID
return SteamKit2.SteamID

numEvents protected_oe property

protected int numEvents
return int

otherSID public_oe property

public SteamID,SteamKit2 otherSID
return SteamKit2.SteamID

pollLock2 public_oe property

public string pollLock2
return string

sessionId protected_oe property

protected string sessionId
return string

steamLogin protected_oe property

protected string steamLogin
return string

trades public_oe property

public HashSet[] trades
return HashSet[]

version protected_oe property

protected int version
return int