E:\Devel\PlayniteDiagTool\PlayniteDiagTool\bin\Debug\temp\PlayniteSDK\Events\ApplicationEvents.cs e:\Devel\Playnite\source\PlayniteSDK\Events\ApplicationEvents.cs
using Playnite.SDK.Models; using Playnite.SDK.Models;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
   
namespace Playnite.SDK.Events namespace Playnite.SDK.Events
{ {
   /// <summary>    /// <summary>
   /// Application wide events.    /// Application wide events.
   /// </summary>    /// </summary>
   public enum ApplicationEvent    public enum ApplicationEvent
   {    {
       /// <summary>        /// <summary>
       ///        ///
       /// </summary>        /// </summary>
       OnApplicationStarted,        OnApplicationStarted,
       /// <summary>        /// <summary>
       ///        ///
       /// </summary>        /// </summary>
       OnApplicationStopped,        OnApplicationStopped,
       /// <summary>        /// <summary>
       ///        ///
       /// </summary>        /// </summary>
       OnLibraryUpdated,        OnLibraryUpdated,
       /// <summary>        /// <summary>
       ///        ///
       /// </summary>        /// </summary>
       OnGameStarting,        OnGameStarting,
       /// <summary>        /// <summary>
       ///        ///
       /// </summary>        /// </summary>
       OnGameStarted,        OnGameStarted,
       /// <summary>        /// <summary>
       ///        ///
       /// </summary>        /// </summary>
       OnGameStopped,        OnGameStopped,
       /// <summary>        /// <summary>
       ///        ///
       /// </summary>        /// </summary>
       OnGameInstalled,        OnGameInstalled,
       /// <summary>        /// <summary>
       ///        ///
       /// </summary>        /// </summary>
       OnGameUninstalled,        OnGameUninstalled,
       /// <summary>        /// <summary>
       ///        ///
       /// </summary>        /// </summary>
       OnGameSelected        OnGameSelected
   }    }
   
   /// <summary>    /// <summary>
   /// Represents game selection change event.    /// Represents game selection change event.
   /// </summary>    /// </summary>
   public class OnGameSelectedEventArgs    public class OnGameSelectedEventArgs
   {    {
       /// <summary>        /// <summary>
       /// Gets previously selected games.        /// Gets previously selected games.
       /// </summary>        /// </summary>
       public List<Game> OldValue { get; internal set; }        public List<Game> OldValue { get; internal set; }
   
       /// <summary>        /// <summary>
       /// Gets newly selected games.        /// Gets newly selected games.
       /// </summary>        /// </summary>
       public List<Game> NewValue { get; internal set; }        public List<Game> NewValue { get; internal set; }
   
       /// <summary>        /// <summary>
       /// Creates new instance of <see cref="OnGameSelectedEventArgs"/>.        /// Creates new instance of <see cref="OnGameSelectedEventArgs"/>.
       /// </summary>        /// </summary>
       /// <param name="oldValue"></param>        /// <param name="oldValue"></param>
       /// <param name="newValue"></param>        /// <param name="newValue"></param>
       public OnGameSelectedEventArgs(List<Game> oldValue, List<Game> newValue)        public OnGameSelectedEventArgs(List<Game> oldValue, List<Game> newValue)
       {        {
           OldValue = oldValue;            OldValue = oldValue;
           NewValue = newValue;            NewValue = newValue;
       }        }
   }    }
   
   /// <summary>    /// <summary>
   /// Represents arguments for the event when a game is starting.    /// Represents arguments for the event when a game is starting.
   /// </summary>    /// </summary>
   public class OnGameStartingEventArgs    public class OnGameStartingEventArgs
   {    {
       /// <summary>        /// <summary>
.        /// Gets or sets game object initiating the event.        /// Gets game object initiating the event.
       /// </summary>        /// </summary>
       public Game Game { get; internal set; }        public Game Game { get; internal set; }
.   
         /// <summary>
         /// Gets custom game action used to start the game.
         /// </summary>
         public GameAction SourceAction { get; internal set; }
   
         /// <summary>
         /// Gets ROM file selected when running a game with multiple ROMs assigned.
         /// </summary>
         public string SelectedRomFile { get; internal set; }
   }    }
   
   /// <summary>    /// <summary>
   /// Represents arguments for the event a game starts running.    /// Represents arguments for the event a game starts running.
   /// </summary>    /// </summary>
   public class OnGameStartedEventArgs    public class OnGameStartedEventArgs
   {    {
       /// <summary>        /// <summary>
.        /// Gets or sets game object initiating the event.        /// Gets game object initiating the event.
       /// </summary>        /// </summary>
       public Game Game { get; internal set; }        public Game Game { get; internal set; }
.   
         /// <summary>
         /// Gets custom game action used to start the game.
         /// </summary>
         public GameAction SourceAction { get; internal set; }
   
         /// <summary>
         /// Gets ROM file selected when running a game with multiple ROMs assigned.
         /// </summary>
         public string SelectedRomFile { get; internal set; }
   }    }
   
   /// <summary>    /// <summary>
   /// Reperesents arguments for the event when a game stops running.    /// Reperesents arguments for the event when a game stops running.
   /// </summary>    /// </summary>
   public class OnGameStoppedEventArgs    public class OnGameStoppedEventArgs
   {    {
       /// <summary>        /// <summary>
       /// Gets or sets game object initiating the event.        /// Gets or sets game object initiating the event.
       /// </summary>        /// </summary>
       public Game Game { get; internal set; }        public Game Game { get; internal set; }
   
       /// <summary>        /// <summary>
       /// Gets or sets length of the game session in seconds.        /// Gets or sets length of the game session in seconds.
       /// </summary>        /// </summary>
       public ulong ElapsedSeconds { get; internal set; }        public ulong ElapsedSeconds { get; internal set; }
   }    }
   
   /// <summary>    /// <summary>
   /// Represents arguments for the event when a game is installed.    /// Represents arguments for the event when a game is installed.
   /// </summary>    /// </summary>
   public class OnGameInstalledEventArgs    public class OnGameInstalledEventArgs
   {    {
       /// <summary>        /// <summary>
       /// Gets or sets game object initiating the event.        /// Gets or sets game object initiating the event.
       /// </summary>        /// </summary>
       public Game Game { get; internal set; }        public Game Game { get; internal set; }
   }    }
   
   /// <summary>    /// <summary>
   /// Represents arguments for the event when a game is uninstalled.    /// Represents arguments for the event when a game is uninstalled.
   /// </summary>    /// </summary>
   public class OnGameUninstalledEventArgs    public class OnGameUninstalledEventArgs
   {    {
       /// <summary>        /// <summary>
       /// Gets or sets game object initiating the event.        /// Gets or sets game object initiating the event.
       /// </summary>        /// </summary>
       public Game Game { get; internal set; }        public Game Game { get; internal set; }
   }    }
   
   /// <summary>    /// <summary>
   /// Represents arguments for the event when Playnite is started.    /// Represents arguments for the event when Playnite is started.
   /// </summary>    /// </summary>
   public class OnApplicationStartedEventArgs    public class OnApplicationStartedEventArgs
   {    {
   }    }
   
   /// <summary>    /// <summary>
   /// Represents arguments for the event when Playnite is closing down.    /// Represents arguments for the event when Playnite is closing down.
   /// </summary>    /// </summary>
   public class OnApplicationStoppedEventArgs    public class OnApplicationStoppedEventArgs
   {    {
   }    }
   
   /// <summary>    /// <summary>
   /// Represents arguments for the event when the game library is updated.    /// Represents arguments for the event when the game library is updated.
   /// </summary>    /// </summary>
   public class OnLibraryUpdatedEventArgs    public class OnLibraryUpdatedEventArgs
   {    {
   }    }
} }