mirror of
https://github.com/jie65535/GrasscutterCommandGenerator.git
synced 2025-06-08 23:19:14 +08:00
19 lines
448 B
C#
19 lines
448 B
C#
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;
|
|
}
|
|
|
|
}
|
|
}
|