2022-12-29 09:24:05 -05:00
|
|
|
|
using Ryujinx.Ava.UI.ViewModels;
|
2023-03-14 12:04:38 -04:00
|
|
|
|
using System.IO;
|
2022-11-25 06:41:34 -05:00
|
|
|
|
|
2022-12-29 09:24:05 -05:00
|
|
|
|
namespace Ryujinx.Ava.UI.Models
|
2022-07-28 18:41:34 -04:00
|
|
|
|
{
|
2022-11-25 06:41:34 -05:00
|
|
|
|
public class DownloadableContentModel : BaseModel
|
2022-07-28 18:41:34 -04:00
|
|
|
|
{
|
2022-11-25 06:41:34 -05:00
|
|
|
|
private bool _enabled;
|
|
|
|
|
|
|
|
|
|
public bool Enabled
|
|
|
|
|
{
|
|
|
|
|
get => _enabled;
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
_enabled = value;
|
|
|
|
|
|
|
|
|
|
OnPropertyChanged();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2022-07-28 18:41:34 -04:00
|
|
|
|
public string TitleId { get; }
|
|
|
|
|
public string ContainerPath { get; }
|
|
|
|
|
public string FullPath { get; }
|
|
|
|
|
|
2023-03-14 12:04:38 -04:00
|
|
|
|
public string FileName => Path.GetFileName(ContainerPath);
|
|
|
|
|
|
2022-07-28 18:41:34 -04:00
|
|
|
|
public DownloadableContentModel(string titleId, string containerPath, string fullPath, bool enabled)
|
|
|
|
|
{
|
|
|
|
|
TitleId = titleId;
|
|
|
|
|
ContainerPath = containerPath;
|
|
|
|
|
FullPath = fullPath;
|
|
|
|
|
Enabled = enabled;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|