Created
March 12, 2023 14:48
-
-
Save bbenetskyy/f05382a3290034e215c582c7a8def7fc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Simple Selectable Model | |
public partial class SelectableModel : ObservableObject | |
{ | |
[ObservableProperty] private string _description; | |
[ObservableProperty] private bool _isSelected; | |
} | |
public enum Answer | |
{ | |
None, | |
Yes, | |
No | |
} | |
//Model for Questions "Yes-No", for that we using Answer Enum | |
public partial class QuestionableModel : ObservableObject | |
{ | |
[ObservableProperty] private Answer _answer; | |
[ObservableProperty] private string _question; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment