date formatting

This commit is contained in:
Nicolás Sánchez 2024-12-25 18:36:12 -03:00
parent 3836a96604
commit c6f0c7ccfd
1 changed files with 6 additions and 4 deletions

View File

@ -19,6 +19,8 @@ import android.widget.Toast;
import java.io.IOException; import java.io.IOException;
import java.util.Locale; import java.util.Locale;
import com.example.dcav2gui.ui.exchanges.adapters.WorkerCardAdapter;
import com.example.dcav2gui.ui.home.HomeFragment;
import com.google.android.material.materialswitch.MaterialSwitch; import com.google.android.material.materialswitch.MaterialSwitch;
import com.google.gson.Gson; import com.google.gson.Gson;
import com.google.gson.JsonElement; import com.google.gson.JsonElement;
@ -1135,11 +1137,11 @@ public class WorkerInterface {
"Base in deal: " + result.getBaseBought() + "\n" + "Base in deal: " + result.getBaseBought() + "\n" +
"Safety orders sent: " + (result.getSoAmount()-1) + "\n" + "Safety orders sent: " + (result.getSoAmount()-1) + "\n" +
"Max safety orders: " + result.getNumberOfSafetyOrders() + "\n" + "Max safety orders: " + result.getNumberOfSafetyOrders() + "\n" +
"Start time: " + result.getStartTime() + "\n" + "Start time: " + HomeFragment.timeStampConverter(result.getStartTime()) + "\n" +
"Total uptime: " + WorkerCardAdapter.formatSeconds(result.getTotalUptime()) + "\n" +
"Start price: " + String.format(Locale.ROOT, numberFormat,result.getStartPrice()) + "\n" + "Start price: " + String.format(Locale.ROOT, numberFormat,result.getStartPrice()) + "\n" +
"Deal start time: " + result.getDealStartTime() + "\n" + "Deal start time: " + HomeFragment.timeStampConverter(result.getDealStartTime()) + "\n" +
"Deal uptime: " + result.getDealUptime() + "\n" + "Deal uptime: " + WorkerCardAdapter.formatSeconds(result.getDealUptime()) + "\n" +
"Total uptime: " + result.getTotalUptime() + "\n" +
"Fees paid in base: " + result.getFeesPaidInBase() + "\n" + "Fees paid in base: " + result.getFeesPaidInBase() + "\n" +
"Fees paid in quote: " + result.getFeesPaidInQuote() + "\n" + "Fees paid in quote: " + result.getFeesPaidInQuote() + "\n" +
"Partial profit: " + result.getPartialProfit() + "\n" + "Partial profit: " + result.getPartialProfit() + "\n" +