Update QueueCallerJoinEvent.cs

Inheritance from JoinEvent.
This commit is contained in:
Deantwo 2017-12-21 16:02:23 +01:00 committed by GitHub
parent b3cd107043
commit d055641b18
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,15 +1,27 @@
namespace AsterNET.Manager.Event namespace AsterNET.Manager.Event
{ {
/// <summary> /// <summary>
/// A QueueCallerJoinEvent is triggered when a channel joins a queue.<br/> /// A QueueCallerJoinEvent is triggered when a channel joins a queue.<br/>
/// </summary> /// </summary>
public class QueueCallerJoinEvent : QueueEvent public class QueueCallerJoinEvent : JoinEvent
{ {
public string Position { get; set; } // "Channel" in ManagerEvent.cs
public QueueCallerJoinEvent(ManagerConnection source) // "Queue" in QueueEvent.cs
/// <summary>
/// Get/Set the Caller*ID number of the channel that joined the queue if set.
/// If the channel has no caller id set "unknown" is returned.
/// </summary>
public string CallerIDNum { get; set; }
// "CallerIdName" in JoinEvent.cs
// "Position" in JoinEvent.cs
public QueueCallerJoinEvent(ManagerConnection source)
: base(source) : base(source)
{ {
} }
} }
} }