ToggleStateMember Constructor

This commit is contained in:
Syntriax 2022-11-20 18:29:33 +03:00
parent 6afed7407d
commit 2237b2e355
1 changed files with 4 additions and 0 deletions

View File

@ -5,6 +5,10 @@ namespace Syntriax.Modules.ToggleState
public class ToggleStateMember : IToggleState
{
private bool _isToggled = true;
public ToggleStateMember() { }
public ToggleStateMember(bool isToggled) => IsToggled = isToggled;
public bool IsToggled
{
get => _isToggled;