/// <summary>
 /// Initializes a new instance of the <see cref="RuleSetForwardItem" /> class.
 /// </summary>
 /// <param name="Type">Required. Must equal phone_number or extension..</param>
 /// <param name="Extension">Required if type &#x3D; \&quot;extension\&quot;. Extension that callers should be directed to. Output is an Extension Summary Object. Input must be an Extension Lookup Object..</param>
 /// <param name="Number">Required if type &#x3D; \&quot;phone_number\&quot;. Phone number that callers should be directed to. Must be a string in E.164 format..</param>
 /// <param name="Screening">Boolean. Optional. Default is FALSE. Use this to activate call screening. If TRUE, the timeout on the parent action should be at least 30 seconds. (default to false).</param>
 /// <param name="CallerId">Optional. Must equal calling_number or called_number. Defines which phone number should be used for Caller ID. Default is calling_number. (default to &quot;calling_number&quot;).</param>
 /// <param name="VoiceTag">Optional string. If screening &#x3D; TRUE, this value will be passed into our Text-To-Speech engine and used to inform the caller of who they have reached..</param>
 /// <param name="DistinctiveRing">Optional. Must equal one of: DEFAULT, STYLE_2, STYLE_3, STYLE_4, STYLE_5, STYLE_6, STYLE_7, STYLE_8, or STYLE_9. Identifies the style of ring tone you will hear when an incoming call is waiting..</param>
 public RuleSetForwardItem(string Type = default(string), ExtensionSummary Extension = default(ExtensionSummary), string Number = default(string), bool?Screening = false, string CallerId = "calling_number", string VoiceTag = default(string), string DistinctiveRing = default(string))
 {
     this.Type      = Type;
     this.Extension = Extension;
     this.Number    = Number;
     // use default value if no "Screening" provided
     if (Screening == null)
     {
         this.Screening = false;
     }
     else
     {
         this.Screening = Screening;
     }
     // use default value if no "CallerId" provided
     if (CallerId == null)
     {
         this.CallerId = "calling_number";
     }
     else
     {
         this.CallerId = CallerId;
     }
     this.VoiceTag        = VoiceTag;
     this.DistinctiveRing = DistinctiveRing;
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RouteFull" /> class.
 /// </summary>
 /// <param name="Id">Integer ID. Read-only..</param>
 /// <param name="Name">Name.</param>
 /// <param name="Extension">Extension to which this route belongs. Output is an Extension Summary Object. Input must be an Extension Lookup Object. Optional. Cannot be changed after a route is created..</param>
 /// <param name="Rules">Array of Rule Set Objects. Required. See below for details. When processing incoming calls, the first matching rule set will be used, and all others will be ignored..</param>
 public RouteFull(int?Id = default(int?), string Name = default(string), ExtensionSummary Extension = default(ExtensionSummary), List <RuleSet> Rules = default(List <RuleSet>))
 {
     this.Id        = Id;
     this.Name      = Name;
     this.Extension = Extension;
     this.Rules     = Rules;
 }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RuleSetAction" /> class.
 /// </summary>
 /// <param name="Action">Required..</param>
 /// <param name="Extension">Extension that this action refers to. Output is an Extension Summary Object. Input must be an Extension Lookup Object. Required..</param>
 /// <param name="Items">This action is for forwarding calls to any number of extensions or phone numbers. The forwarding is handled in parallel, meaning that all phone numbers and/or extensions will ring simultaneously. When the call is answered by any single phone number or extension, ringing will stop for all of them. Subsequent actions in this rule set will be performed if the call is not answered before the timeout period is reached, or if it is forwarded to an extension that has its own route and that route does not result in any actions that disconnect the call or take over call handling..</param>
 /// <param name="Timeout">Seconds that our routing engine should wait until moving on. Optional. Must be an integer between 5 and 90. Default is 5 seconds..</param>
 /// <param name="HoldMusic">Hold Music to be played while callers are waiting. Output is a Media Summary Object. Input must be a Media Lookup Object. Optional. Must refer to a media recording that has is_hold_music set to TRUE. Default is to play a standard ring tone..</param>
 /// <param name="Greeting">Greeting that this action refers to. Output is a Media Summary Object. Input must be a Media Lookup Object. Required. Must refer to a media recording that has is_hold_music set to FALSE..</param>
 /// <param name="Duration">Required. Seconds that the caller should be placed on hold before being moved onto the next action. Must be an integer between 1 and 60 seconds..</param>
 /// <param name="Menu">Menu that this action refers to. Required. Output is a Menu Summary Object. Input must be a Menu Lookup Object..</param>
 /// <param name="Queue">Queue that this action refers to. Required. Output is a Queue Summary Object. Input must be a Queue Lookup Object..</param>
 /// <param name="Trunk">Trunk that this action refers to. Required. Output is a Trunk Summary Object. Input must be a Trunk Lookup Object..</param>
 public RuleSetAction(string Action = default(string), ExtensionSummary Extension = default(ExtensionSummary), List <RuleSetForwardItem> Items = default(List <RuleSetForwardItem>), int?Timeout = default(int?), MediaSummary HoldMusic = default(MediaSummary), MediaSummary Greeting = default(MediaSummary), int?Duration = default(int?), MenuSummary Menu = default(MenuSummary), QueueSummary Queue = default(QueueSummary), TrunkSummary Trunk = default(TrunkSummary))
 {
     this.Action    = Action;
     this.Extension = Extension;
     this.Items     = Items;
     this.Timeout   = Timeout;
     this.HoldMusic = HoldMusic;
     this.Greeting  = Greeting;
     this.Duration  = Duration;
     this.Menu      = Menu;
     this.Queue     = Queue;
     this.Trunk     = Trunk;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CallLogFull" /> class.
 /// </summary>
 /// <param name="Id">ID.</param>
 /// <param name="Uuid">Internal system id, may be null.</param>
 /// <param name="Extension">Account extension.</param>
 /// <param name="CallerId">Call made from this phone number.</param>
 /// <param name="CalledNumber">Call made to this phone number.</param>
 /// <param name="StartTime">Call start time.</param>
 /// <param name="CreatedAt">Call log creation time. Same as call end time + time needed to create call log.</param>
 /// <param name="Direction">Call direction: in or out.</param>
 /// <param name="Type">Call type: call, fax, audiogram ....</param>
 /// <param name="CallDuration">Call duration in seconds.</param>
 /// <param name="IsMonitored">Was call being monitored?.</param>
 /// <param name="CallNumber">Internal system call reference number.</param>
 /// <param name="FinalAction">Last action of call flow.</param>
 /// <param name="VoicemailUrl">URL of voicemail if available. User may download the audio via this URL. Empty string if voicemail does not exist.</param>
 /// <param name="VoicemailCpUrl">URL of voicemail if available. User may listen to the audio online via this URL. Empty string if voicemail does not exist.</param>
 /// <param name="VoicemailTranscript">Transcript of voicemail if enabled and available.</param>
 /// <param name="CallRecordingUrl">URL of call recording if available. User may download the audio via this URL. Empty string if call recording does not exist.</param>
 /// <param name="CallRecordingCpUrl">URL of call recording if available. User may listen to the audio online via this URL. Empty string if call recording does not exist.</param>
 /// <param name="Details">A list of call flows from beginning of call to end of call..</param>
 /// <param name="CallerCnam">Internal system caller id / name.</param>
 public CallLogFull(string Id = default(string), string Uuid = default(string), ExtensionSummary Extension = default(ExtensionSummary), string CallerId = default(string), string CalledNumber = default(string), string StartTime = default(string), string CreatedAt = default(string), string Direction = default(string), string Type = default(string), int?CallDuration = default(int?), string IsMonitored = default(string), string CallNumber = default(string), string FinalAction = default(string), string VoicemailUrl = default(string), string VoicemailCpUrl = default(string), string VoicemailTranscript = default(string), string CallRecordingUrl = default(string), string CallRecordingCpUrl = default(string), List <CallDetails> Details = default(List <CallDetails>), string CallerCnam = default(string))
 {
     this.Id                  = Id;
     this.Uuid                = Uuid;
     this.Extension           = Extension;
     this.CallerId            = CallerId;
     this.CalledNumber        = CalledNumber;
     this.StartTime           = StartTime;
     this.CreatedAt           = CreatedAt;
     this.Direction           = Direction;
     this.Type                = Type;
     this.CallDuration        = CallDuration;
     this.IsMonitored         = IsMonitored;
     this.CallNumber          = CallNumber;
     this.FinalAction         = FinalAction;
     this.VoicemailUrl        = VoicemailUrl;
     this.VoicemailCpUrl      = VoicemailCpUrl;
     this.VoicemailTranscript = VoicemailTranscript;
     this.CallRecordingUrl    = CallRecordingUrl;
     this.CallRecordingCpUrl  = CallRecordingCpUrl;
     this.Details             = Details;
     this.CallerCnam          = CallerCnam;
 }
Exemple #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="VoicemailFull" /> class.
 /// </summary>
 /// <param name="Id">Unique Voicemail ID. Read-only..</param>
 /// <param name="DownloadUrl">Name. Required..</param>
 /// <param name="Extension">Extension where the voicemail is saved into..</param>
 /// <param name="From">The caller&#39;s information.</param>
 /// <param name="To">The phone number where the caller is calling.</param>
 /// <param name="IsNew">True when Voicemail is new; False when Voicemail has been listened.</param>
 /// <param name="CreatedAt">Date string representing the UTC time that the object was created in the Phone.com API system..</param>
 /// <param name="Folder">Folder name where voicemail is saved.</param>
 /// <param name="Duration">Length of voicemail in seconds.</param>
 public VoicemailFull(string Id = default(string), string DownloadUrl = default(string), ExtensionSummary Extension = default(ExtensionSummary), FromObject From = default(FromObject), string To = default(string), bool?IsNew = default(bool?), int?CreatedAt = default(int?), string Folder = default(string), int?Duration = default(int?))
 {
     this.Id          = Id;
     this.DownloadUrl = DownloadUrl;
     this.Extension   = Extension;
     this.From        = From;
     this.To          = To;
     this.IsNew       = IsNew;
     this.CreatedAt   = CreatedAt;
     this.Folder      = Folder;
     this.Duration    = Duration;
 }
Exemple #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Member" /> class.
 /// </summary>
 /// <param name="Extension">Extension that this member refers to. Output is an Extension Summary Object. Input must be an Extension Lookup Object..</param>
 /// <param name="PhoneNumber">Phone number.</param>
 public Member(ExtensionSummary Extension = default(ExtensionSummary), string PhoneNumber = default(string))
 {
     this.Extension   = Extension;
     this.PhoneNumber = PhoneNumber;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SmsForwarding" /> class.
 /// </summary>
 /// <param name="Type">Can be \&quot;extension\&quot; or \&quot;application\&quot;.</param>
 /// <param name="Extension">Required if type &#x3D; \&quot;extension\&quot;. Extension that messages should be directed to. Output is an Extension Summary Object. Input must be an Extension Lookup Object..</param>
 /// <param name="Application">Required if type &#x3D; \&quot;application\&quot;. Application that messages should be directed to. Output is an Application Summary Object. Input must be an Application Lookup Object..</param>
 public SmsForwarding(string Type = default(string), ExtensionSummary Extension = default(ExtensionSummary), ApplicationSummary Application = default(ApplicationSummary))
 {
     this.Type        = Type;
     this.Extension   = Extension;
     this.Application = Application;
 }
Exemple #8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Line" /> class.
 /// </summary>
 /// <param name="_Line">Line number.</param>
 /// <param name="Extension">Extensions object that this line number is mapped to..</param>
 public Line(int?_Line = default(int?), ExtensionSummary Extension = default(ExtensionSummary))
 {
     this._Line     = _Line;
     this.Extension = Extension;
 }