2024-08-04 19:46:10 -04:00
|
|
|
using TwitchChatTTS.Twitch.Socket.Messages;
|
|
|
|
|
2024-07-19 12:56:41 -04:00
|
|
|
namespace TwitchChatTTS.Chat.Commands.Parameters
|
|
|
|
{
|
2024-08-04 19:46:10 -04:00
|
|
|
public abstract class CommandParameter
|
2024-07-19 12:56:41 -04:00
|
|
|
{
|
|
|
|
public string Name { get; }
|
|
|
|
public bool Optional { get; }
|
|
|
|
|
|
|
|
public CommandParameter(string name, bool optional)
|
|
|
|
{
|
|
|
|
Name = name;
|
|
|
|
Optional = optional;
|
|
|
|
}
|
|
|
|
|
2024-08-04 19:46:10 -04:00
|
|
|
public abstract bool Validate(string value, ChannelChatMessage message);
|
2024-07-19 12:56:41 -04:00
|
|
|
}
|
|
|
|
}
|