mirror of
https://github.com/SabreTools/SabreTools.Models.git
synced 2026-09-24 07:37:10 +00:00
Remove framework gating
This commit is contained in:
@@ -3,56 +3,24 @@ namespace SabreTools.Models.Hashfile
|
||||
/// <remarks>Hashfiles can only contain one type of hash at a time</remarks>
|
||||
public class Hashfile
|
||||
{
|
||||
#if NET48
|
||||
public SFV[] SFV { get; set; }
|
||||
#else
|
||||
public SFV[]? SFV { get; set; }
|
||||
#endif
|
||||
|
||||
#if NET48
|
||||
public MD5[] MD5 { get; set; }
|
||||
#else
|
||||
public MD5[]? MD5 { get; set; }
|
||||
#endif
|
||||
|
||||
#if NET48
|
||||
public SHA1[] SHA1 { get; set; }
|
||||
#else
|
||||
public SHA1[]? SHA1 { get; set; }
|
||||
#endif
|
||||
|
||||
#if NET48
|
||||
public SHA256[] SHA256 { get; set; }
|
||||
#else
|
||||
public SHA256[]? SHA256 { get; set; }
|
||||
#endif
|
||||
|
||||
#if NET48
|
||||
public SHA384[] SHA384 { get; set; }
|
||||
#else
|
||||
public SHA384[]? SHA384 { get; set; }
|
||||
#endif
|
||||
|
||||
#if NET48
|
||||
public SHA512[] SHA512 { get; set; }
|
||||
#else
|
||||
public SHA512[]? SHA512 { get; set; }
|
||||
#endif
|
||||
|
||||
#if NET48
|
||||
public SpamSum[] SpamSum { get; set; }
|
||||
#else
|
||||
public SpamSum[]? SpamSum { get; set; }
|
||||
#endif
|
||||
|
||||
#region DO NOT USE IN PRODUCTION
|
||||
|
||||
/// <remarks>Should be empty</remarks>
|
||||
#if NET48
|
||||
public string[] ADDITIONAL_ELEMENTS { get; set; }
|
||||
#else
|
||||
public string[]? ADDITIONAL_ELEMENTS { get; set; }
|
||||
#endif
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
||||
@@ -6,17 +6,9 @@ namespace SabreTools.Models.Hashfile
|
||||
public class MD5
|
||||
{
|
||||
[Required]
|
||||
#if NET48
|
||||
public string Hash { get; set; }
|
||||
#else
|
||||
public string? Hash { get; set; }
|
||||
#endif
|
||||
|
||||
[Required]
|
||||
#if NET48
|
||||
public string File { get; set; }
|
||||
#else
|
||||
public string? File { get; set; }
|
||||
#endif
|
||||
}
|
||||
}
|
||||
@@ -6,17 +6,9 @@ namespace SabreTools.Models.Hashfile
|
||||
public class SFV
|
||||
{
|
||||
[Required]
|
||||
#if NET48
|
||||
public string File { get; set; }
|
||||
#else
|
||||
public string? File { get; set; }
|
||||
#endif
|
||||
|
||||
[Required]
|
||||
#if NET48
|
||||
public string Hash { get; set; }
|
||||
#else
|
||||
public string? Hash { get; set; }
|
||||
#endif
|
||||
}
|
||||
}
|
||||
@@ -6,17 +6,9 @@ namespace SabreTools.Models.Hashfile
|
||||
public class SHA1
|
||||
{
|
||||
[Required]
|
||||
#if NET48
|
||||
public string Hash { get; set; }
|
||||
#else
|
||||
public string? Hash { get; set; }
|
||||
#endif
|
||||
|
||||
[Required]
|
||||
#if NET48
|
||||
public string File { get; set; }
|
||||
#else
|
||||
public string? File { get; set; }
|
||||
#endif
|
||||
}
|
||||
}
|
||||
@@ -6,17 +6,9 @@ namespace SabreTools.Models.Hashfile
|
||||
public class SHA256
|
||||
{
|
||||
[Required]
|
||||
#if NET48
|
||||
public string Hash { get; set; }
|
||||
#else
|
||||
public string? Hash { get; set; }
|
||||
#endif
|
||||
|
||||
[Required]
|
||||
#if NET48
|
||||
public string File { get; set; }
|
||||
#else
|
||||
public string? File { get; set; }
|
||||
#endif
|
||||
}
|
||||
}
|
||||
@@ -6,17 +6,9 @@ namespace SabreTools.Models.Hashfile
|
||||
public class SHA384
|
||||
{
|
||||
[Required]
|
||||
#if NET48
|
||||
public string Hash { get; set; }
|
||||
#else
|
||||
public string? Hash { get; set; }
|
||||
#endif
|
||||
|
||||
[Required]
|
||||
#if NET48
|
||||
public string File { get; set; }
|
||||
#else
|
||||
public string? File { get; set; }
|
||||
#endif
|
||||
}
|
||||
}
|
||||
@@ -6,17 +6,9 @@ namespace SabreTools.Models.Hashfile
|
||||
public class SHA512
|
||||
{
|
||||
[Required]
|
||||
#if NET48
|
||||
public string Hash { get; set; }
|
||||
#else
|
||||
public string? Hash { get; set; }
|
||||
#endif
|
||||
|
||||
[Required]
|
||||
#if NET48
|
||||
public string File { get; set; }
|
||||
#else
|
||||
public string? File { get; set; }
|
||||
#endif
|
||||
}
|
||||
}
|
||||
@@ -6,17 +6,9 @@ namespace SabreTools.Models.Hashfile
|
||||
public class SpamSum
|
||||
{
|
||||
[Required]
|
||||
#if NET48
|
||||
public string Hash { get; set; }
|
||||
#else
|
||||
public string? Hash { get; set; }
|
||||
#endif
|
||||
|
||||
[Required]
|
||||
#if NET48
|
||||
public string File { get; set; }
|
||||
#else
|
||||
public string? File { get; set; }
|
||||
#endif
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user