add cobo vault

This commit is contained in:
Craig Raw 2020-10-07 12:31:01 +02:00
parent 3642ddc958
commit 290fbabb54

View file

@ -1,7 +1,7 @@
package com.sparrowwallet.drongo.wallet; package com.sparrowwallet.drongo.wallet;
public enum WalletModel { public enum WalletModel {
SEED, SPARROW, BITCOIN_CORE, ELECTRUM, TREZOR_1, TREZOR_T, COLDCARD, LEDGER_NANO_S, LEDGER_NANO_X, DIGITALBITBOX_01, KEEPKEY, SPECTER; SEED, SPARROW, BITCOIN_CORE, ELECTRUM, TREZOR_1, TREZOR_T, COLDCARD, LEDGER_NANO_S, LEDGER_NANO_X, DIGITALBITBOX_01, KEEPKEY, SPECTER, COBO_VAULT;
public static WalletModel getModel(String model) { public static WalletModel getModel(String model) {
return valueOf(model.toUpperCase()); return valueOf(model.toUpperCase());
@ -20,6 +20,10 @@ public enum WalletModel {
return "digitalbitbox"; return "digitalbitbox";
} }
if(this == COBO_VAULT) {
return "cobovault";
}
return this.toString().toLowerCase(); return this.toString().toLowerCase();
} }