using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Tor.Controller
{
///
/// A class containing information regarding the response received back through the control connection after receiving a command from a client.
///
internal class Response
{
private readonly bool success;
///
/// Initializes a new instance of the class.
///
/// A value indicating whether the command was received and processed successfully.
public Response(bool success)
{
this.success = success;
}
#region Properties
///
/// Gets a value indicating whether the command was received and processed successfully.
///
public bool Success
{
get { return success; }
}
#endregion
}
///
/// A class containing a collection of mapped, to key-value pairs, as
/// expected from certain commands dispatched to a control connection.
///
internal sealed class ResponsePairs : Dictionary
{
///
/// Initializes a new instance of the class.
///
public ResponsePairs()
{
}
///
/// Initializes a new instance of the class.
///
/// The initial number of elements that the can contain.
public ResponsePairs(int capacity) : base(capacity)
{
}
}
}