Package uk.co.thomasc.scrapbanktf.trade

Examples of uk.co.thomasc.scrapbanktf.trade.StatusObj


          Thread.sleep(500);
        } catch (final InterruptedException e) {
          e.printStackTrace();
        }
        JSONObject json = trade.acceptTrade();
        trade.status = new StatusObj(json);
        done = trade.status.success && (trade.status.trade_status == 1 || trade.status.me.confirmed);
        if (max++ > 20) {
          break;
        }
      }
View Full Code Here


  @Override
  public void onUserAccept() {
    respond();
    if (check && onlyApplicable) {
      try {
        trade.status = new StatusObj(trade.acceptTrade());
        if (trade.status.trade_status == 1 || (trade.status.success && trade.status.trade_status == 0 && trade.status.me.confirmed)) {
          Util.printConsole("Trade Success", bot, ConsoleColor.Green, true);
          return;
        }
      } catch (final ParseException e) {
View Full Code Here

TOP

Related Classes of uk.co.thomasc.scrapbanktf.trade.StatusObj

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.