asternet/Asterisk.2013/Asterisk.NET/Manager/Action/QueuePenaltyAction.cs

57 lines
2.1 KiB
C#
Raw Normal View History

2015-01-03 15:37:29 +00:00
namespace AsterNET.Manager.Action
2014-01-08 14:16:39 +00:00
{
public class QueuePenaltyAction : ManagerAction
{
/// <summary>
2015-01-03 15:37:29 +00:00
/// Set the penalty for a queue member.
2014-01-08 14:16:39 +00:00
/// </summary>
public QueuePenaltyAction()
{
}
/// <summary>
2015-01-03 15:37:29 +00:00
/// Set the penalty for a queue member.
2014-01-08 14:16:39 +00:00
/// </summary>
/// <param name="interface">The interface (tech/name) of the member whose penalty to change.</param>
/// <param name="penalty">The new penalty (number) for the member. Must be nonnegative.</param>
public QueuePenaltyAction(string @interface, string penalty)
{
Interface = @interface;
Penalty = penalty;
}
/// <summary>
/// Set the penalty for a queue member.
/// </summary>
/// <param name="interface">The interface (tech/name) of the member whose penalty to change.</param>
/// <param name="penalty">The new penalty (number) for the member. Must be nonnegative.</param>
/// <param name="queue">If specified, only set the penalty for the member of this queue. Otherwise, set the penalty for the member in all queues to which the member belongs.</param>
2014-01-08 14:16:39 +00:00
public QueuePenaltyAction(string @interface, string penalty, string queue)
{
2015-01-03 15:37:29 +00:00
Interface = @interface;
Penalty = penalty;
Queue = queue;
2014-01-08 14:16:39 +00:00
}
public override string Action
{
get { return "QueuePenalty"; }
}
/// <summary>
/// The interface (tech/name) of the member whose penalty to change.
/// </summary>
2015-01-03 15:37:29 +00:00
public string Interface { get; set; }
/// <summary>
/// The new penalty (number) for the member. Must be nonnegative.
/// </summary>
2015-01-03 15:37:29 +00:00
public string Penalty { get; set; }
/// <summary>
/// If specified, only set the penalty for the member of this queue. Otherwise, set the penalty for the member in all queues to which the member belongs.
/// </summary>
2015-01-03 15:37:29 +00:00
public string Queue { get; set; }
2014-01-08 14:16:39 +00:00
}
}