/// <summary> /// Fetch the forms for a specific form type. /// </summary> /// <param name="pathFormType"> The Form 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.FormTypeEnum pathFormType, ITwilioRestClient client = null) { var options = new FetchFormOptions(pathFormType); return(await FetchAsync(options, client)); }
/// <summary> /// Construct a new FetchFormOptions /// </summary> /// <param name="pathFormType"> The Form Type of this Form </param> public FetchFormOptions(FormResource.FormTypeEnum pathFormType) { PathFormType = pathFormType; }
/// <summary> /// Fetch the forms for a specific form type. /// </summary> /// <param name="pathFormType"> The Form 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.FormTypeEnum pathFormType, ITwilioRestClient client = null) { var options = new FetchFormOptions(pathFormType); return(Fetch(options, client)); }