Support Open Command Plugin

Support Remove Command
Update version to 1.0.0
This commit is contained in:
2022-05-13 08:52:35 +08:00
parent e30a2f79cf
commit 0b7347e118
13 changed files with 3099 additions and 1918 deletions

View File

@@ -0,0 +1,18 @@
using System.Threading.Tasks;
using GrasscutterTools.DispatchServer.Model;
using GrasscutterTools.Utils;
namespace GrasscutterTools.DispatchServer
{
public static class DispatchServerAPI
{
public static async Task<ServerStatus> QueryServerStatus(string host)
{
var response = await HttpHelper.GetAsync<ServerStatusResponse>(host + "/status/server");
return response?.Status;
}
}
}