ability to display type of wallet model

This commit is contained in:
Craig Raw 2020-04-29 15:04:09 +02:00
parent ed056bc49f
commit d740895bd6

View file

@ -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("_");