add functions to support qr encoding selection

This commit is contained in:
Craig Raw 2024-05-09 12:19:19 +02:00
parent 60ac428002
commit 33bf35e3c4

View file

@ -115,6 +115,30 @@ public enum WalletModel {
} }
} }
public boolean showLegacyQR() {
if(this == COBO_VAULT) {
return true;
} else {
return false;
}
}
public boolean showBbqr() {
if(this == COLDCARD || this == SPARROW) {
return true;
} else {
return false;
}
}
public boolean selectBbqr() {
if(this == COLDCARD) {
return true;
} else {
return false;
}
}
public static WalletModel fromType(String type) { public static WalletModel fromType(String type) {
for(WalletModel model : values()) { for(WalletModel model : values()) {
if(model.getType().equalsIgnoreCase(type)) { if(model.getType().equalsIgnoreCase(type)) {