コード例 #1
0
        public async Task <int> GetCurrencyRateAsync(CurrencyEnumCodes currencyEnumCode)
        {
            var responseNs = "GetCurrencyRate";

            var content = await networkLayer.MakeNBGCurrencyEnvelope(responseNs, currencyEnumCode.ToEnumString());

            return(int.Parse(content.ToValue(responseNs)));
        }
コード例 #2
0
        public async Task <string> GetCurrencyDescriptionAsync(CurrencyEnumCodes currencyEnumCode)
        {
            var responseNs = "GetCurrencyDescription";

            var content = await networkLayer.MakeNBGCurrencyEnvelope(responseNs, currencyEnumCode.ToEnumString());

            return(content.ToValue(responseNs));
        }