/// <summary>
 /// Initializes a new instance of the <see cref="MenuFull" /> class.
 /// </summary>
 /// <param name="Id">Integer Menu ID. Read-only..</param>
 /// <param name="Name">Name. Required. Unique..</param>
 /// <param name="AllowExtensionDial">Boolean. Determines whether a caller can enter an extension number to bypass the menu..</param>
 /// <param name="KeypressWaitTime">Number of seconds to wait for the caller to choose a menu option. Must be between 1 and 5 seconds..</param>
 /// <param name="Greeting">Greeting that is played when a caller enters a menu. Output is a Media Summary Object. Input must be a Media Lookup Object. Must refer to a media recording that has is_hold_music set to FALSE..</param>
 /// <param name="KeypressError">Message that is played when the caller makes a keypress error. Output is a Media Summary Object. Input must be a Media Lookup Object. Must refer to a media recording that has is_hold_music set to FALSE..</param>
 /// <param name="TimeoutHandler">Route that will be entered when the caller fails to choose a menu option within the allotted time. Output is a Route Summary Object if the route is named, otherwise the Full Route Object will be shown. Input must be a Route Lookup Object pointing to a named route..</param>
 /// <param name="Options">Array of menu option objects. See below for details..</param>
 public MenuFull(int?Id = default(int?), string Name = default(string), bool?AllowExtensionDial = default(bool?), int?KeypressWaitTime = default(int?), MediaSummary Greeting = default(MediaSummary), MediaSummary KeypressError = default(MediaSummary), RouteSummary TimeoutHandler = default(RouteSummary), List <Option> Options = default(List <Option>))
 {
     this.Id   = Id;
     this.Name = Name;
     this.AllowExtensionDial = AllowExtensionDial;
     this.KeypressWaitTime   = KeypressWaitTime;
     this.Greeting           = Greeting;
     this.KeypressError      = KeypressError;
     this.TimeoutHandler     = TimeoutHandler;
     this.Options            = Options;
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ExtensionFull" /> class.
 /// </summary>
 /// <param name="Id">ID of the extension. This is the internal Phone.com ID, not the extension number callers may dial..</param>
 /// <param name="Name">User-supplied name for the extension. On POST, leaving this empty will result in an auto-generated value. On PUT, this field is required..</param>
 /// <param name="Extension">Extension number that callers may dial. On POST, leaving this empty will result in an auto-generated value. On PUT, this field is required..</param>
 /// <param name="VoipId">API Account ID. Optional, object may return the voip_id..</param>
 /// <param name="FullName">Full name of the individual or department to which this extension is assigned.</param>
 /// <param name="UsageType">Can be \&quot;limited\&quot; or \&quot;unlimited\&quot;. In most cases, changing this will affect your monthly bill. Please see our Control Panel or contact Customer Service for pricing..</param>
 /// <param name="DeviceMembership">DeviceMembership.</param>
 /// <param name="Timezone">Time zone. Can be in any commonly recognized format, such as \&quot;America/Los_Angeles\&quot;..</param>
 /// <param name="NameGreeting">Greeting that communicates the extension&#39;s name. Output is a Greeting Summary Object. Input must be a Greeting Lookup Object..</param>
 /// <param name="IncludeInDirectory">Whether this extension should be included in the dial-by-name directory for this account. Boolean..</param>
 /// <param name="CallerId">Phone number to use as Caller ID for outgoing calls. Must be a phone number belonging to this account, or one of any additional authorized phone numbers. You can use our List Caller Ids service to see a current list. To unassign, you may set this to \&quot;private\&quot;, NULL, or an empty string..</param>
 /// <param name="LocalAreaCode">For outbound calls, this is the North American area code that this extension is calling from..</param>
 /// <param name="EnableCallWaiting">Whether Call Waiting is enabled. Boolean. Default is TRUE..</param>
 /// <param name="EnableOutboundCalls">Whether outgoing calls are enabled. Boolean. Default is TRUE..</param>
 /// <param name="Voicemail">Voicemail.</param>
 /// <param name="CallNotifications">CallNotifications.</param>
 /// <param name="Route">Route which will handle incoming voice and fax calls. Only valid on PUT requests, not POST. Output is a Route Summary Object if the route is named, otherwise the Full Route Object will be shown. Input must be a Route Lookup Object pointing to a named route. Route must belong to this extension already..</param>
 public ExtensionFull(int?Id = default(int?), string Name = default(string), int?Extension = default(int?), int?VoipId = default(int?), string FullName = default(string), string UsageType = default(string), DeviceMembership DeviceMembership = default(DeviceMembership), string Timezone = default(string), MediaSummary NameGreeting = default(MediaSummary), bool?IncludeInDirectory = default(bool?), string CallerId = default(string), string LocalAreaCode = default(string), bool?EnableCallWaiting = default(bool?), bool?EnableOutboundCalls = default(bool?), Voicemail Voicemail = default(Voicemail), Notification CallNotifications = default(Notification), RouteSummary Route = default(RouteSummary))
 {
     this.Id                  = Id;
     this.Name                = Name;
     this.Extension           = Extension;
     this.VoipId              = VoipId;
     this.FullName            = FullName;
     this.UsageType           = UsageType;
     this.DeviceMembership    = DeviceMembership;
     this.Timezone            = Timezone;
     this.NameGreeting        = NameGreeting;
     this.IncludeInDirectory  = IncludeInDirectory;
     this.CallerId            = CallerId;
     this.LocalAreaCode       = LocalAreaCode;
     this.EnableCallWaiting   = EnableCallWaiting;
     this.EnableOutboundCalls = EnableOutboundCalls;
     this.Voicemail           = Voicemail;
     this.CallNotifications   = CallNotifications;
     this.Route               = Route;
 }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Option" /> class.
 /// </summary>
 /// <param name="Key">Keypad key. Must equal a single digit or the pound sign (\&quot;#\&quot;)..</param>
 /// <param name="Route">Route which will be entered when the user presses the designated key. Output is a Route Summary Object if the route is named, otherwise the Full Route Object will be shown. Input must be a Route Lookup Object pointing to a named route..</param>
 public Option(string Key = default(string), RouteSummary Route = default(RouteSummary))
 {
     this.Key   = Key;
     this.Route = Route;
 }
Exemple #4
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;
 }