-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPlayerCredential.cs
More file actions
29 lines (22 loc) · 1.04 KB
/
Copy pathPlayerCredential.cs
File metadata and controls
29 lines (22 loc) · 1.04 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
namespace RustPlusBot.Domain.Credentials;
/// <summary>
/// One player's Rust+ credentials within a server's pool. Many per (GuildId, RustServerId).
/// The token fields are stored protected at rest (see ICredentialProtector).
/// </summary>
public sealed class PlayerCredential
{
/// <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>The server this credential can connect to.</summary>
public Guid RustServerId { get; set; }
/// <summary>The Discord user who registered this credential.</summary>
public ulong OwnerUserId { get; set; }
/// <summary>The player's Steam64 id.</summary>
public ulong SteamId { get; set; }
/// <summary>Protected Rust+ player token.</summary>
public string ProtectedPlayerToken { get; set; } = string.Empty;
/// <summary>Pool lifecycle state.</summary>
public CredentialStatus Status { get; set; } = CredentialStatus.Standby;
}