-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRustServer.cs
More file actions
35 lines (25 loc) · 1.43 KB
/
Copy pathRustServer.cs
File metadata and controls
35 lines (25 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
namespace RustPlusBot.Domain.Servers;
/// <summary>A Rust+ server target bound to a Discord guild. Guild-scoped.</summary>
public sealed class RustServer
{
/// <summary>Surrogate primary key.</summary>
public Guid Id { get; set; } = Guid.NewGuid();
/// <summary>The owning Discord guild snowflake.</summary>
public ulong GuildId { get; set; }
/// <summary>Display name shown in Discord.</summary>
public string Name { get; set; } = string.Empty;
/// <summary>Server host (ip or dns).</summary>
public string Ip { get; set; } = string.Empty;
/// <summary>Rust+ app port.</summary>
public int Port { get; set; }
/// <summary>The Discord user who added this server.</summary>
public ulong AddedByUserId { get; set; }
/// <summary>The Facepunch server GUID from FCM pairings, backfilled on server pairing; null until first seen. Used to attribute entity pairings.</summary>
public Guid? FacepunchServerId { get; set; }
/// <summary>Baseline: the last observed wipe time (UTC) from getInfo, or null before first observation.</summary>
public DateTimeOffset? LastWipeTimeUtc { get; set; }
/// <summary>Baseline: the last observed procedural map seed, or null before first observation.</summary>
public uint? LastMapSeed { get; set; }
/// <summary>Baseline: the last observed world size (game units), or null before first observation.</summary>
public uint? LastMapSize { get; set; }
}