public final class SteamTrading extends ClientMsgHandler
| Constructor and Description |
|---|
SteamTrading() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancelTrade(SteamID user)
Cancels an already sent trade proposal.
|
void |
handleMsg(IPacketMsg packetMsg)
Handles a client message.
|
(package private) void |
handleStartSession(IPacketMsg packetMsg) |
(package private) void |
handleTradeProposed(IPacketMsg packetMsg) |
(package private) void |
handleTradeResult(IPacketMsg packetMsg) |
void |
respondToTrade(int tradeId,
boolean acceptTrade)
Responds to a trade proposal.
|
void |
trade(SteamID user)
Proposes a trade to another client.
|
setuppublic void trade(SteamID user)
user - The client to trade.public void respondToTrade(int tradeId,
boolean acceptTrade)
tradeId - The trade id of the received proposal.acceptTrade - if set to true, the trade will be accepted.public void cancelTrade(SteamID user)
user - The user.public void handleMsg(IPacketMsg packetMsg)
handleMsg in class ClientMsgHandlerpacketMsg - The packet message that contains the data.void handleTradeProposed(IPacketMsg packetMsg)
void handleTradeResult(IPacketMsg packetMsg)
void handleStartSession(IPacketMsg packetMsg)
Copyright © 2012. All Rights Reserved.