mirror of
https://git.battle-of-pip.de/root/vpr-mitarbeiterverwaltung.git
synced 2025-06-21 00:03:18 +02:00

Implementierung CommandManager.cs in BackendServer.cs Worker.cs umbennannt zu Employee.cs WorkerState.cs umbenannt zu EmployeeState.cs .help command eingefügt (HelpCommand.cs) Management-Server auf port 3767 eingefügt (Program.cs) Server-Connector (Server.cs) erste methoden eingefügt GetEmployee Login Logout clockin,clockout,clockbreak
24 lines
681 B
C#
24 lines
681 B
C#
using System.Net.Sockets;
|
|
using DX86;
|
|
|
|
namespace Server.Commands;
|
|
|
|
public class HelpCommand : ICommand
|
|
{
|
|
public string Executor { get; }
|
|
public HelpCommand()
|
|
{
|
|
Executor = "help";
|
|
}
|
|
public void Exec(string[] args, TcpClient? client = null, TcpServer? clientSocket = null)
|
|
{
|
|
clientSocket.SendMessageAsync(client, "" +
|
|
"Available commands:\n" +
|
|
"1. help - Show this help message\n" +
|
|
"2. exit - Exit the server\n" +
|
|
"3. user - User management\n" +
|
|
"4. settings - Server settings\n" +
|
|
"5. start - Start the server\n" +
|
|
"6. stop - Stop the server\n");
|
|
}
|
|
} |