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
{
///
/// 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;
}
///
/// Get the name of this action, i.e. "Park".
///
public override string Action
{
get { return "Park"; }
}
///
/// Set the Channel which should be parked
///
public string Channel { get; set; }
///
/// Set the Channel where the Call will end up after the timeout is reached.
///
public string Channel2 { get; set; }
///
/// Timeout in msec, after timeout is reached call will come back to channel2
///
public string Timeout { get; set; }
///
/// Set the Parking lot.
///
public string Parkinglot { get; set; }
}
}