From 0d00f7ccd716d44b8c66dadd84d997b472fa3fdf Mon Sep 17 00:00:00 2001 From: Deantwo Date: Fri, 17 Mar 2017 09:58:07 +0100 Subject: [PATCH] QueuePenaltyAction Without Queue Argument The `Queue` argument is optional. As seen here: https://wiki.asterisk.org/wiki/display/AST/ManagerAction_QueuePenalty Added a new constructor without the `queue` parameter. Added description to parameters and properties. --- .../Manager/Action/QueuePenaltyAction.cs | 34 +++++++++++++++---- 1 file changed, 27 insertions(+), 7 deletions(-) diff --git a/Asterisk.2013/Asterisk.NET/Manager/Action/QueuePenaltyAction.cs b/Asterisk.2013/Asterisk.NET/Manager/Action/QueuePenaltyAction.cs index 302fbc5..e4ea44b 100644 --- a/Asterisk.2013/Asterisk.NET/Manager/Action/QueuePenaltyAction.cs +++ b/Asterisk.2013/Asterisk.NET/Manager/Action/QueuePenaltyAction.cs @@ -12,9 +12,20 @@ /// /// 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; @@ -26,11 +37,20 @@ { 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; } } -} \ No newline at end of file +}