2026-04-03 19:28:31 -05:00
|
|
|
using CommunityToolkit.Mvvm.ComponentModel;
|
|
|
|
|
|
2026-06-06 05:49:24 -05:00
|
|
|
namespace LANCommander.Launcher.ViewModels.Components;
|
2026-04-03 19:28:31 -05:00
|
|
|
|
|
|
|
|
public partial class GenreCarouselButtomViewModel : ViewModelBase
|
|
|
|
|
{
|
|
|
|
|
[ObservableProperty]
|
|
|
|
|
private string? _backgroundPath;
|
|
|
|
|
|
|
|
|
|
[ObservableProperty]
|
|
|
|
|
private bool _hasBackground;
|
|
|
|
|
|
|
|
|
|
[ObservableProperty]
|
|
|
|
|
private string? _name;
|
|
|
|
|
|
|
|
|
|
public GenreCarouselButtomViewModel()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public GenreCarouselButtomViewModel(SDK.Models.Genre genre, string? backgroundPath = null)
|
|
|
|
|
{
|
|
|
|
|
Name = genre.Name;
|
|
|
|
|
|
|
|
|
|
BackgroundPath = backgroundPath;
|
|
|
|
|
HasBackground = !string.IsNullOrEmpty(backgroundPath);
|
|
|
|
|
}
|
|
|
|
|
}
|