2018-07-18 10:38:41 -07:00
|
|
|
|
namespace BurnOutSharp
|
|
|
|
|
|
{
|
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>
|
2018-07-18 10:38:41 -07:00
|
|
|
|
public string Filename { get; private set; }
|
2022-12-08 22:37:57 -08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Value between 0 and 1 representign the percentage completed
|
|
|
|
|
|
/// </summary>
|
2018-07-18 10:38:41 -07:00
|
|
|
|
public float Percentage { get; private set; }
|
2022-12-08 22:37:57 -08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Protection information to report
|
|
|
|
|
|
/// </summary>
|
2018-07-18 10:38:41 -07:00
|
|
|
|
public string Protection { get; private set; }
|
|
|
|
|
|
|
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;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|