Merge pull request #87 from Deantwo/patch-1

QueuePenaltyAction Without Queue Argument
This commit is contained in:
Ben Merrills 2017-03-17 10:52:22 +00:00 committed by GitHub
commit fd6cdce95c

View file

@ -12,9 +12,20 @@
/// <summary> /// <summary>
/// Set the penalty for a queue member. /// Set the penalty for a queue member.
/// </summary> /// </summary>
/// <param name="interface"></param> /// <param name="interface">The interface (tech/name) of the member whose penalty to change.</param>
/// <param name="penalty"></param> /// <param name="penalty">The new penalty (number) for the member. Must be nonnegative.</param>
/// <param name="queue"></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>
public QueuePenaltyAction(string @interface, string penalty, string queue) public QueuePenaltyAction(string @interface, string penalty, string queue)
{ {
Interface = @interface; Interface = @interface;
@ -27,10 +38,19 @@
get { return "QueuePenalty"; } get { return "QueuePenalty"; }
} }
/// <summary>
/// The interface (tech/name) of the member whose penalty to change.
/// </summary>
public string Interface { get; set; } public string Interface { get; set; }
/// <summary>
/// The new penalty (number) for the member. Must be nonnegative.
/// </summary>
public string Penalty { get; set; } 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>
public string Queue { get; set; } public string Queue { get; set; }
} }
} }