C# Класс SteamKit2.SteamTrading

This handler is used for initializing Steam trades with other clients.
Наследование: ClientMsgHandler
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
HandleStartSession ( IPacketMsg packetMsg ) : void
HandleTradeProposed ( IPacketMsg packetMsg ) : void
HandleTradeResult ( IPacketMsg packetMsg ) : void
SteamTrading ( ) : System

Описание методов

CancelTrade() публичный Метод

Cancels an already sent trade proposal.
public CancelTrade ( SteamID user ) : void
user SteamID The user.
Результат void

HandleMsg() публичный Метод

Handles a client message. This should not be called directly.
public HandleMsg ( IPacketMsg packetMsg ) : void
packetMsg IPacketMsg The packet message that contains the data.
Результат void

RespondToTrade() публичный Метод

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.
Результат void

Trade() публичный Метод

Proposes a trade to another client.
public Trade ( SteamID user ) : void
user SteamID The client to trade.
Результат void