예제 #1
0
        public Task <FareResponse> FareAsync(FareRequest request)
        {
            if (request == null)
            {
                throw new NullReferenceException(nameof(request));
            }

            return(GetFareAsync(request));
        }
예제 #2
0
        private Task <FareResponse> GetFareAsync(FareRequest request)
        {
            var requestUrl = request.ToString();

            return(GetAsync <FareResponse>(requestUrl));
        }