/// <summary> /// Parses a TeleSign Verify JSON response into a rich object. /// </summary> /// <param name="json">The json string containing the response.</param> /// <returns>A VerifyResponse object populated with the data from the response.</returns> public VerifyResponse ParseVerifyResponse(string json) { CheckArgument.NotNull(json, "json"); JObject node = JObject.Parse(json); VerifyResponse response = new VerifyResponse(json) { VerifyInfo = this.ParseVerifyInfo((JObject)node["verify"]), }; this.PopulateStatusResponseFields(response, node); return(response); }
/// <summary> /// Parses a TeleSign Verify JSON response into a rich object. /// </summary> /// <param name="json">The json string containing the response.</param> /// <returns>A VerifyResponse object populated with the data from the response.</returns> public VerifyResponse ParseVerifyResponse(string json) { CheckArgument.NotNull(json, "json"); JObject node = JObject.Parse(json); VerifyResponse response = new VerifyResponse(json) { VerifyInfo = this.ParseVerifyInfo((JObject)node["verify"]), }; this.PopulateStatusResponseFields(response, node); return response; }