namespace AsterNET.Manager.Event
{
///
/// Abstract base class providing common properties for HangupEvent, NewChannelEvent and NewStateEvent.
///
public abstract class AbstractChannelEvent : ManagerEvent
{
private string channelState;
private string channelStateDesc;
private string callerId;
private string callerIdNum;
private string callerIdName;
private string accountCode;
private string state;
private string connectedLineNum;
private string connectedLineName;
///
/// Get/Set Channel State
///
public string ChannelState
{
get { return this.channelState; }
set { this.channelState = value; }
}
///
/// Get/Set Channel State Description
///
public string ChannelStateDesc
{
get { return this.channelStateDesc; }
set { this.channelStateDesc = value; }
}
///
/// Get/Set the Caller*ID of the channel if set or <unknown> if none has been set.
///
public string CallerId
{
get { return callerId; }
set { this.callerId = value; }
}
///
/// Get/Set the Caller*ID of the channel if set or <unknown> if none has been set.
///
public string CallerIdNum
{
get { return callerIdNum; }
set { this.callerIdNum = value; }
}
///
/// Get/Set the Caller*ID Name of the channel if set or ≶unknown> if none has been set.
///
public string CallerIdName
{
get { return callerIdName; }
set { this.callerIdName = value; }
}
///
/// Get/Set the (new) state of the channel.
/// The following states are used:
///
/// - Down
/// - OffHook
/// - Dialing
/// - Ring
/// - Ringing
/// - Up
/// - Busy
///
public string State
{
get { return this.state; }
set { this.state = value; }
}
///
/// Get/Set channel AccountCode
///
public string AccountCode
{
get { return this.accountCode; }
set { this.accountCode = value; }
}
public string Connectedlinenum
{
get { return connectedLineNum; }
set { connectedLineNum = value; }
}
public string ConnectedLineName
{
get { return connectedLineName; }
set { connectedLineName = value; }
}
public AbstractChannelEvent(ManagerConnection source)
: base(source)
{
}
}
}