Exemple #1
0
        /// <summary>
        /// read
        /// </summary>
        /// <param name="pathServiceSid"> The service_sid </param>
        /// <param name="pathMapSid"> The map_sid </param>
        /// <param name="order"> The order </param>
        /// <param name="from"> The from </param>
        /// <param name="bounds"> The bounds </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 SyncMapItem </returns>
        public static ResourceSet <SyncMapItemResource> Read(string pathServiceSid,
                                                             string pathMapSid,
                                                             SyncMapItemResource.QueryResultOrderEnum order = null,
                                                             string from = null,
                                                             SyncMapItemResource.QueryFromBoundTypeEnum bounds = null,
                                                             int?pageSize             = null,
                                                             long?limit               = null,
                                                             ITwilioRestClient client = null)
        {
            var options = new ReadSyncMapItemOptions(pathServiceSid, pathMapSid)
            {
                Order = order, From = from, Bounds = bounds, PageSize = pageSize, Limit = limit
            };

            return(Read(options, client));
        }
        /// <summary>
        /// read
        /// </summary>
        /// <param name="pathServiceSid"> The SID of the Sync Service with the Map Item resources to read </param>
        /// <param name="pathMapSid"> The SID of the Sync Map with the Sync Map Item resource to fetch </param>
        /// <param name="order"> How to order the Map Items returned by their key value </param>
        /// <param name="from"> The index of the first Sync Map Item resource to read </param>
        /// <param name="bounds"> Whether to include the Map Item referenced by the from parameter </param>
        /// <param name="hideExpired"> Hide expired Sync Map items 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 SyncMapItem </returns>
        public static async System.Threading.Tasks.Task <ResourceSet <SyncMapItemResource> > ReadAsync(string pathServiceSid,
                                                                                                       string pathMapSid,
                                                                                                       SyncMapItemResource.QueryResultOrderEnum order = null,
                                                                                                       string from = null,
                                                                                                       SyncMapItemResource.QueryFromBoundTypeEnum bounds   = null,
                                                                                                       SyncMapItemResource.HideExpiredTypeEnum hideExpired = null,
                                                                                                       int?pageSize             = null,
                                                                                                       long?limit               = null,
                                                                                                       ITwilioRestClient client = null)
        {
            var options = new ReadSyncMapItemOptions(pathServiceSid, pathMapSid)
            {
                Order = order, From = from, Bounds = bounds, HideExpired = hideExpired, PageSize = pageSize, Limit = limit
            };

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