mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-20 02:12:00 +01:00
Rearrange fields and improve toString method
This commit is contained in:
parent
b3c31399a7
commit
ca34f8ecad
@ -40,6 +40,11 @@ public enum AssetTxProofResult {
|
|||||||
// Any service failed. Might be that the tx is invalid.
|
// Any service failed. Might be that the tx is invalid.
|
||||||
FAILED;
|
FAILED;
|
||||||
|
|
||||||
|
// If isTerminal is set it means that we stop the service
|
||||||
|
@Getter
|
||||||
|
private final boolean isTerminal;
|
||||||
|
@Getter
|
||||||
|
private String details = "";
|
||||||
@Getter
|
@Getter
|
||||||
private int numSuccessResults;
|
private int numSuccessResults;
|
||||||
@Getter
|
@Getter
|
||||||
@ -48,11 +53,7 @@ public enum AssetTxProofResult {
|
|||||||
private int numConfirmations;
|
private int numConfirmations;
|
||||||
@Getter
|
@Getter
|
||||||
private int numRequiredConfirmations;
|
private int numRequiredConfirmations;
|
||||||
@Getter
|
|
||||||
private String details = "";
|
|
||||||
// If isTerminal is set it means that we stop the service
|
|
||||||
@Getter
|
|
||||||
private final boolean isTerminal;
|
|
||||||
|
|
||||||
AssetTxProofResult() {
|
AssetTxProofResult() {
|
||||||
this(true);
|
this(true);
|
||||||
@ -91,11 +92,12 @@ public enum AssetTxProofResult {
|
|||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "AssetTxProofResult{" +
|
return "AssetTxProofResult{" +
|
||||||
"\n numSuccessResults=" + numSuccessResults +
|
"\n details='" + details + '\'' +
|
||||||
",\n requiredSuccessResults=" + numRequiredSuccessResults +
|
",\n isTerminal=" + isTerminal +
|
||||||
|
",\n numSuccessResults=" + numSuccessResults +
|
||||||
|
",\n numRequiredSuccessResults=" + numRequiredSuccessResults +
|
||||||
",\n numConfirmations=" + numConfirmations +
|
",\n numConfirmations=" + numConfirmations +
|
||||||
",\n numRequiredConfirmations=" + numRequiredConfirmations +
|
",\n numRequiredConfirmations=" + numRequiredConfirmations +
|
||||||
",\n details='" + details + '\'' +
|
|
||||||
"\n} " + super.toString();
|
"\n} " + super.toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user