using System; namespace AsterNET.FastAGI.Command { /// /// Sends the given text on a channel.
/// Most channels do not support the transmission of text.
/// Returns 0 if text is sent, or if the channel does not support text /// transmission. Returns -1 only on error/hangup. ///
public class SendTextCommand : AGICommand { /// The text to send. private string text; /// /// Get/Set the text to send. /// /// the text to send. /// the text to send. public string Text { get { return text; } set { this.text = value; } } /// /// Creates a new SendTextCommand. /// /// the text to send. public SendTextCommand(string text) { this.text = text; } public override string BuildCommand() { return "SEND TEXT " + EscapeAndQuote(text); } } }