2014-01-08 14:16:39 +00:00
|
|
|
using AsterNET.Manager.Action;
|
2015-01-03 15:37:29 +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
|
2013-01-18 15:55:50 +00:00
|
|
|
{
|
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; }
|
2013-01-18 15:55:50 +00:00
|
|
|
|
2015-01-03 15:37:29 +00:00
|
|
|
int Hash { get; set; }
|
2013-01-18 15:55:50 +00:00
|
|
|
|
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);
|
2013-01-18 15:55:50 +00:00
|
|
|
|
2015-01-03 15:37:29 +00:00
|
|
|
void Free();
|
|
|
|
}
|
|
|
|
}
|