namespace AsterNET.Manager.Action
{
///
/// The ZapDialOffhookAction dials a number on a zap channel while offhook.
///
public class ZapDialOffhookAction : ManagerAction
{
/// 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;
}
///
/// Get the name of this action, i.e. "ZapDialOffhook".
///
public override string Action
{
get { return "ZapDialOffhook"; }
}
///
/// Get/Set the number of the zap channel.
/// This property is mandatory.
///
public int ZapChannel { get; set; }
///
/// Get/Set the number to dial.
/// This property is mandatory.
///
public string Number { get; set; }
}
}