C# Class SteamKit2.SteamTrading

This handler is used for initializing Steam trades with other clients.
Inheritance: ClientMsgHandler
Show file Open project: Top-Cat/SteamBot Class Usage Examples

Public Methods

Method Description
CancelTrade ( SteamID user ) : void

Cancels an already sent trade proposal.

HandleMsg ( IPacketMsg packetMsg ) : void

Handles a client message. This should not be called directly.

RespondToTrade ( uint tradeId, bool acceptTrade ) : void

Responds to a trade proposal.

Trade ( SteamID user ) : void

Proposes a trade to another client.

Private Methods

Method Description
HandleStartSession ( IPacketMsg packetMsg ) : void
HandleTradeProposed ( IPacketMsg packetMsg ) : void
HandleTradeResult ( IPacketMsg packetMsg ) : void
SteamTrading ( ) : System

Method Details

CancelTrade() public method

Cancels an already sent trade proposal.
public CancelTrade ( SteamID user ) : void
user SteamID The user.
return void

HandleMsg() public method

Handles a client message. This should not be called directly.
public HandleMsg ( IPacketMsg packetMsg ) : void
packetMsg IPacketMsg The packet message that contains the data.
return void

RespondToTrade() public method

Responds to a trade proposal.
public RespondToTrade ( uint tradeId, bool acceptTrade ) : void
tradeId uint The trade id of the received proposal.
acceptTrade bool if set to true, the trade will be accepted.
return void

Trade() public method

Proposes a trade to another client.
public Trade ( SteamID user ) : void
user SteamID The client to trade.
return void