Merge pull request #181 from moldypenguins/ConfBridgeEvents

Conf bridge events
This commit is contained in:
Deantwo 2019-10-10 09:34:43 +02:00 committed by GitHub
commit 8f1879f624
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 136 additions and 17 deletions

View file

@ -6,11 +6,21 @@ using System.Threading.Tasks;
namespace AsterNET.Manager.Event namespace AsterNET.Manager.Event
{ {
/// <summary>
/// An ConfbridgeListCompleteEvent is triggered after the state of all Confbridges has been reported in response to an ConfbridgeListAction.<br/>
/// See <see target="_blank" href="https://wiki.asterisk.org/wiki/display/AST/ConfBridge+AMI+Actions">https://wiki.asterisk.org/wiki/display/AST/ConfBridge+AMI+Actions</see>
/// </summary>
/// /// <seealso cref="ConfbridgeListEvent" />
public class ConfbridgeListCompleteEvent : ResponseEvent public class ConfbridgeListCompleteEvent : ResponseEvent
{ {
/// <summary>
/// Creates a new <see cref="ConfbridgeListCompleteEvent"/>.
/// </summary>
/// <param name="source"><see cref="ManagerConnection"/></param>
public ConfbridgeListCompleteEvent(ManagerConnection source) public ConfbridgeListCompleteEvent(ManagerConnection source)
: base(source) : base(source)
{ {
} }
} }
} }

View file

@ -6,29 +6,122 @@ using System.Threading.Tasks;
namespace AsterNET.Manager.Event namespace AsterNET.Manager.Event
{ {
/// <summary>
/// Raised as part of the ConfbridgeList action response list.<br/>
/// See <see target="_blank" href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+16+ManagerEvent_ConfbridgeList">https://wiki.asterisk.org/wiki/display/AST/Asterisk+16+ManagerEvent_ConfbridgeList</see>
/// </summary>
public class ConfbridgeListEvent : AbstractConfbridgeEvent public class ConfbridgeListEvent : AbstractConfbridgeEvent
{ {
/// <summary> /// <summary>
/// /// Identifies this user as an admin user.
/// </summary>
public string CallerIDNum { get; set; }
/// <summary>
///
/// </summary>
public string CallerIDName { get; set; }
/// <summary>
///
/// </summary> /// </summary>
public string Admin { get; set; } public string Admin { get; set; }
/// <summary> /// <summary>
/// /// Identifies this user as a marked user.
/// </summary> /// </summary>
public string MarkedUser { get; set; } public string MarkedUser { get; set; }
/// <summary>
/// Must this user wait for a marked user to join?
/// </summary>
public string WaitMarked { get; set; }
/// <summary>
/// Does this user get kicked after the last marked user leaves?
/// </summary>
public string EndMarked { get; set; }
/// <summary>
/// Is this user waiting for a marked user to join?
/// </summary>
public string Waiting { get; set; }
/// <summary>
/// The current mute status.
/// </summary>
public string Muted { get; set; }
/// <summary>
/// Is this user talking?
/// </summary>
public string Talking { get; set; }
/// <summary>
/// The number of seconds the channel has been up.
/// </summary>
public string AnsweredTime { get; set; }
/// <summary>
/// A numeric code for the channel's current state, related to ChannelStateDesc
/// </summary>
public string ChannelState { get; set; }
/// <summary>
/// The number of seconds the channel has been up.
/// </summary>
public string ChannelStateDesc { get; set; }
/// <summary>
/// Gets or sets the Caller*ID number.
/// </summary>
public string CallerIDNum { get; set; }
/// <summary>
/// Gets or sets the Caller*ID name.
/// </summary>
public string CallerIDName { get; set; }
/// <summary>
/// Gets or sets the connected line number.
/// </summary>
public string ConnectedLineNum { get; set; }
/// <summary>
/// Gets or sets the name of the connected line.
/// </summary>
public string ConnectedLineName { get; set; }
/// <summary>
/// Gets or sets the language.
/// </summary>
public string Language { get; set; }
/// <summary>
/// Gets or sets the account code.
/// </summary>
public string AccountCode { get; set; }
/// <summary>
/// Gets or sets the context.
/// </summary>
public string Context { get; set; }
/// <summary>
/// Gets or sets the exten.
/// </summary>
public string Exten { get; set; }
/// <summary>
/// Gets or sets the priority.
/// </summary>
public string Priority { get; set; }
/// <summary>
/// Gets or sets the Uniqueid.
/// </summary>
public string Uniqueid { get; set; }
/// <summary>
/// Gets or sets the Linkedid.
/// Uniqueid of the oldest channel associated with this channel.
/// </summary>
public string Linkedid { get; set; }
/// <summary>
/// Creates a new <see cref="ConfbridgeListEvent"/>.
/// </summary>
/// <param name="source"></param>
public ConfbridgeListEvent(ManagerConnection source) public ConfbridgeListEvent(ManagerConnection source)
: base(source) : base(source)
{ {

View file

@ -6,9 +6,17 @@ using System.Threading.Tasks;
namespace AsterNET.Manager.Event namespace AsterNET.Manager.Event
{ {
/// <summary>
/// An ConfbridgeListRoomsCompleteEvent is triggered after the state of all ConfBridgeRooms has been reported in response to an ConfbridgeListRoomsAction.<br/>
/// See <see target="_blank" href="https://wiki.asterisk.org/wiki/display/AST/ConfBridge+AMI+Actions">https://wiki.asterisk.org/wiki/display/AST/ConfBridge+AMI+Actions</see>
/// </summary>
/// <seealso cref="ConfbridgeListRoomsEvent" />
public class ConfbridgeListRoomsCompleteEvent : ResponseEvent public class ConfbridgeListRoomsCompleteEvent : ResponseEvent
{ {
/// <summary>
/// Creates a new <see cref="ConfbridgeListRoomsCompleteEvent"/>.
/// </summary>
/// <param name="source"><see cref="ManagerConnection"/></param>
public ConfbridgeListRoomsCompleteEvent(ManagerConnection source) public ConfbridgeListRoomsCompleteEvent(ManagerConnection source)
: base(source) : base(source)
{ {

View file

@ -6,23 +6,31 @@ using System.Threading.Tasks;
namespace AsterNET.Manager.Event namespace AsterNET.Manager.Event
{ {
/// <summary>
/// Raised as part of the ConfbridgeListRooms action response list.<br/>
/// See <see target="_blank" href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+16+ManagerEvent_ConfbridgeList">https://wiki.asterisk.org/wiki/display/AST/Asterisk+16+ManagerEvent_ConfbridgeList</see>
/// </summary>
public class ConfbridgeListRoomsEvent : AbstractConfbridgeEvent public class ConfbridgeListRoomsEvent : AbstractConfbridgeEvent
{ {
/// <summary> /// <summary>
/// /// Gets or sets the parties.
/// </summary> /// </summary>
public int Parties { get; set; } public int Parties { get; set; }
/// <summary> /// <summary>
/// /// Gets or sets the marked.
/// </summary> /// </summary>
public int Marked { get; set; } public int Marked { get; set; }
/// <summary> /// <summary>
/// /// Gets or sets the locked.
/// </summary> /// </summary>
public string Locked { get; set; } public string Locked { get; set; }
/// <summary>
/// Creates a new <see cref="ConfbridgeListRoomsEvent"/>.
/// </summary>
/// <param name="source"><see cref="ManagerConnection"/></param>
public ConfbridgeListRoomsEvent(ManagerConnection source) public ConfbridgeListRoomsEvent(ManagerConnection source)
: base(source) : base(source)
{ {