Multipetros.WebServices.GoogleCurrencies Class Reference

Download exchange rate for supported currencies from Google's web service More...

Public Types

enum  Currency {
  DZD, ARS, AUD, BHD,
  BOB, BWP, BRL, GBP,
  BND, BGN, CAD, KYD,
  CLP, CNY, COP, CRC,
  HRK, CZK, DKK, DOP,
  EGP, EEK, EUR, FJD,
  MKD, HNL, HKD, HUF,
  INR, ILS, JMD, JPY,
  JOD, KZT, KES, KWD,
  LVL, LBP, LTL, MYR,
  MUR, MXN, MDL, MAD,
  NAD, NPR, ANG, TWD,
  NZD, NIO, NGN, NOK,
  OMR, PKR, PGK, PYG,
  PEN, PHP, PLN, QAR,
  RON, RUB, SVC, SAR,
  RSD, SCR, SLL, SGD,
  SKK, ZAR, KRW, LKR,
  SEK, CHF, TZS, THB,
  TTD, TND, TRY, AED,
  UGX, UAH, UYU, USD,
  UZS, VEF, YER
}
 Enumeration with all supported currency codes More...
 

Public Member Functions

 GoogleCurrencies ()
 Default GoogleCurrencies constructor
 
double GetRate (Currency source, Currency target)
 Download the exchange rate for the selected currencies
 

Properties

string[] CurrencyCodes [get]
 A string array with all supported currency codes
 
string[] CurrencyNames [get]
 A string array with the name of all supported currencies
 
Dictionary< string, string > SupportedCurrencies [get]
 A Dictrionary with all supported currencies, with currency code as key, and currency name as value
 

Detailed Description

Download exchange rate for supported currencies from Google's web service

Member Enumeration Documentation

Enumeration with all supported currency codes

Enumerator:
DZD 
ARS 
AUD 
BHD 
BOB 
BWP 
BRL 
GBP 
BND 
BGN 
CAD 
KYD 
CLP 
CNY 
COP 
CRC 
HRK 
CZK 
DKK 
DOP 
EGP 
EEK 
EUR 
FJD 
MKD 
HNL 
HKD 
HUF 
INR 
ILS 
JMD 
JPY 
JOD 
KZT 
KES 
KWD 
LVL 
LBP 
LTL 
MYR 
MUR 
MXN 
MDL 
MAD 
NAD 
NPR 
ANG 
TWD 
NZD 
NIO 
NGN 
NOK 
OMR 
PKR 
PGK 
PYG 
PEN 
PHP 
PLN 
QAR 
RON 
RUB 
SVC 
SAR 
RSD 
SCR 
SLL 
SGD 
SKK 
ZAR 
KRW 
LKR 
SEK 
CHF 
TZS 
THB 
TTD 
TND 
TRY 
AED 
UGX 
UAH 
UYU 
USD 
UZS 
VEF 
YER 

Constructor & Destructor Documentation

Multipetros.WebServices.GoogleCurrencies.GoogleCurrencies ( )

Default GoogleCurrencies constructor

Member Function Documentation

double Multipetros.WebServices.GoogleCurrencies.GetRate ( Currency  source,
Currency  target 
)

Download the exchange rate for the selected currencies

Parameters
sourceThe source (convert from) currency
targetThe target (convert to) currency
Returns
The exchange rate

Property Documentation

string [] Multipetros.WebServices.GoogleCurrencies.CurrencyCodes
get

A string array with all supported currency codes

string [] Multipetros.WebServices.GoogleCurrencies.CurrencyNames
get

A string array with the name of all supported currencies

Dictionary<string, string> Multipetros.WebServices.GoogleCurrencies.SupportedCurrencies
get

A Dictrionary with all supported currencies, with currency code as key, and currency name as value