using System; namespace Asterisk.NET.Manager.Action { /// /// The ZapDialOffhookAction dials a number on a zap channel while offhook. /// public class ZapDialOffhookAction : ManagerAction { private int zapChannel; private string number; /// /// Get the name of this action, i.e. "ZapDialOffhook". /// override public string Action { get { return "ZapDialOffhook"; } } /// /// Get/Set the number of the zap channel.
/// This property is mandatory. ///
public int ZapChannel { get { return this.zapChannel; } set { this.zapChannel = value; } } /// /// Get/Set the number to dial.
/// This property is mandatory. ///
public string Number { get { return this.number; } set { this.number = value; } } /// Creates a new empty ZapDialOffhookAction. public ZapDialOffhookAction() { } /// /// Creates a new ZapDialOffhookAction that dials the given number on the given zap channel. /// public ZapDialOffhookAction(int zapChannel, string number) { this.zapChannel = zapChannel; this.number = number; } } }