-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFcmRegistration.cs
More file actions
26 lines (20 loc) · 1.05 KB
/
Copy pathFcmRegistration.cs
File metadata and controls
26 lines (20 loc) · 1.05 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
namespace RustPlusBot.Domain.Credentials;
/// <summary>
/// One Discord user's Rust+ FCM listener registration within a guild. One per (GuildId, OwnerUserId).
/// The credentials blob is stored protected at rest (see ICredentialProtector) and feeds the pairing listener.
/// </summary>
public sealed class FcmRegistration
{
/// <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 Discord user who connected these credentials.</summary>
public ulong OwnerUserId { get; set; }
/// <summary>Protected FCM/Expo credentials JSON.</summary>
public string ProtectedFcmCredentials { get; set; } = string.Empty;
/// <summary>Listener lifecycle state.</summary>
public FcmRegistrationStatus Status { get; set; } = FcmRegistrationStatus.Active;
/// <summary>When the registration was last upserted or had its status changed (UTC).</summary>
public DateTimeOffset UpdatedAt { get; set; }
}