using System.Windows.Input; using ytLive.Helpers; namespace ytLive.ViewModels; public class GoLiveViewModel : ViewModelBase { private string _streamTitle = string.Empty; private string _streamDescription = string.Empty; private string _visibility = "Public"; public string StreamTitle { get => _streamTitle; set => SetProperty(ref _streamTitle, value); } public string StreamDescription { get => _streamDescription; set => SetProperty(ref _streamDescription, value); } public string Visibility { get => _visibility; set => SetProperty(ref _visibility, value); } public string[] Visibilities { get; } = { "Public", "Unlisted", "Private" }; public ICommand StartCommand { get; } public ICommand CancelCommand { get; } public GoLiveViewModel() { StartCommand = new RelayCommand(_ => StartRequested?.Invoke()); CancelCommand = new RelayCommand(_ => CancelRequested?.Invoke()); } public event Action? StartRequested; public event Action? CancelRequested; }