ge: include slot id

This commit is contained in:
Adam
2020-06-03 13:29:31 -04:00
parent 7b90a6967a
commit a803ba567b
4 changed files with 6 additions and 0 deletions

View File

@@ -38,5 +38,6 @@ public class GrandExchangeTrade
private int total;
private int spent;
private int offer;
private int slot;
private WorldType worldType;
}

View File

@@ -95,6 +95,7 @@ public class GrandExchangeController
trade.setTotal(grandExchangeTrade.getTotal());
trade.setSpent(grandExchangeTrade.getSpent());
trade.setOffer(grandExchangeTrade.getOffer());
trade.setSlot(grandExchangeTrade.getSlot());
trade.setTime((int) (System.currentTimeMillis() / 1000L));
trade.setMachineId(request.getHeader(RuneLiteAPI.RUNELITE_MACHINEID));
trade.setUserId(userId);

View File

@@ -38,6 +38,7 @@ class Trade
private int total;
private int spent;
private int offer;
private int slot;
private int time;
private String machineId;
private Integer userId;

View File

@@ -416,6 +416,7 @@ public class GrandExchangePlugin extends Plugin
grandExchangeTrade.setTotal(offer.getTotalQuantity());
grandExchangeTrade.setSpent(0);
grandExchangeTrade.setOffer(offer.getPrice());
grandExchangeTrade.setSlot(slot);
grandExchangeTrade.setWorldType(getGeWorldType());
grandExchangeTrade.setLogin(loginBurstGeUpdates);
@@ -446,6 +447,7 @@ public class GrandExchangePlugin extends Plugin
grandExchangeTrade.setTotal(offer.getTotalQuantity());
grandExchangeTrade.setSpent(offer.getSpent());
grandExchangeTrade.setOffer(offer.getPrice());
grandExchangeTrade.setSlot(slot);
grandExchangeTrade.setWorldType(getGeWorldType());
grandExchangeTrade.setLogin(loginBurstGeUpdates);
@@ -468,6 +470,7 @@ public class GrandExchangePlugin extends Plugin
grandExchangeTrade.setTotal(offer.getTotalQuantity());
grandExchangeTrade.setSpent(dspent);
grandExchangeTrade.setOffer(offer.getPrice());
grandExchangeTrade.setSlot(slot);
grandExchangeTrade.setWorldType(getGeWorldType());
grandExchangeTrade.setLogin(loginBurstGeUpdates);