C# Class Examples.ClientConsumingRecordTopics.Currency

Encapsulates a base currency and all of its knownn rates.
Afficher le fichier Open project: pushtechnology/diffusion-examples

Méthodes publiques

Méthode Description
Currency ( ) : System.Collections.Generic
GetRates ( string currency ) : Rates

Retrieve the rates of a given currency.

SetRate ( string currency, string bid, string ask ) : Rates

Set a currency rate.

UpdateRate ( string currency, string bid, string ask ) : Rates

Update a currency rate.

Method Details

Currency() public méthode

public Currency ( ) : System.Collections.Generic
Résultat System.Collections.Generic

GetRates() public méthode

Retrieve the rates of a given currency.
public GetRates ( string currency ) : Rates
currency string The currency.
Résultat Rates

SetRate() public méthode

Set a currency rate.
public SetRate ( string currency, string bid, string ask ) : Rates
currency string The currency to add.
bid string The 'bid' rate.
ask string The 'ask' rate.
Résultat Rates

UpdateRate() public méthode

Update a currency rate.
public UpdateRate ( string currency, string bid, string ask ) : Rates
currency string The currency to update.
bid string The 'bid' rate.
ask string The 'ask' rate.
Résultat Rates