コード例 #1
0
        /// <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);
        }
コード例 #2
0
 public OutwardCodeService()
 {
     CallManager = new CallManager();
     OutcodeDTO  = new OutcodeDTO();
 }