@tavora/sdk / LeaderboardOutcomeResult
Interface: LeaderboardOutcomeResult
Defined in: packages/sdk/src/protocol.ts:634
One finished game on a streak or rate board. id: a UUID you make once per game, so sending it again changes nothing. at: when it ended, in milliseconds since 1970 (Date.now()). day: the local calendar day the game belongs to (YYYY-MM-DD), which decides the day, week, month and year it counts for; the SDK fills it in from at when you leave it out. On a daily board it is the puzzle's day, so give it yourself there.
Properties
at
at:
number
Defined in: packages/sdk/src/protocol.ts:637
day?
optionalday?:string
Defined in: packages/sdk/src/protocol.ts:638
id
id:
string
Defined in: packages/sdk/src/protocol.ts:635
outcome
outcome:
"won"|"lost"
Defined in: packages/sdk/src/protocol.ts:636