Table of Contents

Class GameSession

Namespace
Playnite
Assembly
Playnite.SDK.dll

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

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

Constructors

GameSession()

public GameSession()

GameSession(string, string, string)

public GameSession(string gameId, string libraryId, string sessionId)

Parameters

gameId string
libraryId string
sessionId string

Properties

Date

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

Property Value

DateTimeOffset?

GameId

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

Property Value

string

Length

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

Property Value

uint

LibraryId

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

Property Value

string

SessionId

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

Property Value

string

Methods

GetCopy()

public GameSession GetCopy()

Returns

GameSession

GetDiffProperties(GameSession)

public HashSet<string> GetDiffProperties(GameSession target)

Parameters

target GameSession

Returns

HashSet<string>

GetId(string, string, string)

public static string GetId(string gameId, string libraryId, string sessionId)

Parameters

gameId string
libraryId string
sessionId string

Returns

string

Events

LengthChanged

public event EventHandler<GameSession.LengthChangedArgs>? LengthChanged

Event Type

EventHandler<GameSession.LengthChangedArgs>