Back to project page bitpay-android-sdk.
The source code is released under:
MIT License
If you think the Android project bitpay-android-sdk listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.bitpay.androidsdk.model; //from w ww .ja v a 2 s . c om import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** * Stores the exchange rate for a given currency. */ public class Rate { private String _name; private String _code; private double _value; public Rate() {} @JsonIgnore public String getName() { return _name; } @JsonProperty("name") public void setName(String _name) { this._name = _name; } @JsonIgnore public String getCode() { return _code; } @JsonProperty("code") public void setCode(String _code) { this._code = _code; } @JsonIgnore public double getValue() { return _value; } @JsonProperty("rate") public void setValue(double _value) { this._value = _value; } @Override public String toString() { return _name; } }