asternet/Asterisk.2013/Asterisk.NET/Manager/IResponseHandler.cs
2015-01-03 15:37:29 +00:00

24 lines
652 B
C#

using AsterNET.Manager.Action;
using AsterNET.Manager.Response;
namespace AsterNET.Manager
{
/// <summary>
/// An Interface to handle responses received from an asterisk server.
/// </summary>
/// <seealso cref="ManagerResponse" />
public interface IResponseHandler
{
ManagerAction Action { get; }
int Hash { get; set; }
/// <summary>
/// This method is called when a response is received.
/// </summary>
/// <param name="response">the response received</param>
void HandleResponse(ManagerResponse response);
void Free();
}
}