This commit is contained in:
2022-05-08 12:28:50 -07:00
commit 4a3e24236f
313 changed files with 22395 additions and 0 deletions

27
Shared/Models/Console.cs Normal file
View File

@ -0,0 +1,27 @@
using System.Text.Json;
using View_by_Distance.Shared.Models.Methods;
namespace View_by_Distance.Shared.Models;
public class Console : Properties.IConsole, IConsole
{
ConsoleKey IConsole.ReadKey()
{
ConsoleKey result = System.Console.ReadKey().Key;
return result;
}
string? IConsole.ReadLine()
{
string? result = System.Console.ReadLine();
return result;
}
public override string ToString()
{
string result = JsonSerializer.Serialize(this, new JsonSerializerOptions() { WriteIndented = true });
return result;
}
}