LaunchBoxCONTRIBUTORS
On this page

14.1 Beta 1 SDK

This reference documents the current beta SDK. Beta APIs can change before stable.

GameMediaRequest14.1 Beta

C#
public sealed class Unbroken.LaunchBox.Plugins.GameData.GameMediaRequest
Requests media for a batch of source-local game IDs.

Remarks

Media types are the public LaunchBox image and video type names or source-documented type names. An empty collection requests every media type the source offers.

Constructors

GameMediaRequest 14.1 Beta

C#
public GameMediaRequest(System.Collections.Generic.IReadOnlyCollection<string> gameIds, System.Collections.Generic.IReadOnlyCollection<string> mediaTypes)
Creates a request.
gameIds 14.1 Beta
Source-local game IDs.
mediaTypes 14.1 Beta
Requested media types, or empty for all.

Properties

AttemptNumber 14.1 Beta

C#
public int AttemptNumber { get; init; }
Gets or initializes the one-based attempt for this enrichment request. Waiting in the host queue does not advance it.

GameIds 14.1 Beta

C#
public System.Collections.Generic.IReadOnlyCollection<string> GameIds { get; }
Gets the requested game IDs.

MediaTypes 14.1 Beta

C#
public System.Collections.Generic.IReadOnlyCollection<string> MediaTypes { get; }
Gets the requested media types, or an empty collection for all.

Region 14.1 Beta

C#
public string? Region { get; init; }
Gets or initializes the region of the requested games, as a comma-separated list when a game spans regions.

Remarks

A source may use it to limit or order region-specific candidates. LaunchBox still applies its own region selection to the returned candidates.

RegionPriorities 14.1 Beta

C#
public System.Collections.Generic.IReadOnlyCollection<string> RegionPriorities { get; init; }
Gets or initializes the user's region preference order.