mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2026-08-09 08:14:43 +00:00
26 lines
522 B
Java
26 lines
522 B
Java
package com.sparrowwallet.sparrow;
|
|
|
|
import java.util.Currency;
|
|
|
|
public class CurrencyRate {
|
|
private final Currency currency;
|
|
private final Double btcRate;
|
|
|
|
public CurrencyRate(Currency currency, Double btcRate) {
|
|
this.currency = currency;
|
|
this.btcRate = btcRate;
|
|
}
|
|
|
|
public Currency getCurrency() {
|
|
return currency;
|
|
}
|
|
|
|
public boolean isAvailable() {
|
|
return btcRate != null && btcRate > 0.0;
|
|
}
|
|
|
|
public Double getBtcRate() {
|
|
return btcRate;
|
|
}
|
|
}
|