asternet/Asterisk.2013/Asterisk.NET/Manager/Event/HangupEvent.cs

34 lines
740 B
C#
Raw Normal View History

namespace Asterisk.NET.Manager.Event
{
/// <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)
{
}
}
}