/// <summary>
 /// Initializes a new instance of the <see cref="CreateExtensionParams" /> class.
 /// </summary>
 /// <param name="Voicemail">Voicemail.</param>
 /// <param name="CallNotifications">CallNotifications.</param>
 /// <param name="CallerId">Caller ID.</param>
 /// <param name="UsageType">Extension type.</param>
 /// <param name="Extension">Extension number (auto-generated if empty).</param>
 /// <param name="IncludeInDirectory">Include in dial-by-name directory.</param>
 /// <param name="Name">Name (auto-generated if empty).</param>
 /// <param name="FullName">Contact name.</param>
 /// <param name="Timezone">Timezone.</param>
 /// <param name="NameGreeting">Recording lookup object.</param>
 /// <param name="LocalAreaCode">Local area code.</param>
 /// <param name="EnableOutboundCalls">Enable outgoing calls.</param>
 /// <param name="EnableCallWaiting">Enable Call Waiting.</param>
 public CreateExtensionParams(VoicemailInput Voicemail = default(VoicemailInput), CallNotifications CallNotifications = default(CallNotifications), string CallerId = default(string), string UsageType = default(string), int?Extension = default(int?), string IncludeInDirectory = default(string), string Name = default(string), string FullName = default(string), string Timezone = default(string), Object NameGreeting = default(Object), string LocalAreaCode = default(string), string EnableOutboundCalls = default(string), string EnableCallWaiting = default(string))
 {
     this.Voicemail          = Voicemail;
     this.CallNotifications  = CallNotifications;
     this.CallerId           = CallerId;
     this.UsageType          = UsageType;
     this.Extension          = Extension;
     this.IncludeInDirectory = IncludeInDirectory;
     this.Name                = Name;
     this.FullName            = FullName;
     this.Timezone            = Timezone;
     this.NameGreeting        = NameGreeting;
     this.LocalAreaCode       = LocalAreaCode;
     this.EnableOutboundCalls = EnableOutboundCalls;
     this.EnableCallWaiting   = EnableCallWaiting;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CreatePhoneNumberParams" /> class.
 /// </summary>
 /// <param name="PhoneNumber">Phone number.</param>
 /// <param name="Route">Route lookup object.</param>
 /// <param name="Name">Phone Name.</param>
 /// <param name="BlockIncoming">Block incoming calls.</param>
 /// <param name="BlockAnonymous">Block anonymous calls.</param>
 /// <param name="CallerId">CallerId.</param>
 /// <param name="SmsForwarding">SmsForwarding.</param>
 /// <param name="CallNotifications">CallNotifications.</param>
 public CreatePhoneNumberParams(Object PhoneNumber = default(Object), Object Route = default(Object), string Name = default(string), string BlockIncoming = default(string), string BlockAnonymous = default(string), CallerIdPhoneNumber CallerId = default(CallerIdPhoneNumber), SmsForwardingParams SmsForwarding = default(SmsForwardingParams), CallNotifications CallNotifications = default(CallNotifications))
 {
     this.PhoneNumber       = PhoneNumber;
     this.Route             = Route;
     this.Name              = Name;
     this.BlockIncoming     = BlockIncoming;
     this.BlockAnonymous    = BlockAnonymous;
     this.CallerId          = CallerId;
     this.SmsForwarding     = SmsForwarding;
     this.CallNotifications = CallNotifications;
 }
예제 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PhoneNumberFull" /> class.
 /// </summary>
 /// <param name="Id">Integer Phone number ID. This is the internal Phone.com ID for this number, not the phone number itself. Read-only..</param>
 /// <param name="Name">Name.</param>
 /// <param name="PhoneNumber">Phone number, in E.164 format.</param>
 /// <param name="BlockIncoming">Whether to block incoming calls. Boolean..</param>
 /// <param name="BlockAnonymous">Whether to block anonymous calls. Boolean..</param>
 /// <param name="Route">The Route assigned to handle incoming calls for this number, if any. Output is a Route Summary Object, or NULL if not set. Input can be a Route Lookup Object or NULL to unset..</param>
 /// <param name="CallerId">CallerId.</param>
 /// <param name="SmsForwarding">SmsForwarding.</param>
 /// <param name="CallNotifications">CallNotifications.</param>
 public PhoneNumberFull(int?Id = default(int?), string Name = default(string), string PhoneNumber = default(string), bool?BlockIncoming = default(bool?), bool?BlockAnonymous = default(bool?), RouteSummary Route = default(RouteSummary), CallerIdPhoneNumber CallerId = default(CallerIdPhoneNumber), SmsForwarding SmsForwarding = default(SmsForwarding), CallNotifications CallNotifications = default(CallNotifications))
 {
     this.Id                = Id;
     this.Name              = Name;
     this.PhoneNumber       = PhoneNumber;
     this.BlockIncoming     = BlockIncoming;
     this.BlockAnonymous    = BlockAnonymous;
     this.Route             = Route;
     this.CallerId          = CallerId;
     this.SmsForwarding     = SmsForwarding;
     this.CallNotifications = CallNotifications;
 }