asternet/Asterisk.2013/Asterisk.NET/Manager/IResponseHandler.cs

24 lines
652 B
C#
Raw Normal View History

2014-01-08 14:16:39 +00:00
using AsterNET.Manager.Action;
2015-01-03 15:37:29 +00:00
using AsterNET.Manager.Response;
2014-01-08 14:16:39 +00:00
namespace AsterNET.Manager
{
2015-01-03 15:37:29 +00:00
/// <summary>
/// An Interface to handle responses received from an asterisk server.
/// </summary>
/// <seealso cref="ManagerResponse" />
public interface IResponseHandler
{
ManagerAction Action { get; }
2015-01-03 15:37:29 +00:00
int Hash { get; set; }
2015-01-03 15:37:29 +00:00
/// <summary>
/// This method is called when a response is received.
/// </summary>
/// <param name="response">the response received</param>
void HandleResponse(ManagerResponse response);
2015-01-03 15:37:29 +00:00
void Free();
}
}