2015-01-03 15:37:29 +00:00
|
|
|
|
namespace AsterNET.Manager.Action
|
2014-02-27 20:07:40 +00:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2015-01-03 15:37:29 +00:00
|
|
|
|
/// The ParkAction allows to send a Channel to a Parking lot.<br />
|
|
|
|
|
/// A successful login is the precondition for sending for that
|
2014-02-27 20:07:40 +00:00
|
|
|
|
/// </summary>
|
|
|
|
|
public class ParkAction : ManagerAction
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2015-01-03 15:37:29 +00:00
|
|
|
|
/// Creates a new ParkAction.
|
2014-02-27 20:07:40 +00:00
|
|
|
|
/// </summary>
|
2015-01-03 15:37:29 +00:00
|
|
|
|
/// <param name="channel"></param>
|
|
|
|
|
/// <param name="channel2"></param>
|
|
|
|
|
/// <param name="timeout"></param>
|
|
|
|
|
public ParkAction(string channel, string channel2, string timeout)
|
2014-02-27 20:07:40 +00:00
|
|
|
|
{
|
2015-01-03 15:37:29 +00:00
|
|
|
|
this.Channel = channel;
|
|
|
|
|
this.Channel2 = channel2;
|
|
|
|
|
this.Timeout = timeout;
|
2014-02-27 20:07:40 +00:00
|
|
|
|
}
|
2015-01-03 15:37:29 +00:00
|
|
|
|
|
2014-02-27 20:07:40 +00:00
|
|
|
|
/// <summary>
|
2015-01-03 15:37:29 +00:00
|
|
|
|
/// Creates a new ParkAction.<br />
|
2014-02-27 20:07:40 +00:00
|
|
|
|
/// </summary>
|
2015-01-03 15:37:29 +00:00
|
|
|
|
/// <param name="channel">Set the Channel which should be parked</param>
|
|
|
|
|
/// <param name="channel2">Set the Channel where the Call will end up after the timeout is reached.</param>
|
|
|
|
|
/// <param name="timeout">Timeout in msec, after timeout is reached call will come back to channel2</param>
|
|
|
|
|
/// <param name="parkinglot">Set the Parking lot.</param>
|
|
|
|
|
public ParkAction(string channel, string channel2, string timeout, string parkinglot)
|
2014-02-27 20:07:40 +00:00
|
|
|
|
{
|
2015-01-03 15:37:29 +00:00
|
|
|
|
this.Channel = channel;
|
|
|
|
|
this.Channel2 = channel2;
|
|
|
|
|
this.Timeout = timeout;
|
|
|
|
|
this.Parkinglot = parkinglot;
|
2014-02-27 20:07:40 +00:00
|
|
|
|
}
|
2015-01-03 15:37:29 +00:00
|
|
|
|
|
2014-02-27 20:07:40 +00:00
|
|
|
|
/// <summary>
|
2015-01-03 15:37:29 +00:00
|
|
|
|
/// Get the name of this action, i.e. "Park".
|
2014-02-27 20:07:40 +00:00
|
|
|
|
/// </summary>
|
2015-01-03 15:37:29 +00:00
|
|
|
|
public override string Action
|
2014-02-27 20:07:40 +00:00
|
|
|
|
{
|
2015-01-03 15:37:29 +00:00
|
|
|
|
get { return "Park"; }
|
2014-02-27 20:07:40 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2015-01-03 15:37:29 +00:00
|
|
|
|
/// Set the Channel which should be parked
|
2014-02-27 20:07:40 +00:00
|
|
|
|
/// </summary>
|
2015-01-03 15:37:29 +00:00
|
|
|
|
public string Channel { get; set; }
|
|
|
|
|
|
2014-02-27 20:07:40 +00:00
|
|
|
|
/// <summary>
|
2015-01-03 15:37:29 +00:00
|
|
|
|
/// Set the Channel where the Call will end up after the timeout is reached.
|
2014-02-27 20:07:40 +00:00
|
|
|
|
/// </summary>
|
2015-01-03 15:37:29 +00:00
|
|
|
|
public string Channel2 { get; set; }
|
2014-02-27 20:07:40 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2015-01-03 15:37:29 +00:00
|
|
|
|
/// Timeout in msec, after timeout is reached call will come back to channel2
|
2014-02-27 20:07:40 +00:00
|
|
|
|
/// </summary>
|
2015-01-03 15:37:29 +00:00
|
|
|
|
public string Timeout { get; set; }
|
2014-02-27 20:07:40 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2015-01-03 15:37:29 +00:00
|
|
|
|
/// Set the Parking lot.
|
2014-02-27 20:07:40 +00:00
|
|
|
|
/// </summary>
|
2015-01-03 15:37:29 +00:00
|
|
|
|
public string Parkinglot { get; set; }
|
2014-02-27 20:07:40 +00:00
|
|
|
|
}
|
|
|
|
|
}
|