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 { #region Action /// /// Get the name of this action, i.e. "ChangeMonitor". /// public override string Action { get { return "ChangeMonitor"; } } #endregion #region Channel /// /// Get/Set the name of the monitored channel.
/// This property is mandatory. ///
public string Channel { get; set; } #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; set; } #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) { Channel = channel; File = file; } #endregion } }