2024-08-04 23:46:10 +00:00
|
|
|
using TwitchChatTTS.Twitch.Socket.Messages;
|
|
|
|
|
2024-07-19 16:56:41 +00:00
|
|
|
namespace TwitchChatTTS.Chat.Commands.Parameters
|
|
|
|
{
|
|
|
|
public class StaticParameter : CommandParameter
|
|
|
|
{
|
|
|
|
private readonly string _value;
|
|
|
|
|
|
|
|
public string Value { get => _value; }
|
|
|
|
|
|
|
|
public StaticParameter(string name, string value, bool optional = false) : base(name, optional)
|
|
|
|
{
|
|
|
|
_value = value.ToLower();
|
|
|
|
}
|
|
|
|
|
2024-08-12 19:45:17 +00:00
|
|
|
public override bool Validate(string value, TwitchChatFragment[] fragments)
|
2024-07-19 16:56:41 +00:00
|
|
|
{
|
|
|
|
return _value == value.ToLower();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|