Files
BinaryObjectScanner/BinaryObjectScanner/ProtectionProgress.cs

43 lines
1.1 KiB
C#
Raw Normal View History

2023-09-18 00:33:24 -04:00
namespace BinaryObjectScanner
2018-07-18 10:38:41 -07:00
{
2022-12-08 22:37:57 -08:00
/// <summary>
/// Struct representing protection scanning progress
/// </summary>
public struct ProtectionProgress
2018-07-18 10:38:41 -07:00
{
2022-12-08 22:37:57 -08:00
/// <summary>
/// Filename to report progress for
/// </summary>
2023-09-18 00:33:24 -04:00
#if NET48
2018-07-18 10:38:41 -07:00
public string Filename { get; private set; }
2023-09-18 00:33:24 -04:00
#else
public string Filename { get; init; }
#endif
2022-12-08 22:37:57 -08:00
/// <summary>
/// Value between 0 and 1 representign the percentage completed
/// </summary>
2023-09-18 00:33:24 -04:00
#if NET48
2018-07-18 10:38:41 -07:00
public float Percentage { get; private set; }
2023-09-18 00:33:24 -04:00
#else
public float Percentage { get; init; }
#endif
2022-12-08 22:37:57 -08:00
/// <summary>
/// Protection information to report
/// </summary>
2023-09-18 00:33:24 -04:00
#if NET48
2018-07-18 10:38:41 -07:00
public string Protection { get; private set; }
2023-09-18 00:33:24 -04:00
#else
public string Protection { get; init; }
#endif
2018-07-18 10:38:41 -07:00
2020-11-12 22:47:33 -08:00
public ProtectionProgress(string filename, float percentage, string protection)
2018-07-18 10:38:41 -07:00
{
this.Filename = filename;
this.Percentage = percentage;
this.Protection = protection;
}
}
}