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
Properties
Date
[ExcludeFromCodeCoverage]
public DateTimeOffset? Date { get; set; }
Property Value
GameId
[ExcludeFromCodeCoverage]
public string? GameId { get; set; }
Property Value
Length
[ExcludeFromCodeCoverage]
public uint Length { get; set; }
Property Value
LibraryId
[ExcludeFromCodeCoverage]
public string? LibraryId { get; set; }
Property Value
SessionId
[ExcludeFromCodeCoverage]
public string? SessionId { get; set; }
Property Value
Methods
GetCopy()
public GameSession GetCopy()
Returns
GetDiffProperties(GameSession)
public HashSet<string> GetDiffProperties(GameSession target)
Parameters
targetGameSession
Returns
GetId(string, string, string)
public static string GetId(string gameId, string libraryId, string sessionId)
Parameters
Returns
Events
LengthChanged
public event EventHandler<GameSession.LengthChangedArgs>? LengthChanged