/// <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)); }
/// <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)); }
/// <summary> /// Construct a new FetchFormOptions /// </summary> /// <param name="pathFormType"> The Type of this Form </param> public FetchFormOptions(FormResource.FormTypesEnum pathFormType) { PathFormType = pathFormType; }