/// <summary> /// Retrieve a list of all Challenges for a Factor. /// </summary> /// <param name="pathServiceSid"> Service Sid. </param> /// <param name="pathIdentity"> Unique identity of the Entity </param> /// <param name="pathFactorSid"> Factor Sid. </param> /// <param name="status"> The Status of theChallenges to fetch </param> /// <param name="pageSize"> Page size </param> /// <param name="limit"> Record limit </param> /// <param name="client"> Client to make requests to Twilio </param> /// <returns> A single instance of Challenge </returns> public static ResourceSet <ChallengeResource> Read(string pathServiceSid, string pathIdentity, string pathFactorSid, ChallengeResource.ChallengeStatusesEnum status = null, int?pageSize = null, long?limit = null, ITwilioRestClient client = null) { var options = new ReadChallengeOptions(pathServiceSid, pathIdentity, pathFactorSid) { Status = status, PageSize = pageSize, Limit = limit }; return(Read(options, client)); }
/// <summary> /// Retrieve a list of all Challenges for a Factor. /// </summary> /// <param name="pathServiceSid"> Service Sid. </param> /// <param name="pathIdentity"> Unique identity of the Entity </param> /// <param name="pathFactorSid"> Factor Sid. </param> /// <param name="status"> The Status of theChallenges to fetch </param> /// <param name="pageSize"> Page size </param> /// <param name="limit"> Record limit </param> /// <param name="client"> Client to make requests to Twilio </param> /// <returns> Task that resolves to A single instance of Challenge </returns> public static async System.Threading.Tasks.Task <ResourceSet <ChallengeResource> > ReadAsync(string pathServiceSid, string pathIdentity, string pathFactorSid, ChallengeResource.ChallengeStatusesEnum status = null, int?pageSize = null, long?limit = null, ITwilioRestClient client = null) { var options = new ReadChallengeOptions(pathServiceSid, pathIdentity, pathFactorSid) { Status = status, PageSize = pageSize, Limit = limit }; return(await ReadAsync(options, client)); }