using System; namespace AsterNET.Manager.Action { /// /// The ChangeMonitorAction changes the monitoring filename of a channel. /// It has no effect if the channel is not monitored.
/// It is implemented in res/res_monitor.c ///
public class ChangeMonitorAction : ManagerAction { private string channel; private string file; #region Action /// /// Get the name of this action, i.e. "ChangeMonitor". /// override public string Action { get { return "ChangeMonitor"; } } #endregion #region Channel /// /// Get/Set the name of the monitored channel.
/// This property is mandatory. ///
public string Channel { get { return this.channel; } set { this.channel = value; } } #endregion #region File /// /// Get/Set the name of the file to which the voice data is written.
/// This property is mandatory. ///
public string File { get { return this.file; } set { this.file = value; } } #endregion #region ChangeMonitorAction() /// /// Creates a new empty ChangeMonitorAction. /// public ChangeMonitorAction() { } #endregion #region ChangeMonitorAction(string channel, string file) /// /// Creates a new ChangeMonitorAction that causes monitoring data for the /// given channel to be written to the given file(s). /// /// the name of the channel that is monitored /// the (base) name of the file(s) to which the voice data is written public ChangeMonitorAction(string channel, string file) { this.channel = channel; this.file = file; } #endregion } }