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