2013-01-18 15:55:50 +00:00
|
|
|
using System;
|
|
|
|
|
2014-01-08 14:16:39 +00:00
|
|
|
namespace AsterNET.Manager.Action
|
2013-01-18 15:55:50 +00:00
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// The ZapDNDOnAction switches a zap channel "Do Not Disturb" status on.
|
|
|
|
/// </summary>
|
|
|
|
public class ZapDNDOnAction : ManagerAction
|
|
|
|
{
|
|
|
|
private int zapChannel;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Get the name of this action, i.e. "ZapDNDOn".
|
|
|
|
/// </summary>
|
|
|
|
override public string Action
|
|
|
|
{
|
|
|
|
get { return "ZapDNDOn"; }
|
|
|
|
}
|
|
|
|
/// <summary>
|
|
|
|
/// Get/Set the number of the zap channel to switch to dnd on.<br/>
|
|
|
|
/// This property is mandatory.
|
|
|
|
/// </summary>
|
|
|
|
public int ZapChannel
|
|
|
|
{
|
|
|
|
get { return this.zapChannel; }
|
|
|
|
set { this.zapChannel = value; }
|
|
|
|
}
|
|
|
|
/// <summary>
|
|
|
|
/// Creates a new empty ZapDNDOnAction.
|
|
|
|
/// </summary>
|
|
|
|
public ZapDNDOnAction()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Creates a new ZapDNDOnAction that enables "Do Not Disturb" status for the given zap channel.
|
|
|
|
/// </summary>
|
|
|
|
public ZapDNDOnAction(int zapChannel)
|
|
|
|
{
|
|
|
|
this.zapChannel = zapChannel;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|