first commit

This commit is contained in:
2025-12-13 14:28:35 +01:00
commit 679c3c9a52
113 changed files with 715750 additions and 0 deletions

27
ErrorCodeMessages.cs Normal file
View File

@@ -0,0 +1,27 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace KCM
{
public static class ErrorCodeMessages
{
private static readonly Dictionary<string, string> errorMessages = new Dictionary<string, string>
{
{ "TimedOut", "Your connectioned has timed out." },
{ "Disconnected", "Lost connection to server." },
{ "NoConnection", "Failed to connect to server." },
};
public static string GetMessage(Enum errorCode)
{
if (errorMessages.TryGetValue(errorCode.ToString(), out string message))
{
return message;
}
return errorCode.ToString(); // Fallback message
}
}
}