using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace SuperSocket.SocketBase.Protocol
{
///
/// String type request information
///
public class StringRequestInfo : RequestInfo
{
///
/// Initializes a new instance of the class.
///
/// The key.
/// The body.
/// The parameters.
public StringRequestInfo(string key, string body, string[] parameters)
: base(key, body)
{
Parameters = parameters;
}
///
/// Gets the parameters.
///
public string[] Parameters { get; private set; }
///
/// Gets the first param.
///
///
public string GetFirstParam()
{
if(Parameters.Length > 0)
return Parameters[0];
return string.Empty;
}
///
/// Gets the at the specified index.
///
public string this[int index]
{
get { return Parameters[index]; }
}
}
}