/// <summary>
 /// Populates the base status and error information from a TeleSign REST
 /// API response.
 /// </summary>
 /// <param name="response">The response object to populate.</param>
 /// <param name="node">The root response node.</param>
 protected void PopulateStatusResponseFields(
             TeleSignResponse response,
             JObject node)
 {
     response.ReferenceId = EmptyStringIfNull(node["reference_id"]);
     response.ResourceUri = EmptyStringIfNull(node["resource_uri"]);
     response.SubResource = EmptyStringIfNull(node["sub_resource"]);
     response.Status = this.ParseStatus((JObject)node["status"]);
     response.Errors = this.ParseErrorList((JArray)node["errors"]);
 }
예제 #2
0
 /// <summary>
 /// Populates the base status and error information from a TeleSign REST
 /// API response.
 /// </summary>
 /// <param name="response">The response object to populate.</param>
 /// <param name="node">The root response node.</param>
 protected void PopulateStatusResponseFields(
     TeleSignResponse response,
     JObject node)
 {
     response.ReferenceId = EmptyStringIfNull(node["reference_id"]);
     response.ResourceUri = EmptyStringIfNull(node["resource_uri"]);
     response.SubResource = EmptyStringIfNull(node["sub_resource"]);
     response.Status      = this.ParseStatus((JObject)node["status"]);
     response.Errors      = this.ParseErrorList((JArray)node["errors"]);
 }