Updated on 2026-08-14
This commit is contained in:
parent
e0288a127b
commit
bd2be3c3f3
6 changed files with 20 additions and 11 deletions
|
|
@ -2,6 +2,8 @@ package com.tangem.data;
|
|||
|
||||
import com.tangem.tangem_sdk.R;
|
||||
|
||||
import java.util.EnumSet;
|
||||
|
||||
/**
|
||||
* Created by dvol on 06.08.2017.
|
||||
*/
|
||||
|
|
@ -36,6 +38,8 @@ public enum Blockchain {
|
|||
FlowDemo("FLOW/demo", "", 1.0, R.drawable.tangem2, "Flow demo"),
|
||||
TokenEmv("TTW", "ETH", 1.0, R.drawable.ic_logo_ethereum, "Ethereum");
|
||||
|
||||
static private EnumSet<Blockchain> payIdSupported = EnumSet.of(Blockchain.Ripple, Blockchain.Ethereum, Blockchain.Bitcoin);
|
||||
|
||||
Blockchain(String ID, String currency, double multiplier, int imageResource, String officialName) {
|
||||
mID = ID;
|
||||
mCurrency = currency;
|
||||
|
|
@ -126,4 +130,8 @@ public enum Blockchain {
|
|||
return scheme;
|
||||
}
|
||||
|
||||
public Boolean isPayIdSupported() {
|
||||
return payIdSupported.contains(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue