java.lang.Object
com.currencycalc.currencycalculatorjavafx.model.Data

public class Data extends Object
Represents the exchange rates data structure retrieved from the FreeCurrencyAPI.

Each field corresponds to a specific currency's exchange rate relative to a base currency (typically USD). This class is annotated with Gson annotations for JSON serialization and deserialization.

Example JSON structure:

 {
   "AUD": 1.615,
   "EUR": 0.841,
   ...
 }
 

Each currency is represented as a Double value.

Version:
1.0.0
Autor:
Tim
  • Felddetails

    • aud

      @SerializedName("AUD") @Expose private Double aud
    • bgn

      @SerializedName("BGN") @Expose private Double bgn
    • brl

      @SerializedName("BRL") @Expose private Double brl
    • cad

      @SerializedName("CAD") @Expose private Double cad
    • chf

      @SerializedName("CHF") @Expose private Double chf
    • cny

      @SerializedName("CNY") @Expose private Double cny
    • czk

      @SerializedName("CZK") @Expose private Double czk
    • dkk

      @SerializedName("DKK") @Expose private Double dkk
    • eur

      @SerializedName("EUR") @Expose private Double eur
    • gbp

      @SerializedName("GBP") @Expose private Double gbp
    • hkd

      @SerializedName("HKD") @Expose private Double hkd
    • hrk

      @SerializedName("HRK") @Expose private Double hrk
    • huf

      @SerializedName("HUF") @Expose private Double huf
    • idr

      @SerializedName("IDR") @Expose private Double idr
    • ils

      @SerializedName("ILS") @Expose private Double ils
    • inr

      @SerializedName("INR") @Expose private Double inr
    • isk

      @SerializedName("ISK") @Expose private Double isk
    • jpy

      @SerializedName("JPY") @Expose private Double jpy
    • krw

      @SerializedName("KRW") @Expose private Double krw
    • mxn

      @SerializedName("MXN") @Expose private Double mxn
    • myr

      @SerializedName("MYR") @Expose private Double myr
    • nok

      @SerializedName("NOK") @Expose private Double nok
    • nzd

      @SerializedName("NZD") @Expose private Double nzd
    • php

      @SerializedName("PHP") @Expose private Double php
    • pln

      @SerializedName("PLN") @Expose private Double pln
    • ron

      @SerializedName("RON") @Expose private Double ron
    • rub

      @SerializedName("RUB") @Expose private Double rub
    • sek

      @SerializedName("SEK") @Expose private Double sek
    • sgd

      @SerializedName("SGD") @Expose private Double sgd
    • thb

      @SerializedName("THB") @Expose private Double thb
    • _try

      @SerializedName("TRY") @Expose private Double _try
    • usd

      @SerializedName("USD") @Expose private Double usd
    • zar

      @SerializedName("ZAR") @Expose private Double zar
  • Konstruktordetails

    • Data

      public Data()
  • Methodendetails

    • getAud

      public Double getAud()
      Gibt zurück:
      The exchange rate for Australian Dollar (AUD).
    • setAud

      public void setAud(Double aud)
      Parameter:
      aud - The exchange rate for Australian Dollar (AUD).
    • getBgn

      public Double getBgn()
      Gibt zurück:
      The exchange rate for Bulgarian Lev (BGN).
    • setBgn

      public void setBgn(Double bgn)
      Parameter:
      bgn - The exchange rate for Bulgarian Lev (BGN).
    • getZar

      public Double getZar()
      Gibt zurück:
      The exchange rate for South African Rand (ZAR).
    • setZar

      public void setZar(Double zar)
      Parameter:
      zar - The exchange rate for South African Rand (ZAR).
    • getBrl

      public Double getBrl()
      Gets the exchange rate for the Brazilian Real (BRL).
      Gibt zurück:
      the exchange rate for BRL.
    • setBrl

      public void setBrl(Double brl)
      Sets the exchange rate for the Brazilian Real (BRL).
      Parameter:
      brl - the exchange rate to set for BRL.
    • getCad

      public Double getCad()
      Gets the exchange rate for the Canadian Dollar (CAD).
      Gibt zurück:
      the exchange rate for CAD.
    • setCad

      public void setCad(Double cad)
      Sets the exchange rate for the Canadian Dollar (CAD).
      Parameter:
      cad - the exchange rate to set for CAD.
    • getChf

      public Double getChf()
      Gets the exchange rate for the Swiss Franc (CHF).
      Gibt zurück:
      the exchange rate for CHF.
    • setChf

      public void setChf(Double chf)
      Sets the exchange rate for the Swiss Franc (CHF).
      Parameter:
      chf - the exchange rate to set for CHF.
    • getCny

      public Double getCny()
      Gets the exchange rate for the Chinese Yuan (CNY).
      Gibt zurück:
      the exchange rate for CNY.
    • setCny

      public void setCny(Double cny)
      Sets the exchange rate for the Chinese Yuan (CNY).
      Parameter:
      cny - the exchange rate to set for CNY.
    • getUsd

      public Double getUsd()
      Gets the exchange rate for the US Dollar (USD).
      Gibt zurück:
      the exchange rate for USD.
    • setUsd

      public void setUsd(Double usd)
      Sets the exchange rate for the US Dollar (USD).
      Parameter:
      usd - the exchange rate to set for USD.
    • get_try

      public Double get_try()
      Gets the exchange rate for the Turkish Lira (TRY).
      Gibt zurück:
      the exchange rate for TRY.
    • set_try

      public void set_try(Double _try)
      Sets the exchange rate for the Turkish Lira (TRY).
      Parameter:
      _try - the exchange rate to set for TRY.
    • getThb

      public Double getThb()
      Gets the exchange rate for the Thai Baht (THB).
      Gibt zurück:
      the exchange rate for THB.
    • setThb

      public void setThb(Double thb)
      Sets the exchange rate for the Thai Baht (THB).
      Parameter:
      thb - the exchange rate to set for THB.
    • getSgd

      public Double getSgd()
      Gets the exchange rate for the Singapore Dollar (SGD).
      Gibt zurück:
      the exchange rate for SGD.
    • setSgd

      public void setSgd(Double sgd)
      Sets the exchange rate for the Singapore Dollar (SGD).
      Parameter:
      sgd - the exchange rate to set for SGD.
    • getSek

      public Double getSek()
      Gets the exchange rate for the Swedish Krona (SEK).
      Gibt zurück:
      the exchange rate for SEK.
    • setSek

      public void setSek(Double sek)
      Sets the exchange rate for the Swedish Krona (SEK).
      Parameter:
      sek - the exchange rate to set for SEK.
    • getRub

      public Double getRub()
      Gets the exchange rate for the Russian Ruble (RUB).
      Gibt zurück:
      the exchange rate for RUB.
    • setRub

      public void setRub(Double rub)
      Sets the exchange rate for the Russian Ruble (RUB).
      Parameter:
      rub - the exchange rate to set for RUB.
    • getRon

      public Double getRon()
      Gets the exchange rate for the Romanian Leu (RON).
      Gibt zurück:
      the exchange rate for RON.
    • setRon

      public void setRon(Double ron)
      Sets the exchange rate for the Romanian Leu (RON).
      Parameter:
      ron - the exchange rate to set for RON.
    • getPln

      public Double getPln()
      Gets the exchange rate for the Polish Zloty (PLN).
      Gibt zurück:
      the exchange rate for PLN.
    • setPln

      public void setPln(Double pln)
      Sets the exchange rate for the Polish Zloty (PLN).
      Parameter:
      pln - the exchange rate to set for PLN.
    • getPhp

      public Double getPhp()
      Gets the exchange rate for the Philippine Peso (PHP).
      Gibt zurück:
      the exchange rate for PHP.
    • setPhp

      public void setPhp(Double php)
      Sets the exchange rate for the Philippine Peso (PHP).
      Parameter:
      php - the exchange rate to set for PHP.
    • getNzd

      public Double getNzd()
      Gets the exchange rate for the New Zealand Dollar (NZD).
      Gibt zurück:
      the exchange rate for NZD.
    • setNzd

      public void setNzd(Double nzd)
      Sets the exchange rate for the New Zealand Dollar (NZD).
      Parameter:
      nzd - the exchange rate to set for NZD.
    • getNok

      public Double getNok()
      Gets the exchange rate for the Norwegian Krone (NOK).
      Gibt zurück:
      the exchange rate for NOK.
    • setNok

      public void setNok(Double nok)
      Sets the exchange rate for the Norwegian Krone (NOK).
      Parameter:
      nok - the exchange rate to set for NOK.
    • getMyr

      public Double getMyr()
      Gets the exchange rate for the Malaysian Ringgit (MYR).
      Gibt zurück:
      the exchange rate for MYR.
    • setMyr

      public void setMyr(Double myr)
      Sets the exchange rate for the Malaysian Ringgit (MYR).
      Parameter:
      myr - the exchange rate to set for MYR.
    • getMxn

      public Double getMxn()
      Gets the exchange rate for the Mexican Peso (MXN).
      Gibt zurück:
      the exchange rate for MXN.
    • setMxn

      public void setMxn(Double mxn)
      Sets the exchange rate for the Mexican Peso (MXN).
      Parameter:
      mxn - the exchange rate to set for MXN.
    • getKrw

      public Double getKrw()
      Gets the exchange rate for the South Korean Won (KRW).
      Gibt zurück:
      the exchange rate for KRW.
    • setKrw

      public void setKrw(Double krw)
      Sets the exchange rate for the South Korean Won (KRW).
      Parameter:
      krw - the exchange rate to set for KRW.
    • getJpy

      public Double getJpy()
      Gets the exchange rate for the Japanese Yen (JPY).
      Gibt zurück:
      the exchange rate for JPY.
    • setJpy

      public void setJpy(Double jpy)
      Sets the exchange rate for the Japanese Yen (JPY).
      Parameter:
      jpy - the exchange rate to set for JPY.
    • getIsk

      public Double getIsk()
      Gets the exchange rate for the Icelandic Krona (ISK).
      Gibt zurück:
      the exchange rate for ISK.
    • setIsk

      public void setIsk(Double isk)
      Sets the exchange rate for the Icelandic Krona (ISK).
      Parameter:
      isk - the exchange rate to set for ISK.
    • getInr

      public Double getInr()
      Gets the exchange rate for the Indian Rupee (INR).
      Gibt zurück:
      the exchange rate for INR.
    • setInr

      public void setInr(Double inr)
      Sets the exchange rate for the Indian Rupee (INR).
      Parameter:
      inr - the exchange rate to set for INR.
    • getIls

      public Double getIls()
      Gets the exchange rate for the Israeli New Shekel (ILS).
      Gibt zurück:
      the exchange rate for ILS.
    • setIls

      public void setIls(Double ils)
      Sets the exchange rate for the Israeli New Shekel (ILS).
      Parameter:
      ils - the exchange rate to set for ILS.
    • getIdr

      public Double getIdr()
      Gets the exchange rate for the Indonesian Rupiah (IDR).
      Gibt zurück:
      the exchange rate for IDR.
    • setIdr

      public void setIdr(Double idr)
      Sets the exchange rate for the Indonesian Rupiah (IDR).
      Parameter:
      idr - the exchange rate to set for IDR.
    • getHuf

      public Double getHuf()
      Gets the exchange rate for the Hungarian Forint (HUF).
      Gibt zurück:
      the exchange rate for HUF.
    • setHuf

      public void setHuf(Double huf)
      Sets the exchange rate for the Hungarian Forint (HUF).
      Parameter:
      huf - the exchange rate to set for HUF.
    • getHrk

      public Double getHrk()
      Gets the exchange rate for the Croatian Kuna (HRK).
      Gibt zurück:
      the exchange rate for HRK.
    • setHrk

      public void setHrk(Double hrk)
      Sets the exchange rate for the Croatian Kuna (HRK).
      Parameter:
      hrk - the exchange rate to set for HRK.
    • getHkd

      public Double getHkd()
      Gets the exchange rate for the Hong Kong Dollar (HKD).
      Gibt zurück:
      the exchange rate for HKD.
    • setHkd

      public void setHkd(Double hkd)
      Sets the exchange rate for the Hong Kong Dollar (HKD).
      Parameter:
      hkd - the exchange rate to set for HKD.
    • getGbp

      public Double getGbp()
      Gets the exchange rate for the British Pound Sterling (GBP).
      Gibt zurück:
      the exchange rate for GBP.
    • setGbp

      public void setGbp(Double gbp)
      Sets the exchange rate for the British Pound Sterling (GBP).
      Parameter:
      gbp - the exchange rate to set for GBP.
    • getEur

      public Double getEur()
      Gets the exchange rate for the Euro (EUR).
      Gibt zurück:
      the exchange rate for EUR.
    • setEur

      public void setEur(Double eur)
      Sets the exchange rate for the Euro (EUR).
      Parameter:
      eur - the exchange rate to set for EUR.
    • getDkk

      public Double getDkk()
      Gets the exchange rate for the Danish Krone (DKK).
      Gibt zurück:
      the exchange rate for DKK.
    • setDkk

      public void setDkk(Double dkk)
      Sets the exchange rate for the Danish Krone (DKK).
      Parameter:
      dkk - the exchange rate to set for DKK.
    • getCzk

      public Double getCzk()
      Gets the exchange rate for the Czech Koruna (CZK).
      Gibt zurück:
      the exchange rate for CZK.
    • setCzk

      public void setCzk(Double czk)
      Sets the exchange rate for the Czech Koruna (CZK).
      Parameter:
      czk - the exchange rate to set for CZK.