Skip to content

PlaySessionDTO

PlaySessionDTO identifies a running or completed game process for session views.

Kind

struct

Fields

Go fieldJSON fieldGo typeTypeScript typeOptionalNullableDescription
IDidstringstringNoNo
InstanceIDinstanceIdstringstringNoNoInstanceID is the instance the session belongs to.
AccountIDaccountId*stringstring | nullYesYesAccountID is the account used for the session, when one was selected.
VersionIDversionIdstringstringNoNoVersionID is the game version that ran during the session.
StartedAtstartedAtstringstringNoNoStartedAt and EndedAt bound the session lifetime.
EndedAtendedAt*stringstring | nullYesYes
DurationSecondsdurationSecondsint64numberNoNoDurationSeconds is the session length.
ExitCodeexitCode*intnumber | nullYesYesExitCode is the process exit code, when the session has ended.
CrashedcrashedboolbooleanNoNoCrashed reports whether the process terminated unexpectedly.
RecoveredrecoveredboolbooleanNoNoRecovered reports whether a last-known-good recovery was applied.

Used by

Source

internal/transport/wails/dto.go:317