/// <summary> /// read /// </summary> /// /// <param name="sim"> The sim </param> /// <param name="status"> The status </param> /// <param name="direction"> The direction </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 Command </returns> public static ResourceSet <CommandResource> Read(string sim = null, CommandResource.StatusEnum status = null, CommandResource.DirectionEnum direction = null, int?pageSize = null, long?limit = null, ITwilioRestClient client = null) { var options = new ReadCommandOptions { Sim = sim, Status = status, Direction = direction, PageSize = pageSize, Limit = limit }; return(Read(options, client)); }
/// <summary> /// Retrieve a list of Commands from your account. /// </summary> /// <param name="sim"> The sid or unique_name of the Sim resources to read </param> /// <param name="status"> The status of the resources to read </param> /// <param name="direction"> Only return Commands with this direction value </param> /// <param name="transport"> Only return Commands with this transport value </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 Command </returns> public static async System.Threading.Tasks.Task <ResourceSet <CommandResource> > ReadAsync(string sim = null, CommandResource.StatusEnum status = null, CommandResource.DirectionEnum direction = null, CommandResource.TransportEnum transport = null, int?pageSize = null, long?limit = null, ITwilioRestClient client = null) { var options = new ReadCommandOptions() { Sim = sim, Status = status, Direction = direction, Transport = transport, PageSize = pageSize, Limit = limit }; return(await ReadAsync(options, client)); }