コード例 #1
0
        public async Task MakeRequest(string postcode)
        {
            PostcodeSelected = postcode;

            PostcodeResponse = await CallManager.MakePostcodeRequestAsync(postcode);

            JsonResponse = JObject.Parse(PostcodeResponse);

            SinglePostcodeDTO.DeserealizeResponse(PostcodeResponse);
        }
コード例 #2
0
        public async Task MakeRequestAsync(string postcode)
        {
            //make a request
            PostcodeResponse = await CallManager.MakePostcodeRequestAsync(postcode, "postcode");

            //parse a json response
            Json_Response = JObject.Parse(PostcodeResponse);

            //Use DTO to covert JSON string to an object
            SinglePostcodeDTO.DeserializeResponse(PostcodeResponse);
        }
コード例 #3
0
        public async Task MakeRequestAsync(string postcode)
        {
            PostcodeSelected = postcode;

            // Make request
            PostcodeResponse = await CallManager.MakePostcodeRequestAsync(postcode);

            // Parse JSON response content
            JSON_Response = JObject.Parse(PostcodeResponse);

            // Use DTO to convert JSON string to an object
            SinglePostcodeDTO.DeserialiseResponse(PostcodeResponse);
        }