コード例 #1
0
        public Task <FaresResponse> FaresAsync(FaresRequest request)
        {
            if (request == null)
            {
                throw new NullReferenceException(nameof(request));
            }

            return(GetFaresAsync(request));
        }
コード例 #2
0
        private Task <FaresResponse> GetFaresAsync(FaresRequest request)
        {
            var requestUrl = request.ToString();

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