예제 #1
0
 /// <inheritdoc />
 public async Task <IList <Rate> > GetYearRatesAsync(int year)
 {
     using (var readStream = await this.GetResponse(FormattableString.Invariant($"year.txt?year={year}")))
         return(await RatesParser.YearParseAsync(readStream));
 }
예제 #2
0
 /// <inheritdoc />
 public async Task <IList <Rate> > GetDailyRatesAsync(DateTime date)
 {
     using (var readStream = await this.GetResponse(FormattableString.Invariant($"daily.txt?date={date:dd.MM.yyyy}")))
         return(await RatesParser.DailyParseAsync(readStream));
 }