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

44 lines
1.1 KiB
C#
Raw Normal View History

2014-01-08 14:16:39 +00:00
using AsterNET.Manager.Response;
2014-01-08 14:16:39 +00:00
namespace AsterNET.Manager.Action
{
2015-01-03 15:37:29 +00:00
/// <summary>
/// The GetConfigAction sends a GetConfig command to the asterisk server.
/// </summary>
public class GetConfigAction : ManagerActionResponse
{
/// <summary>
/// Creates a new GetConfigAction.
/// </summary>
public GetConfigAction()
{
}
2015-01-03 15:37:29 +00:00
/// <summary>
/// Get the name of this action.
/// </summary>
/// <param name="filename">the configuration filename.</param>
public GetConfigAction(string filename)
{
Filename = filename;
}
2015-01-03 15:37:29 +00:00
/// <summary>
/// Get the name of this action.
/// </summary>
public override string Action
{
get { return "GetConfig"; }
}
2015-01-03 15:37:29 +00:00
/// <summary>
/// Get/Set the configuration filename.
/// </summary>
public string Filename { get; set; }
2015-01-03 15:37:29 +00:00
public override object ActionCompleteResponseClass()
{
return new GetConfigResponse();
}
}
}