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