diff options
Diffstat (limited to 'src/Ryujinx/UI/Models/DownloadableContentModel.cs')
-rw-r--r-- | src/Ryujinx/UI/Models/DownloadableContentModel.cs | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/Ryujinx/UI/Models/DownloadableContentModel.cs b/src/Ryujinx/UI/Models/DownloadableContentModel.cs new file mode 100644 index 00000000..9e400441 --- /dev/null +++ b/src/Ryujinx/UI/Models/DownloadableContentModel.cs @@ -0,0 +1,35 @@ +using Ryujinx.Ava.UI.ViewModels; +using System.IO; + +namespace Ryujinx.Ava.UI.Models +{ + public class DownloadableContentModel : BaseModel + { + private bool _enabled; + + public bool Enabled + { + get => _enabled; + set + { + _enabled = value; + + OnPropertyChanged(); + } + } + + public string TitleId { get; } + public string ContainerPath { get; } + public string FullPath { get; } + + public string FileName => Path.GetFileName(ContainerPath); + + public DownloadableContentModel(string titleId, string containerPath, string fullPath, bool enabled) + { + TitleId = titleId; + ContainerPath = containerPath; + FullPath = fullPath; + Enabled = enabled; + } + } +} |