19 lines
486 B
C#
19 lines
486 B
C#
|
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();
|
||
|
}
|
||
|
|
||
|
public override bool Validate(string value)
|
||
|
{
|
||
|
return _value == value.ToLower();
|
||
|
}
|
||
|
}
|
||
|
}
|