/// <summary> /// Parses a TeleSign PhoneID Score JSON response into a rich object. /// </summary> /// <param name="json">The json string containing the response.</param> /// <returns>A PhoneIdLiveResponse object populated with the data from the response.</returns> public PhoneIdLiveResponse ParsePhoneIdLiveResponse(string json) { CheckArgument.NotNull(json, "json"); JObject node = JObject.Parse(json); PhoneIdLiveResponse response = new PhoneIdLiveResponse(json); this.PopulateCommonPhoneIdResponseFields(response, node); this.PopulateStatusResponseFields(response, node); this.PopulatePhoneIdStandardResponseFields(response, node); response.Live = this.ParseLive(node["live"]); return(response); }
/// <summary> /// Parses a TeleSign PhoneID Score JSON response into a rich object. /// </summary> /// <param name="json">The json string containing the response.</param> /// <returns>A PhoneIdLiveResponse object populated with the data from the response.</returns> public PhoneIdLiveResponse ParsePhoneIdLiveResponse(string json) { CheckArgument.NotNull(json, "json"); JObject node = JObject.Parse(json); PhoneIdLiveResponse response = new PhoneIdLiveResponse(json); this.PopulateCommonPhoneIdResponseFields(response, node); this.PopulateStatusResponseFields(response, node); this.PopulatePhoneIdStandardResponseFields(response, node); response.Live = this.ParseLive(node["live"]); return response; }