LaunchBoxContributors
On this page

AchievementDiagnostic14.1

Class in Unbroken.LaunchBox.Plugins.Components.Achievements

C#
public sealed class AchievementDiagnostic
Describes a provider outcome without exposing implementation exceptions.

Constructors

AchievementDiagnostic

C#
public AchievementDiagnostic(
    string code,
    DiagnosticSeverity severity,
    PluginText message,
    string? gameId = null
)
Creates a translatable diagnostic.
code
Stable diagnostic code.
severity
Diagnostic severity.
message
User-facing message with an English fallback.
gameId
Optional source-local game scope.

Properties

  • CodeGets the stable diagnostic code.
  • GameIdGets optional game scope.
  • HelpGets or initializes provider-owned help.
  • MessageGets translatable user-facing text.
  • SeverityGets the severity.

Code

C#
public string Code { get; }
Gets the stable diagnostic code.

GameId

C#
public string? GameId { get; }
Gets optional game scope.

Help

C#
public AchievementHelp? Help { get; init; }
Gets or initializes provider-owned help.

Message

C#
public PluginText Message { get; }
Gets translatable user-facing text.

Severity

C#
public DiagnosticSeverity Severity { get; }
Gets the severity.