2013-01-18 15:55:50 +00:00
|
|
|
using System.Collections.Generic;
|
|
|
|
|
2014-01-08 14:16:39 +00:00
|
|
|
namespace AsterNET.Manager.Response
|
2013-01-18 15:55:50 +00:00
|
|
|
{
|
2015-01-03 15:37:29 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Corresponds to a CommandAction.<br />
|
|
|
|
/// Asterisk's handling of the command action is generelly quite hairy.
|
|
|
|
/// It sends a "Response: Follows" line followed by the raw output of the command including empty lines.
|
|
|
|
/// At the end of the command output a line containing "--END COMMAND--" is sent.
|
|
|
|
/// The reader parses this response into a CommandResponse object to hide these details.
|
|
|
|
/// </summary>
|
|
|
|
/// <seealso cref="Manager.Action.CommandAction" />
|
|
|
|
public class CommandResponse : ManagerResponse
|
|
|
|
{
|
|
|
|
protected internal List<string> result;
|
2013-01-18 15:55:50 +00:00
|
|
|
|
2015-01-03 15:37:29 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Get/Set a List containing strings representing the lines returned by the CLI command.
|
|
|
|
/// </summary>
|
|
|
|
public List<string> Result
|
|
|
|
{
|
|
|
|
get { return result; }
|
|
|
|
set { this.result = value; }
|
|
|
|
}
|
|
|
|
}
|
2013-01-18 15:55:50 +00:00
|
|
|
}
|