Exemplo n.º 1
0
        /// <summary>
        /// Create a new End User.
        /// </summary>
        /// <param name="friendlyName"> The string that you assigned to describe the resource </param>
        /// <param name="type"> The type of end user of the Bundle resource </param>
        /// <param name="attributes"> The set of parameters that compose the End User resource </param>
        /// <param name="client"> Client to make requests to Twilio </param>
        /// <returns> A single instance of EndUser </returns>
        public static EndUserResource Create(string friendlyName,
                                             EndUserResource.TypeEnum type,
                                             object attributes        = null,
                                             ITwilioRestClient client = null)
        {
            var options = new CreateEndUserOptions(friendlyName, type)
            {
                Attributes = attributes
            };

            return(Create(options, client));
        }
Exemplo n.º 2
0
        /// <summary>
        /// Create a new End User.
        /// </summary>
        /// <param name="friendlyName"> The string that you assigned to describe the resource </param>
        /// <param name="type"> The type of end user of the Bundle resource </param>
        /// <param name="attributes"> The set of parameters that compose the End User resource </param>
        /// <param name="client"> Client to make requests to Twilio </param>
        /// <returns> Task that resolves to A single instance of EndUser </returns>
        public static async System.Threading.Tasks.Task <EndUserResource> CreateAsync(string friendlyName,
                                                                                      EndUserResource.TypeEnum type,
                                                                                      object attributes        = null,
                                                                                      ITwilioRestClient client = null)
        {
            var options = new CreateEndUserOptions(friendlyName, type)
            {
                Attributes = attributes
            };

            return(await CreateAsync(options, client));
        }
Exemplo n.º 3
0
 /// <summary>
 /// Construct a new CreateEndUserOptions
 /// </summary>
 /// <param name="friendlyName"> The string that you assigned to describe the resource </param>
 /// <param name="type"> The type of end user of the Bundle resource </param>
 public CreateEndUserOptions(string friendlyName, EndUserResource.TypeEnum type)
 {
     FriendlyName = friendlyName;
     Type         = type;
 }