mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-22 22:45:21 +01:00
Add getAmountAsLong to TradeModel
This commit is contained in:
parent
863a52077d
commit
12aadf9ab8
3 changed files with 14 additions and 2 deletions
|
@ -65,6 +65,8 @@ public abstract class TradeModel implements Tradable, Model {
|
|||
|
||||
public abstract TradePhase getTradePhase();
|
||||
|
||||
public abstract long getAmountAsLong();
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Tradable implementation
|
||||
|
|
|
@ -306,7 +306,6 @@ public abstract class Trade extends TradeModel {
|
|||
@Getter
|
||||
@Setter
|
||||
private String payoutTxId;
|
||||
@Getter
|
||||
@Setter
|
||||
private long amountAsLong;
|
||||
@Setter
|
||||
|
@ -729,6 +728,12 @@ public abstract class Trade extends TradeModel {
|
|||
return isWithdrawn();
|
||||
}
|
||||
|
||||
@Override
|
||||
public long getAmountAsLong() {
|
||||
return amountAsLong;
|
||||
}
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Abstract
|
||||
///////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -70,7 +70,7 @@ public abstract class BsqSwapTrade extends TradeModel {
|
|||
}
|
||||
}
|
||||
|
||||
@Getter
|
||||
|
||||
private final long amountAsLong;
|
||||
@Getter
|
||||
private final long txFeePerVbyte;
|
||||
|
@ -180,6 +180,11 @@ public abstract class BsqSwapTrade extends TradeModel {
|
|||
return state.getTradePhase();
|
||||
}
|
||||
|
||||
@Override
|
||||
public long getAmountAsLong() {
|
||||
return amountAsLong;
|
||||
}
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Setters
|
||||
|
|
Loading…
Add table
Reference in a new issue