Android Open Source - bitpay-android-sdk Rate






From Project

Back to project page bitpay-android-sdk.

License

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.

Java Source Code

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;
    }
}




Java Source Code List

com.bitpay.androidsdk.android.BitPayAndroid.java
com.bitpay.androidsdk.android.InvoiceActivity.java
com.bitpay.androidsdk.android.interfaces.BitpayPromiseCallback.java
com.bitpay.androidsdk.android.interfaces.InvoiceCreationCallback.java
com.bitpay.androidsdk.android.interfaces.InvoicePromiseCallback.java
com.bitpay.androidsdk.android.interfaces.PromiseCallback.java
com.bitpay.androidsdk.android.interfaces.RatesPromiseCallback.java
com.bitpay.androidsdk.android.promises.BitpayPromise.java
com.bitpay.androidsdk.controller.BitPayException.java
com.bitpay.androidsdk.controller.BitPay.java
com.bitpay.androidsdk.controller.KeyUtils.java
com.bitpay.androidsdk.model.InvoicePaymentUrls.java
com.bitpay.androidsdk.model.InvoiceTransaction.java
com.bitpay.androidsdk.model.Invoice.java
com.bitpay.androidsdk.model.Policy.java
com.bitpay.androidsdk.model.Rate.java
com.bitpay.androidsdk.model.Rates.java
com.bitpay.androidsdk.model.Token.java
com.bitpay.sdk.android.ApplicationTest.java