Skip to content

Commit

Permalink
PackFile no longer has notify interface
Browse files Browse the repository at this point in the history
  • Loading branch information
donkeyProgramming committed Dec 1, 2024
1 parent 568987a commit e8c3295
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions Shared/SharedCore/PackFiles/Models/PackFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Shared.Core.PackFiles.Models
{
public class PackFile : NotifyPropertyChangedImpl
public class PackFile
{
public IDataSource DataSource { get; set; }

Expand All @@ -12,23 +12,15 @@ public PackFile(string name, IDataSource dataSource)
DataSource = dataSource;
}

string _name;
public string Name
{
get => _name;
set => SetAndNotify(ref _name, value);
}

public override string ToString() { return Name; }
public string Name { get; set; }

public override string ToString() => Name;
public string Extention { get => Path.GetExtension(Name); }


public static PackFile CreateFromBytes(string fileName, byte[] bytes) => new(fileName, new MemorySource(bytes));
public static PackFile CreateFromASCII(string fileName, string str) => new(fileName, new MemorySource(System.Text.Encoding.ASCII.GetBytes(str)));
public static PackFile CreateFromFileSystem(string fileName, string fullPath) => new(fileName, new FileSystemSource(fullPath));
}



}

0 comments on commit e8c3295

Please sign in to comment.