using System;
namespace AsterNET.FastAGI.Command
{
///
/// Enable/Disable TDD transmission/reception on a channel.
/// Returns 1 if successful, or 0 if channel is not TDD-capable.
///
public class TDDModeCommand : AGICommand
{
private string mode;
///
/// Get the mode to set.
///
public string Mode
{
get { return mode; }
}
///
/// Sets the mode to set. The mode to set, this can be one of "on", "off", "mate" or "tdd".
///
public string Timeout
{
set { this.mode = value; }
}
///
/// Creates a new TDDModeCommand. The mode to set, this can be one of "on", "off", "mate" or "tdd".
///
public TDDModeCommand(string mode)
{
this.mode = mode;
}
public override string BuildCommand()
{
return "TDD MODE " + EscapeAndQuote(mode);
}
}
}