/// <summary> /// read /// </summary> /// <param name="pathServiceSid"> The SID of the Sync Service with the Sync List resources to read </param> /// <param name="hideExpired"> Hide expired Sync Lists and show only active ones. </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 SyncList </returns> public static ResourceSet <SyncListResource> Read(string pathServiceSid, SyncListResource.HideExpiredTypeEnum hideExpired = null, int?pageSize = null, long?limit = null, ITwilioRestClient client = null) { var options = new ReadSyncListOptions(pathServiceSid) { HideExpired = hideExpired, PageSize = pageSize, Limit = limit }; return(Read(options, client)); }
/// <summary> /// read /// </summary> /// <param name="pathServiceSid"> The SID of the Sync Service with the Sync List resources to read </param> /// <param name="hideExpired"> Hide expired Sync Lists and show only active ones. </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 SyncList </returns> public static async System.Threading.Tasks.Task <ResourceSet <SyncListResource> > ReadAsync(string pathServiceSid, SyncListResource.HideExpiredTypeEnum hideExpired = null, int?pageSize = null, long?limit = null, ITwilioRestClient client = null) { var options = new ReadSyncListOptions(pathServiceSid) { HideExpired = hideExpired, PageSize = pageSize, Limit = limit }; return(await ReadAsync(options, client)); }