Struct AccountData
Account data transfer object.
public struct AccountData
- Inherited Members
Constructors
AccountData(string, string, string, byte, string?, int, bool, string?, DateTime?, long, string?, bool, int, DateTime?, DateTime?, DateTime, DateTime)
Initializes a new instance of the AccountData struct.
public AccountData(string name, string salt, string verifier, byte accessLevel, string? email, int age, bool totpEnabled, string? totpSecret, DateTime? totpVerifiedAt, long lastTotpWindow, string? discordLinkCode, bool verified, int verifyCode, DateTime? verifyCodeExpiresUtc, DateTime? verificationEmailSentAt, DateTime created, DateTime lastLogin)
Parameters
namestringsaltstringverifierstringaccessLevelbyteemailstringageinttotpEnabledbooltotpSecretstringtotpVerifiedAtDateTime?lastTotpWindowlongdiscordLinkCodestringverifiedboolverifyCodeintverifyCodeExpiresUtcDateTime?verificationEmailSentAtDateTime?createdDateTimelastLoginDateTime
Fields
AccessLevel
Account access level.
public readonly byte AccessLevel
Field Value
Age
Account holder age. Zero if not provided.
public readonly int Age
Field Value
Created
Account creation timestamp (UTC).
public readonly DateTime Created
Field Value
DiscordLinkCode
Temporary code for Discord account linking. Null when no link is pending.
public readonly string? DiscordLinkCode
Field Value
Contact email address. Null if not provided.
public readonly string? Email
Field Value
LastLogin
Last login timestamp (UTC).
public readonly DateTime LastLogin
Field Value
LastTotpWindow
Last TOTP time-step window successfully used, for replay attack prevention.
public readonly long LastTotpWindow
Field Value
Name
Account name (unique identifier).
public readonly string Name
Field Value
Salt
Password salt for SRP authentication.
public readonly string Salt
Field Value
TotpEnabled
Whether TOTP two-factor authentication is enabled.
public readonly bool TotpEnabled
Field Value
TotpSecret
Base32-encoded TOTP secret key, encrypted at rest. Null when not set up.
public readonly string? TotpSecret
Field Value
TotpVerifiedAt
Timestamp (UTC) of the first successful TOTP verification. Null when setup not confirmed.
public readonly DateTime? TotpVerifiedAt
Field Value
VerificationEmailSentAt
UTC timestamp when the verification email was sent. Null if not yet sent.
public readonly DateTime? VerificationEmailSentAt
Field Value
Verified
Whether the account email has been verified via the registration verification link.
public readonly bool Verified
Field Value
Verifier
Password verifier for SRP authentication.
public readonly string Verifier
Field Value
VerifyCode
Random verification code sent to the account email. Zero when no verification is pending.
public readonly int VerifyCode
Field Value
VerifyCodeExpiresUtc
UTC expiry for the verification code. Null when no verification is pending.
public readonly DateTime? VerifyCodeExpiresUtc