namespace SabreTools.FileTypes { public class BaseFile { #region Fields /// /// Filename or path to the file /// public string? Filename { get; set; } /// /// Direct parent of the file /// public string? Parent { get; set; } /// /// Date stamp of the file /// public string? Date { get; set; } /// /// Optional size of the file /// public long? Size { get; set; } /// /// CRC32 hash of the file /// public byte[]? CRC { get; set; } /// /// MD5 hash of the file /// public byte[]? MD5 { get; set; } /// /// SHA-1 hash of the file /// public byte[]? SHA1 { get; set; } /// /// SHA-256 hash of the file /// public byte[]? SHA256 { get; set; } /// /// SHA-384 hash of the file /// public byte[]? SHA384 { get; set; } /// /// SHA-512 hash of the file /// public byte[]? SHA512 { get; set; } /// /// SpamSum fuzzy hash of the file /// public byte[]? SpamSum { get; set; } #endregion /// /// Create a new BaseFile with no base file /// public BaseFile() { } /// /// Create a new BaseFile from the given file /// /// Name of the file to use public BaseFile(string filename) { Filename = filename; } } }