17 lines
461 B
C#
17 lines
461 B
C#
using Newtonsoft.Json;
|
|
|
|
namespace ModpackUpdater.Model;
|
|
|
|
public class ModpackConfig
|
|
{
|
|
public bool Maintenance { get; set; }
|
|
public string Name { get; set; }
|
|
public string UpdateUrl { get; set; }
|
|
public string InstallUrl { get; set; }
|
|
|
|
public static ModpackConfig LoadFromUrl(string url)
|
|
{
|
|
string result = new HttpClient().GetStringAsync(url).Result;
|
|
return JsonConvert.DeserializeObject<ModpackConfig>(result);
|
|
}
|
|
} |