DownloadableContentModel.cs 869 B

1234567891011121314151617181920212223242526272829303132333435
  1. using Ryujinx.Ava.UI.ViewModels;
  2. using System.IO;
  3. namespace Ryujinx.Ava.UI.Models
  4. {
  5. public class DownloadableContentModel : BaseModel
  6. {
  7. private bool _enabled;
  8. public bool Enabled
  9. {
  10. get => _enabled;
  11. set
  12. {
  13. _enabled = value;
  14. OnPropertyChanged();
  15. }
  16. }
  17. public string TitleId { get; }
  18. public string ContainerPath { get; }
  19. public string FullPath { get; }
  20. public string FileName => Path.GetFileName(ContainerPath);
  21. public DownloadableContentModel(string titleId, string containerPath, string fullPath, bool enabled)
  22. {
  23. TitleId = titleId;
  24. ContainerPath = containerPath;
  25. FullPath = fullPath;
  26. Enabled = enabled;
  27. }
  28. }
  29. }