hermes-client/Chat/Commands/Parameters/CommandParameter.cs

18 lines
451 B
C#
Raw Normal View History

using TwitchChatTTS.Twitch.Socket.Messages;
namespace TwitchChatTTS.Chat.Commands.Parameters
{
public abstract class CommandParameter
{
public string Name { get; }
public bool Optional { get; }
public CommandParameter(string name, bool optional)
{
Name = name;
Optional = optional;
}
public abstract bool Validate(string value, TwitchChatFragment[] fragments);
}
}