RegistrationCodeStatsData
public struct RegistrationCodeStatsData : Content
Returns general info about registration codes.
Each passenger gets sent an email with a unique registration code; the reg code allows them to create verified accounts. This struct lets the admins quickly view some basic stats on account usage.
-
How many ‘normal’ reg codes are in the database.
Declaration
Swift
var allocatedCodes: Int
-
How many codes have been used to create verified accounts.
Declaration
Swift
var usedCodes: Int
-
How many codes have not yet been used.
Declaration
Swift
var unusedCodes: Int
-
The total number of Registration codes alloced for the purpose of offering to users on Discord to create accounts on the pre-prod server. Will be 0 on producation.
Declaration
Swift
var allocatedDiscordCodes: Int
-
The number of codes that have been assigend to Discord users.
Declaration
Swift
var assignedDiscordCodes: Int
-
The number of Discord codes that have been used to create Twitarr accounts on the pre-prod server.
Declaration
Swift
var usedDiscordCodes: Int
-
This exists so that if admins create new reg codes for people who lost theirs, we can track it. There isn’t yet any API for admins to do this; the number will be 0.
Declaration
Swift
var adminCodes: Int