convert to c#

This commit is contained in:
2024-06-18 10:56:32 +02:00
parent f07fad0a80
commit deb14caf24
49 changed files with 1622 additions and 1534 deletions

View File

@@ -0,0 +1,16 @@
using Newtonsoft.Json;
namespace ModpackUpdater.Model;
public class ModpackConfig
{
public string Name { get; set; }
public string UpdateUrl { get; set; }
public string InstallUrl { get; set; }
public static object LoadFromUrl(string url)
{
string result = new HttpClient().GetStringAsync(url).Result;
return JsonConvert.DeserializeObject<ModpackConfig>(result);
}
}