Table of Contents

Class BetaCodeData

Namespace
FishMMO.Database.Data
Assembly
FishMMO-DB.dll

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

string

CreatedBy

The staff account that minted it.

public string CreatedBy { get; set; }

Property Value

string

CreatedUtc

When it was minted.

public DateTime CreatedUtc { get; set; }

Property Value

DateTime

ExpiresUtc

When the code stops being redeemable, or null for never.

public DateTime? ExpiresUtc { get; set; }

Property Value

DateTime?

ID

Surrogate key.

public long ID { get; set; }

Property Value

long

IsExpired

Whether the expiry had passed when the row was read.

public bool IsExpired { get; set; }

Property Value

bool

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

bool

MaxUses

How many accounts may redeem the code.

public int MaxUses { get; set; }

Property Value

int

Note

Staff note, such as who the batch was handed to.

public string? Note { get; set; }

Property Value

string

Program

The program the code admits to, lowercase.

public string Program { get; set; }

Property Value

string

RemainingUses

MaxUses minus UseCount, never negative.

public int RemainingUses { get; set; }

Property Value

int

RevokedBy

The staff account that revoked it.

public string? RevokedBy { get; set; }

Property Value

string

RevokedUtc

When staff revoked it, or null.

public DateTime? RevokedUtc { get; set; }

Property Value

DateTime?

UseCount

How many accounts have redeemed it.

public int UseCount { get; set; }

Property Value

int

Version

The row's xmin, widened to long.

public long Version { get; set; }

Property Value

long

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.