Updated on 2026-08-14
This commit is contained in:
parent
39fa3780e8
commit
8013392219
2 changed files with 21 additions and 1 deletions
|
|
@ -54,6 +54,10 @@ public abstract class CoinData {
|
|||
rate = B.getFloat("rate");
|
||||
if (B.containsKey("rateAlter"))
|
||||
rateAlter = B.getFloat("rateAlter");
|
||||
|
||||
if (B.containsKey("sentTransactionsCount")) {
|
||||
sentTransactionsCount = B.getInt("sentTransactionsCount");
|
||||
}
|
||||
}
|
||||
|
||||
public void saveToBundle(Bundle B) {
|
||||
|
|
@ -70,6 +74,10 @@ public abstract class CoinData {
|
|||
|
||||
B.putBoolean("balanceReceived", balanceReceived);
|
||||
B.putString("validationNodeDescription", validationNodeDescription);
|
||||
|
||||
if (sentTransactionsCount != null) {
|
||||
B.putInt("sentTransactionsCount", sentTransactionsCount);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
Log.e("Can't save to bundle ", e.getMessage());
|
||||
}
|
||||
|
|
@ -148,6 +156,7 @@ public abstract class CoinData {
|
|||
normalFee=null;
|
||||
rate=0f;
|
||||
rateAlter=0f;
|
||||
sentTransactionsCount = null;
|
||||
}
|
||||
|
||||
// private AtomicInteger failedBalanceRequestCounter;
|
||||
|
|
@ -191,4 +200,14 @@ public abstract class CoinData {
|
|||
public CoinEngine.Amount minFee = null;
|
||||
public CoinEngine.Amount normalFee = null;
|
||||
public CoinEngine.Amount maxFee = null;
|
||||
|
||||
private Integer sentTransactionsCount = null;
|
||||
|
||||
public Integer getSentTransactionsCount() {
|
||||
return sentTransactionsCount;
|
||||
}
|
||||
|
||||
public void setSentTransactionsCount(Integer sentTransactionsCount) {
|
||||
this.sentTransactionsCount = sentTransactionsCount;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue