using System; namespace AsterNET.FastAGI.Command { /// /// Returns the status of the specified channel. /// If no channel name is given the returns the status of the current channel.
/// Return values: /// ///
public class ChannelStatusCommand : AGICommand { private string channel; public string Channel { get { return channel; } set { this.channel = value; } } public ChannelStatusCommand() { this.channel = null; } /// /// Creates a new ChannelStatusCommand that queries the given channel. /// /// the name of the channel to query. public ChannelStatusCommand(string channel) { this.channel = channel; } public override string BuildCommand() { return "CHANNEL STATUS" + (channel == null ? "" : " " + EscapeAndQuote(channel)); } } }