diff --git a/app/src/main/java/com/example/dcav2gui/ui/exchanges/WorkerData.java b/app/src/main/java/com/example/dcav2gui/ui/exchanges/WorkerData.java new file mode 100644 index 0000000..27d027e --- /dev/null +++ b/app/src/main/java/com/example/dcav2gui/ui/exchanges/WorkerData.java @@ -0,0 +1,49 @@ +package com.example.dcav2gui.ui.exchanges; + +import com.example.dcav2gui.InstanceInterface; + +public class WorkerData { + private final String pair; + private final int amountOfSafetyOrders; + private final int maxSafetyOrders; + private final double uptime; + private final double nextSoPrice; + private final double price; + private final double takeProfitPrice; + private final boolean isShort; + private final boolean isBoosted; + private final boolean isAuto; + private final boolean isPaused; + private final InstanceInterface.OldLongDictionary oldLongDictionary; + + public WorkerData(String pair, int amountOfSafetyOrders, int maxSafetyOrders, double uptime, + double nextSoPrice, double price, double takeProfitPrice, boolean isShort, + boolean isBoosted, boolean isAuto, boolean isPaused, + InstanceInterface.OldLongDictionary oldLongDictionary) { + this.pair = pair; + this.amountOfSafetyOrders = amountOfSafetyOrders; + this.maxSafetyOrders = maxSafetyOrders; + this.uptime = uptime; + this.nextSoPrice = nextSoPrice; + this.price = price; + this.takeProfitPrice = takeProfitPrice; + this.isShort = isShort; + this.isBoosted = isBoosted; + this.isAuto = isAuto; + this.isPaused = isPaused; + this.oldLongDictionary = oldLongDictionary; + } + + public String getPair() { return pair; } + public int getAmountOfSafetyOrders() { return amountOfSafetyOrders; } + public int getMaxSafetyOrders() { return maxSafetyOrders; } + public double getUptime() { return uptime; } + public double getNextSoPrice() { return nextSoPrice; } + public double getPrice() { return price; } + public double getTakeProfitPrice() { return takeProfitPrice; } + public boolean isShort() { return isShort; } + public boolean isBoosted() { return isBoosted; } + public boolean isAuto() { return isAuto; } + public boolean isPaused() { return isPaused; } + public InstanceInterface.OldLongDictionary getOldLongDictionary() { return oldLongDictionary; } +} \ No newline at end of file diff --git a/app/src/main/res/layout/worker_card.xml b/app/src/main/res/layout/worker_card.xml index 6fed56e..656031b 100644 --- a/app/src/main/res/layout/worker_card.xml +++ b/app/src/main/res/layout/worker_card.xml @@ -51,6 +51,7 @@ android:textAlignment="center" android:textSize="12sp" />