asternet/Asterisk.2013/Asterisk.NET/Manager/Action/StopMonitorAction.cs
2015-01-03 15:37:29 +00:00

54 lines
1.3 KiB
C#

namespace AsterNET.Manager.Action
{
/// <summary>
/// The StopMonitorAction ends monitoring (recording) a channel.<br />
/// It is implemented in <code>res/res_monitor.c</code>
/// </summary>
public class StopMonitorAction : ManagerAction
{
#region Action
/// <summary>
/// Get the name of this action, i.e. "StopMonitor".
/// </summary>
public override string Action
{
get { return "StopMonitor"; }
}
#endregion
#region Channel
/// <summary>
/// Get/Set the name of the channel to end monitoring.<br />
/// This property is mandatory.
/// </summary>
public string Channel { get; set; }
#endregion
#region StopMonitorAction()
/// <summary>
/// Creates a new empty StopMonitorAction.
/// </summary>
public StopMonitorAction()
{
}
#endregion
#region StopMonitorAction(string channel)
/// <summary>
/// Creates a new StopMonitorAction that ends monitoring of the given channel.
/// </summary>
public StopMonitorAction(string channel)
{
this.Channel = channel;
}
#endregion
}
}