zcbot/windows-node/Zcbot.WindowsNode/NodeStatus.cs

18 lines
380 B
C#

namespace Zcbot.WindowsNode;
internal enum NodeState
{
NotRegistered,
Connecting,
Online,
Offline,
AuthenticationRequired,
Stopped,
}
internal sealed record NodeStatus(NodeState State, string Message, DateTimeOffset ChangedAt)
{
internal static NodeStatus Create(NodeState state, string message) =>
new(state, message, DateTimeOffset.Now);
}