using System; namespace AsterNET.Manager.Action { /// /// The ParkAction allows to send a Channel to a Parking lot.
/// A successful login is the precondition for sending for that ///
public class ParkAction : ManagerAction { private string channel; private string channel2; private string timeout; private string parkinglot; /// /// Get the name of this action, i.e. "Park". /// override public string Action { get { return "Park"; } } /// /// Set the Channel which should be parked /// public string Channel { get { return this.channel; } set { this.channel = value; } } /// /// Set the Channel where the Call will end up after the timeout is reached. /// public string Channel2 { get { return this.channel2; } set { this.channel2 = value; } } /// /// Timeout in msec, after timeout is reached call will come back to channel2 /// public string Timeout { get { return this.timeout; } set { this.timeout = value; } } /// /// Set the Parking lot. /// public string Parkinglot { get { return this.parkinglot; } set { this.parkinglot = value; } } /// /// Creates a new ParkAction. /// /// /// /// public ParkAction(string channel, string channel2, string timeout) { this.channel = channel; this.channel2 = channel2; this.timeout = timeout; } /// /// Creates a new ParkAction.
///
/// Set the Channel which should be parked /// Set the Channel where the Call will end up after the timeout is reached. /// Timeout in msec, after timeout is reached call will come back to channel2 /// Set the Parking lot. public ParkAction(string channel, string channel2, string timeout, string parkinglot) { this.channel = channel; this.channel2 = channel2; this.timeout = timeout; this.parkinglot = parkinglot; } } }