Files
BinaryObjectScanner/BinaryObjectScanner/ProtectionProgress.cs
2024-10-03 12:55:38 -04:00

35 lines
917 B
C#

namespace BinaryObjectScanner
{
/// <summary>
/// Struct representing protection scanning progress
/// </summary>
#if NET20 || NET35 || NET40
public class ProtectionProgress : System.EventArgs
#else
public struct ProtectionProgress
#endif
{
/// <summary>
/// Filename to report progress for
/// </summary>
public string? Filename { get; }
/// <summary>
/// Value between 0 and 1 representign the percentage completed
/// </summary>
public float Percentage { get; }
/// <summary>
/// Protection information to report
/// </summary>
public string? Protection { get; }
public ProtectionProgress(string? filename, float percentage, string? protection)
{
Filename = filename;
Percentage = percentage;
Protection = protection;
}
}
}