Class BetaCodeData
One beta code, as staff see it.
public sealed class BetaCodeData
- Inheritance
-
BetaCodeData
- Inherited Members
Properties
Code
The code, in XXXX-XXXX-XXXX form.
public string Code { get; set; }
Property Value
CreatedBy
The staff account that minted it.
public string CreatedBy { get; set; }
Property Value
CreatedUtc
When it was minted.
public DateTime CreatedUtc { get; set; }
Property Value
ExpiresUtc
When the code stops being redeemable, or null for never.
public DateTime? ExpiresUtc { get; set; }
Property Value
ID
Surrogate key.
public long ID { get; set; }
Property Value
IsExpired
Whether the expiry had passed when the row was read.
public bool IsExpired { get; set; }
Property Value
Remarks
Computed from the reader's clock at read time, not stored: an expiry is a moment, and a stored flag would be wrong from that moment until something rewrote it.
IsRevoked
Whether RevokedUtc is set.
public bool IsRevoked { get; set; }
Property Value
MaxUses
How many accounts may redeem the code.
public int MaxUses { get; set; }
Property Value
Note
Staff note, such as who the batch was handed to.
public string? Note { get; set; }
Property Value
Program
The program the code admits to, lowercase.
public string Program { get; set; }
Property Value
RemainingUses
public int RemainingUses { get; set; }
Property Value
RevokedBy
The staff account that revoked it.
public string? RevokedBy { get; set; }
Property Value
RevokedUtc
When staff revoked it, or null.
public DateTime? RevokedUtc { get; set; }
Property Value
UseCount
How many accounts have redeemed it.
public int UseCount { get; set; }
Property Value
Version
The row's xmin, widened to long.
public long Version { get; set; }
Property Value
Remarks
Carried as a long rather than the entity's uint because Npgsql cannot bind a
uint parameter at all; a DTO field of that type is a runtime failure waiting for
the first caller that passes it back into raw SQL.