Class SteamTrading


  • public class SteamTrading
    extends ClientMsgHandler
    This handler is used for initializing Steam trades with other clients.
    • Constructor Detail

      • SteamTrading

        public SteamTrading()
    • Method Detail

      • trade

        public void trade​(SteamID user)
        Proposes a trade to another client.
        Parameters:
        user - The client to trade.
      • respondToTrade

        public void respondToTrade​(int tradeId,
                                   boolean acceptTrade)
        Responds to a trade proposal.
        Parameters:
        tradeId - The trade id of the received proposal.
        acceptTrade - if set to true, the trade will be accepted.
      • cancelTrade

        public void cancelTrade​(SteamID user)
        Cancels an already sent trade proposal.
        Parameters:
        user - The user.
      • handleMsg

        public void handleMsg​(IPacketMsg packetMsg)
        Description copied from class: ClientMsgHandler
        Handles a client message. This should not be called directly.
        Specified by:
        handleMsg in class ClientMsgHandler
        Parameters:
        packetMsg - The packet message that contains the data.