chatsharp/ChatSharp/IrcCapability.cs
Alexandre Oliveira 56e0c6ffeb Add basic capability support
The library now supports capability negotiation.
2017-08-19 13:30:32 -03:00

32 lines
812 B
C#

using System.Collections.Generic;
using System.Linq;
namespace ChatSharp
{
/// <summary>
/// A IRC capability.
/// </summary>
public class IrcCapability
{
/// <summary>
/// The capability identifier.
/// </summary>
public string Name { get; internal set; }
/// <summary>
/// The state of the capability after negotiating with the server.
/// Disabled by default when the capability is created.
/// </summary>
public bool IsEnabled { get; internal set; }
/// <summary>
/// Constructs a capability given a name.
/// </summary>
/// <param name="name"></param>
public IrcCapability(string name)
{
Name = name;
IsEnabled = false;
}
}
}