mirror of
https://github.com/sparrowwallet/drongo.git
synced 2024-12-26 01:56:44 +00:00
ability to display type of wallet model
This commit is contained in:
parent
ed056bc49f
commit
d740895bd6
1 changed files with 8 additions and 0 deletions
|
@ -7,6 +7,14 @@ public enum WalletModel {
|
|||
return valueOf(model.toUpperCase());
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
if(this == TREZOR_1 || this == TREZOR_T) {
|
||||
return "trezor";
|
||||
}
|
||||
|
||||
return this.toString();
|
||||
}
|
||||
|
||||
public String toDisplayString() {
|
||||
String line = this.toString().toLowerCase();
|
||||
String[] words = line.split("_");
|
||||
|
|
Loading…
Reference in a new issue