Table of Contents

Class Game

Namespace
Playnite
Assembly
Playnite.SDK.dll

A base class for objects of which the properties must be observable.

public class Game : LibraryObject, INotifyPropertyChanged, INotifyPropertyChanging, ICopyable<Game>
Inheritance
Game
Implements
Inherited Members

Constructors

Game()

public Game()

Game(string)

public Game(string name)

Parameters

name string

Properties

AchievementIds

[ExcludeFromCodeCoverage]
public HashSet<string>? AchievementIds { get; set; }

Property Value

HashSet<string>

AddedDate

[ExcludeFromCodeCoverage]
public DateTimeOffset? AddedDate { get; set; }

Property Value

DateTimeOffset?

AgeRatingIds

[ExcludeFromCodeCoverage]
public HashSet<string>? AgeRatingIds { get; set; }

Property Value

HashSet<string>

CategoryIds

[ExcludeFromCodeCoverage]
public HashSet<string>? CategoryIds { get; set; }

Property Value

HashSet<string>

CommunityScore

[ExcludeFromCodeCoverage]
public int CommunityScore { get; set; }

Property Value

int

CompletedDate

[ExcludeFromCodeCoverage]
public DateTimeOffset? CompletedDate { get; set; }

Property Value

DateTimeOffset?

CompletionStatusId

[ExcludeFromCodeCoverage]
public string? CompletionStatusId { get; set; }

Property Value

string

CriticScore

[ExcludeFromCodeCoverage]
public int CriticScore { get; set; }

Property Value

int

DeveloperIds

[ExcludeFromCodeCoverage]
public HashSet<string>? DeveloperIds { get; set; }

Property Value

HashSet<string>

EnableSystemHdr

[ExcludeFromCodeCoverage]
public bool EnableSystemHdr { get; set; }

Property Value

bool

EstimatedInstallSize

[ExcludeFromCodeCoverage]
public ulong EstimatedInstallSize { get; set; }

Property Value

ulong

ExternalIdentifiers

[ExcludeFromCodeCoverage]
public ObservableCollection<ExternalIdentifier>? ExternalIdentifiers { get; set; }

Property Value

ObservableCollection<ExternalIdentifier>

Favorite

[ExcludeFromCodeCoverage]
public bool Favorite { get; set; }

Property Value

bool

FeatureIds

[ExcludeFromCodeCoverage]
public HashSet<string>? FeatureIds { get; set; }

Property Value

HashSet<string>

FinishedMainAndSideDate

[ExcludeFromCodeCoverage]
public DateTimeOffset? FinishedMainAndSideDate { get; set; }

Property Value

DateTimeOffset?

FinishedMainStoryDate

[ExcludeFromCodeCoverage]
public DateTimeOffset? FinishedMainStoryDate { get; set; }

Property Value

DateTimeOffset?

GameActionIds

[ExcludeFromCodeCoverage]
public List<string>? GameActionIds { get; set; }

Property Value

List<string>

GenreIds

[ExcludeFromCodeCoverage]
public HashSet<string>? GenreIds { get; set; }

Property Value

HashSet<string>

Hidden

[ExcludeFromCodeCoverage]
public bool Hidden { get; set; }

Property Value

bool

IncludePluginActions

[ExcludeFromCodeCoverage]
public bool IncludePluginActions { get; set; }

Property Value

bool

InstallDate

[ExcludeFromCodeCoverage]
public DateTimeOffset? InstallDate { get; set; }

Property Value

DateTimeOffset?

InstallDirectory

[ExcludeFromCodeCoverage]
public string? InstallDirectory { get; set; }

Property Value

string

InstallSize

[ExcludeFromCodeCoverage]
public ulong InstallSize { get; set; }

Property Value

ulong

InstallState

[ExcludeFromCodeCoverage]
public InstallState InstallState { get; set; }

Property Value

InstallState

LastPlayedDate

[ExcludeFromCodeCoverage]
public DateTimeOffset? LastPlayedDate { get; set; }

Property Value

DateTimeOffset?

LastSizeScanDate

[ExcludeFromCodeCoverage]
public DateTimeOffset? LastSizeScanDate { get; set; }

Property Value

DateTimeOffset?

LibraryGameId

[ExcludeFromCodeCoverage]
public string? LibraryGameId { get; set; }

Property Value

string

LibraryId

[ExcludeFromCodeCoverage]
public string LibraryId { get; set; }

Property Value

string
[ExcludeFromCodeCoverage]
public ObservableCollection<WebLink>? Links { get; set; }

Property Value

ObservableCollection<WebLink>

MediaFiles

[ExcludeFromCodeCoverage]
public ObservableCollection<GameMediaFile>? MediaFiles { get; set; }

Property Value

ObservableCollection<GameMediaFile>

ModifiedDate

[ExcludeFromCodeCoverage]
public DateTimeOffset? ModifiedDate { get; set; }

Property Value

DateTimeOffset?

ObtainedDate

[ExcludeFromCodeCoverage]
public DateTimeOffset? ObtainedDate { get; set; }

Property Value

DateTimeOffset?

OverrideInstallState

[ExcludeFromCodeCoverage]
public bool OverrideInstallState { get; set; }

Property Value

bool

PlatformIds

[ExcludeFromCodeCoverage]
public HashSet<string>? PlatformIds { get; set; }

Property Value

HashSet<string>

PlayTime

[ExcludeFromCodeCoverage]
public uint PlayTime { get; set; }

Property Value

uint

PublisherIds

[ExcludeFromCodeCoverage]
public HashSet<string>? PublisherIds { get; set; }

Property Value

HashSet<string>

RegionIds

[ExcludeFromCodeCoverage]
public HashSet<string>? RegionIds { get; set; }

Property Value

HashSet<string>

ReleaseDate

[ExcludeFromCodeCoverage]
public PartialDate? ReleaseDate { get; set; }

Property Value

PartialDate

SeriesIds

[ExcludeFromCodeCoverage]
public HashSet<string>? SeriesIds { get; set; }

Property Value

HashSet<string>

SessionIds

[ExcludeFromCodeCoverage]
public HashSet<string>? SessionIds { get; set; }

Property Value

HashSet<string>

SortingName

[ExcludeFromCodeCoverage]
public string? SortingName { get; set; }

Property Value

string

SourceId

[ExcludeFromCodeCoverage]
public string? SourceId { get; set; }

Property Value

string

TagIds

[ExcludeFromCodeCoverage]
public HashSet<string>? TagIds { get; set; }

Property Value

HashSet<string>

TimeToBeat

[ExcludeFromCodeCoverage]
public TimeToBeat? TimeToBeat { get; set; }

Property Value

TimeToBeat

TimeToBeatEstimated

[ExcludeFromCodeCoverage]
public TimeToBeat? TimeToBeatEstimated { get; set; }

Property Value

TimeToBeat

UserScore

[ExcludeFromCodeCoverage]
public int UserScore { get; set; }

Property Value

int

Methods

GetCopy()

public Game GetCopy()

Returns

Game

GetDiffProperties(Game)

public HashSet<string> GetDiffProperties(Game target)

Parameters

target Game

Returns

HashSet<string>