/// <summary> /// create /// </summary> /// <param name="pathServiceSid"> The SID of the Service to create the resource under </param> /// <param name="friendlyName"> A string to describe the new resource </param> /// <param name="uniqueName"> An application-defined string that uniquely identifies the resource </param> /// <param name="attributes"> A valid JSON string that contains application-specific data </param> /// <param name="type"> The visibility of the channel </param> /// <param name="client"> Client to make requests to Twilio </param> /// <returns> A single instance of Channel </returns> public static ChannelResource Create(string pathServiceSid, string friendlyName = null, string uniqueName = null, string attributes = null, ChannelResource.ChannelTypeEnum type = null, ITwilioRestClient client = null) { var options = new CreateChannelOptions(pathServiceSid) { FriendlyName = friendlyName, UniqueName = uniqueName, Attributes = attributes, Type = type }; return(Create(options, client)); }
/// <summary> /// create /// </summary> /// <param name="pathServiceSid"> The SID of the Service to create the resource under </param> /// <param name="friendlyName"> A string to describe the new resource </param> /// <param name="uniqueName"> An application-defined string that uniquely identifies the resource </param> /// <param name="attributes"> A valid JSON string that contains application-specific data </param> /// <param name="type"> The visibility of the channel </param> /// <param name="client"> Client to make requests to Twilio </param> /// <returns> Task that resolves to A single instance of Channel </returns> public static async System.Threading.Tasks.Task <ChannelResource> CreateAsync(string pathServiceSid, string friendlyName = null, string uniqueName = null, string attributes = null, ChannelResource.ChannelTypeEnum type = null, ITwilioRestClient client = null) { var options = new CreateChannelOptions(pathServiceSid) { FriendlyName = friendlyName, UniqueName = uniqueName, Attributes = attributes, Type = type }; return(await CreateAsync(options, client)); }