add server status & capabilities
This commit is contained in:
6
Pilz.Net/Api/Messages/ServerCapabilitiesMessage.cs
Normal file
6
Pilz.Net/Api/Messages/ServerCapabilitiesMessage.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace Pilz.Net.Api.Messages;
|
||||
|
||||
public class ServerCapabilitiesMessage : ApiMessage
|
||||
{
|
||||
public List<string> Endpoints { get; } = [];
|
||||
}
|
||||
10
Pilz.Net/Api/Messages/ServerStatusMessage.cs
Normal file
10
Pilz.Net/Api/Messages/ServerStatusMessage.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace Pilz.Net.Api.Messages;
|
||||
|
||||
public class ServerStatusMessage : ApiMessage
|
||||
{
|
||||
public AppVersion? AppVersion { get; set; }
|
||||
public uint ApiVersion { get; set; }
|
||||
public int EndpointsCount { get; set; }
|
||||
public int DataManagersCount { get; set; }
|
||||
public uint RestartAttempts { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user