MobileInternetTechnolody/Chiara/Chiara/Models/LocalFile.cs
2024-07-04 15:27:19 +08:00

18 lines
352 B
C#

using Chiara.Abstractions;
namespace Chiara.Models;
public class LocalFile(string path, string contentType) : IFile
{
public Guid FileId { get; } = Guid.NewGuid();
public FileInfo File { get; } = new(path);
public string ContentType { get; } = contentType;
public Stream OpenRead()
{
return File.OpenRead();
}
}