namespace AsterNET.Manager.Action
{
public class QueuePenaltyAction : ManagerAction
{
///
/// Set the penalty for a queue member.
///
public QueuePenaltyAction()
{
}
///
/// Set the penalty for a queue member.
///
/// The interface (tech/name) of the member whose penalty to change.
/// The new penalty (number) for the member. Must be nonnegative.
public QueuePenaltyAction(string @interface, string penalty)
{
Interface = @interface;
Penalty = penalty;
}
///
/// Set the penalty for a queue member.
///
/// The interface (tech/name) of the member whose penalty to change.
/// The new penalty (number) for the member. Must be nonnegative.
/// 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.
public QueuePenaltyAction(string @interface, string penalty, string queue)
{
Interface = @interface;
Penalty = penalty;
Queue = queue;
}
public override string Action
{
get { return "QueuePenalty"; }
}
///
/// The interface (tech/name) of the member whose penalty to change.
///
public string Interface { get; set; }
///
/// The new penalty (number) for the member. Must be nonnegative.
///
public string Penalty { get; set; }
///
/// 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.
///
public string Queue { get; set; }
}
}