using System; namespace AsterNET.FastAGI.Command { /// /// Cause the channel to automatically hangup at the given number of seconds in the future.
/// Of course it can be hungup before then as well. Setting to 0 will cause the /// autohangup feature to be disabled on this channel. ///
public class SetAutoHangupCommand : AGICommand { /// The number of seconds before this channel is automatically hung up. private int time; /// /// Get/Set the number of seconds before this channel is automatically hung up. /// /// the number of seconds before this channel is automatically hung up. /// /// the number of seconds before this channel is automatically hung up.
/// 0 disables the autohangup feature. /// public int Time { get { return time; } set { this.time = value; } } /// /// Creates a new SetAutoHangupCommand. /// /// /// the number of seconds before this channel is automatically hung up.
/// 0 disables the autohangup feature. /// public SetAutoHangupCommand(int time) { this.time = time; } public override string BuildCommand() { return "SET AUTOHANGUP " + time; } } }