From d3f4b63b231cd87aaac2a87d3e4e4186074fb127 Mon Sep 17 00:00:00 2001 From: Chomp Date: Tue, 14 Jan 2025 12:50:07 +0000 Subject: [PATCH] Stubbed out Progress writer class --- Core/Utils/ProgressWriter.cs | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Core/Utils/ProgressWriter.cs diff --git a/Core/Utils/ProgressWriter.cs b/Core/Utils/ProgressWriter.cs new file mode 100644 index 00000000..068aaa18 --- /dev/null +++ b/Core/Utils/ProgressWriter.cs @@ -0,0 +1,33 @@ +namespace Core.Utils +{ + public class ProgressWriter + { + private readonly int _total; + private readonly int? _maxBarLength; + private readonly string? _barFillChar; + private readonly string? _barEmptyChar; + + public ProgressWriter(int total, int maxBarLength, string barFillChar, string barEmptyChar) + { + _total = total; + _maxBarLength = maxBarLength; + _barFillChar = barFillChar; + _barEmptyChar = barEmptyChar; + } + + public ProgressWriter(int total) + { + _total = total; + _maxBarLength = 25; + _barFillChar = "\u2593"; + _barEmptyChar = "\u2591"; + } + + public void Increment() + { + // TODO - implement + } + } + + +}