2014-01-08 14:16:39 +00:00
|
|
|
namespace AsterNET.Manager.Action
|
2013-01-18 15:55:50 +00:00
|
|
|
{
|
2015-01-03 15:37:29 +00:00
|
|
|
/// <summary>
|
|
|
|
/// The ChangeMonitorAction changes the monitoring filename of a channel.
|
|
|
|
/// It has no effect if the channel is not monitored.<br />
|
2015-01-04 14:26:32 +00:00
|
|
|
/// It is implemented in res/res_monitor.c
|
2015-01-03 15:37:29 +00:00
|
|
|
/// </summary>
|
|
|
|
public class ChangeMonitorAction : ManagerAction
|
|
|
|
{
|
|
|
|
#region Action
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Get the name of this action, i.e. "ChangeMonitor".
|
|
|
|
/// </summary>
|
|
|
|
public override string Action
|
|
|
|
{
|
|
|
|
get { return "ChangeMonitor"; }
|
|
|
|
}
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
#region Channel
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Get/Set the name of the monitored channel.<br />
|
|
|
|
/// This property is mandatory.
|
|
|
|
/// </summary>
|
|
|
|
public string Channel { get; set; }
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
#region File
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Get/Set the name of the file to which the voice data is written.<br />
|
|
|
|
/// This property is mandatory.
|
|
|
|
/// </summary>
|
|
|
|
public string File { get; set; }
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
#region ChangeMonitorAction()
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Creates a new empty ChangeMonitorAction.
|
|
|
|
/// </summary>
|
|
|
|
public ChangeMonitorAction()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
#region ChangeMonitorAction(string channel, string file)
|
2013-01-18 15:55:50 +00:00
|
|
|
|
2015-01-03 15:37:29 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Creates a new ChangeMonitorAction that causes monitoring data for the
|
|
|
|
/// given channel to be written to the given file(s).
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="channel">the name of the channel that is monitored</param>
|
|
|
|
/// <param name="file">the (base) name of the file(s) to which the voice data is written</param>
|
|
|
|
public ChangeMonitorAction(string channel, string file)
|
|
|
|
{
|
|
|
|
Channel = channel;
|
|
|
|
File = file;
|
|
|
|
}
|
2013-01-18 15:55:50 +00:00
|
|
|
|
2015-01-03 15:37:29 +00:00
|
|
|
#endregion
|
|
|
|
}
|
2013-01-18 15:55:50 +00:00
|
|
|
}
|