aboutsummaryrefslogblamecommitdiff
path: root/src/Ryujinx.Ava/UI/Models/DownloadableContentModel.cs
blob: fedb3527be74c902767f6f337e7487707807fac1 (plain) (tree)
1
2
3
4
5
6
7
                                   
                
 
                               
 
                                                     
     











                                    
                                      
                                            
                                       
 
                                                                  
                                                                                                            
                              
                                          
                                
         
 
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;
        }
    }
}