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

34 lines
744 B
C#

namespace AsterNET.Manager.Event
{
/// <summary>
/// A RenameEvent is triggered when the name of a channel is changed.<br/>
/// It is implemented in channel.c
/// </summary>
public class RenameEvent : ManagerEvent
{
protected internal string oldName;
protected internal string newName;
/// <summary>
/// Get/Set the new name of the channel.
/// </summary>
public string NewName
{
get { return newName; }
set { this.newName = value; }
}
/// <summary>
/// Get/Set the old name of the channel.
/// </summary>
public string OldName
{
get { return oldName; }
set { this.oldName = value; }
}
public RenameEvent(ManagerConnection source)
: base(source)
{
}
}
}