Add project files.

This commit is contained in:
Jose Conde
2025-09-04 10:14:30 +02:00
parent a7a404148c
commit 94e6ef651e
54 changed files with 3134 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
namespace ModVersionChecker
{
public static class CheckerFactory
{
public static IVersionChecker CreateChecker(string type)
{
string[] parts = type.Split(':');
return parts[0].ToLower() switch
{
"scrape" => new ScrapeChecker(),
"api" => new ApiChecker(),
_ => throw new ArgumentException($"Unknown checker type: {type}")
};
}
}
}