-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConnectionState.cs
More file actions
23 lines (17 loc) · 921 Bytes
/
Copy pathConnectionState.cs
File metadata and controls
23 lines (17 loc) · 921 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
namespace RustPlusBot.Domain.Connections;
/// <summary>Persisted last-known connection state per server, so the active identity and status survive restarts.</summary>
public sealed class ConnectionState
{
/// <summary>The server this state belongs to (primary key, one row per server).</summary>
public Guid RustServerId { get; set; }
/// <summary>The owning Discord guild snowflake.</summary>
public ulong GuildId { get; set; }
/// <summary>The credential currently selected as active, if any.</summary>
public Guid? ActiveCredentialId { get; set; }
/// <summary>The live-connection status.</summary>
public ConnectionStatus Status { get; set; }
/// <summary>Last heartbeat player count, or null if unknown.</summary>
public int? PlayerCount { get; set; }
/// <summary>When the state was last updated (UTC).</summary>
public DateTimeOffset UpdatedAt { get; set; }
}