Ejemplo n.º 1
0
        /// <summary>
        /// read
        /// </summary>
        /// <param name="pathServiceSid"> The SID of the Sync Service with the Document resources to read </param>
        /// <param name="hideExpired"> Hide expired Sync Documents 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 Document </returns>
        public static ResourceSet <DocumentResource> Read(string pathServiceSid,
                                                          DocumentResource.HideExpiredTypeEnum hideExpired = null,
                                                          int?pageSize             = null,
                                                          long?limit               = null,
                                                          ITwilioRestClient client = null)
        {
            var options = new ReadDocumentOptions(pathServiceSid)
            {
                HideExpired = hideExpired, PageSize = pageSize, Limit = limit
            };

            return(Read(options, client));
        }
Ejemplo n.º 2
0
        /// <summary>
        /// read
        /// </summary>
        /// <param name="pathServiceSid"> The SID of the Sync Service with the Document resources to read </param>
        /// <param name="hideExpired"> Hide expired Sync Documents 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 Document </returns>
        public static async System.Threading.Tasks.Task <ResourceSet <DocumentResource> > ReadAsync(string pathServiceSid,
                                                                                                    DocumentResource.HideExpiredTypeEnum hideExpired = null,
                                                                                                    int?pageSize             = null,
                                                                                                    long?limit               = null,
                                                                                                    ITwilioRestClient client = null)
        {
            var options = new ReadDocumentOptions(pathServiceSid)
            {
                HideExpired = hideExpired, PageSize = pageSize, Limit = limit
            };

            return(await ReadAsync(options, client));
        }