asternet/Asterisk.2013/Asterisk.NET/Manager/Action/SIPShowPeerAction.cs

45 lines
1.4 KiB
C#
Raw Normal View History

using System;
2015-01-03 15:37:29 +00:00
using AsterNET.Manager.Event;
2014-01-08 14:16:39 +00:00
namespace AsterNET.Manager.Action
{
2015-01-03 15:37:29 +00:00
/// <summary>
/// Retrieves a the details about a given SIP peer.<br />
/// For a PeerEntryEvent is sent by Asterisk containing the details of the peer
/// followed by a PeerlistCompleteEvent.<br />
/// Available since Asterisk 1.2
/// </summary>
/// <seealso cref="Manager.event.PeerEntryEvent" />
/// <seealso cref="Manager.event.PeerlistCompleteEvent" />
public class SIPShowPeerAction : ManagerActionEvent
{
/// <summary> Creates a new empty SIPShowPeerAction.</summary>
public SIPShowPeerAction()
{
}
2015-01-03 15:37:29 +00:00
/// <summary>
/// Creates a new SIPShowPeerAction that requests the details about the given SIP peer.
/// </summary>
public SIPShowPeerAction(string peer)
{
this.Peer = peer;
}
public override string Action
{
get { return "SIPShowPeer"; }
}
/// <summary>
/// Get/Set the name of the peer to retrieve.<br />
/// This parameter is mandatory.
/// </summary>
public string Peer { get; set; }
public override Type ActionCompleteEventClass()
{
return typeof (PeerlistCompleteEvent);
}
}
}