2014-01-08 14:16:39 +00:00
|
|
|
namespace AsterNET.Manager.Event
|
2013-01-18 15:55:50 +00:00
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// A HangupEvent is triggered when a channel is hung up.<br/>
|
|
|
|
/// It is implemented in <code>channel.c</code>
|
|
|
|
/// </summary>
|
|
|
|
public class HangupEvent : AbstractChannelEvent
|
|
|
|
{
|
|
|
|
private int cause;
|
|
|
|
private string causeTxt;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Get/Set the cause of the hangup.
|
|
|
|
/// </summary>
|
|
|
|
public int Cause
|
|
|
|
{
|
|
|
|
get { return cause; }
|
|
|
|
set { this.cause = value; }
|
|
|
|
}
|
|
|
|
/// <summary>
|
|
|
|
/// Get/Set the textual representation of the hangup cause.
|
|
|
|
/// </summary>
|
|
|
|
public string CauseTxt
|
|
|
|
{
|
|
|
|
get { return causeTxt; }
|
|
|
|
set { this.causeTxt = value; }
|
|
|
|
}
|
|
|
|
|
|
|
|
public HangupEvent(ManagerConnection source)
|
|
|
|
: base(source)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|