C# 클래스 Examples.ClientConsumingRecordTopics.Currency

Encapsulates a base currency and all of its knownn rates.
파일 보기 프로젝트 열기: pushtechnology/diffusion-examples

공개 메소드들

메소드 설명
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.

메소드 상세

Currency() 공개 메소드

public Currency ( ) : System.Collections.Generic
리턴 System.Collections.Generic

GetRates() 공개 메소드

Retrieve the rates of a given currency.
public GetRates ( string currency ) : Rates
currency string The currency.
리턴 Rates

SetRate() 공개 메소드

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.
리턴 Rates

UpdateRate() 공개 메소드

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.
리턴 Rates