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