/// <summary> /// Defines and makes the PI request, and stores the response. /// </summary> /// <param name="outcode"></param> /// <returns></returns> public async Task MakeRequest(string outcode) { OutcodeSelected = outcode; // Make the request OutcodeResponse = await CallManager.MakeOutcodeRequest(outcode); // Parse it into a json object Json_Response = JObject.Parse(OutcodeResponse); // Parse Json into an object tree OutcodeDTO.DeserializeResponse(OutcodeResponse); }
public OutwardCodeService() { CallManager = new CallManager(); OutcodeDTO = new OutcodeDTO(); }