C# Class SteamKit2.SteamTrading

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

Méthodes publiques

Méthode 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

Méthode Description
HandleStartSession ( IPacketMsg packetMsg ) : void
HandleTradeProposed ( IPacketMsg packetMsg ) : void
HandleTradeResult ( IPacketMsg packetMsg ) : void
SteamTrading ( ) : System

Method Details

CancelTrade() public méthode

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

HandleMsg() public méthode

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

RespondToTrade() public méthode

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.
Résultat void

Trade() public méthode

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