added clockhistory and get command

This commit is contained in:
Tim G. | SnapixLP
2025-06-06 09:06:59 +02:00
parent c2608f4bf6
commit 8630c4c346
4 changed files with 175 additions and 4 deletions

View File

@@ -15,6 +15,10 @@ public class Tester
Console.Write("Enter the server IP address: ");
string ip = Console.ReadLine();
if (ip == "devsrv")
ip = "185.113.120.99";
else if (ip == "local")
ip = "127.0.0.1";
Console.Write("Enter the port: ");
int port = int.Parse(Console.ReadLine());
@@ -77,6 +81,7 @@ public class Tester
$"Code: {employee.Code}",
$"Surname: {employee.Surname}",
$"Forename: {employee.Forename}",
$"clocked: {employee.EmployeeState.ToFriendlyString()}",
});
}
else if (command == "clock in")