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

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

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