コード例 #1
0
        /// <summary>
        /// Fetch the forms for a specific type.
        /// </summary>
        /// <param name="pathType"> The Type of this Form </param>
        /// <param name="client"> Client to make requests to Twilio </param>
        /// <returns> Task that resolves to A single instance of Form </returns>
        public static async System.Threading.Tasks.Task <FormResource> FetchAsync(FormResource.FormTypesEnum pathType,
                                                                                  ITwilioRestClient client = null)
        {
            var options = new FetchFormOptions(pathType);

            return(await FetchAsync(options, client));
        }
コード例 #2
0
        /// <summary>
        /// Fetch the forms for a specific type.
        /// </summary>
        /// <param name="pathType"> The Type of this Form </param>
        /// <param name="client"> Client to make requests to Twilio </param>
        /// <returns> A single instance of Form </returns>
        public static FormResource Fetch(FormResource.FormTypesEnum pathType, ITwilioRestClient client = null)
        {
            var options = new FetchFormOptions(pathType);

            return(Fetch(options, client));
        }
コード例 #3
0
ファイル: FormOptions.cs プロジェクト: saqibs98/twilio-csharp
 /// <summary>
 /// Construct a new FetchFormOptions
 /// </summary>
 /// <param name="pathFormType"> The Type of this Form </param>
 public FetchFormOptions(FormResource.FormTypesEnum pathFormType)
 {
     PathFormType = pathFormType;
 }