/// <summary> /// Defines and makes the API request, and stores the response. /// </summary> /// <param name="postcode"></param> public async Task MakeRequest(string postcode) { PostcodeSelected = postcode; // Make the request PostcodeResponse = await CallManager.MakePostcodeRequest(postcode); // Parse it into a json object Json_Response = JObject.Parse(PostcodeResponse); // Parse Json into an object tree SinglePostcodeDTO.DeserializeResponse(PostcodeResponse); }
public SinglePostCodeService() { CallManager = new CallManager(); SinglePostcodeDTO = new SinglePostcodeDTO(); }