using System;
using API.Entities.Interfaces;
namespace API.Entities;
/// 
/// Represents issues found during scanning or interacting with media. For example) Can't open file, corrupt media, missing content in epub.
/// 
public class MediaError : IEntityDate
{
    public int Id { get; set; }
    /// 
    /// Format Type (RAR, ZIP, 7Zip, Epub, PDF)
    /// 
    public required string Extension { get; set; }
    /// 
    /// Full Filepath to the file that has some issue
    /// 
    public required string FilePath { get; set; }
    /// 
    /// Developer defined string
    /// 
    public string Comment { get; set; }
    /// 
    /// Exception message
    /// 
    public string Details { get; set; }
    public DateTime Created { get; set; }
    public DateTime LastModified { get; set; }
    public DateTime CreatedUtc { get; set; }
    public DateTime LastModifiedUtc { get; set; }
}