mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-20 17:14:42 +01:00
added user data save event
This commit is contained in:
@@ -11,6 +11,11 @@ namespace MediaBrowser.Controller.Library
|
||||
/// </summary>
|
||||
public interface IUserDataManager
|
||||
{
|
||||
/// <summary>
|
||||
/// Occurs when [user data saved].
|
||||
/// </summary>
|
||||
event EventHandler<UserDataSaveEventArgs> UserDataSaved;
|
||||
|
||||
/// <summary>
|
||||
/// Saves the user data.
|
||||
/// </summary>
|
||||
|
||||
36
MediaBrowser.Controller/Library/UserDataSaveEventArgs.cs
Normal file
36
MediaBrowser.Controller/Library/UserDataSaveEventArgs.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
using MediaBrowser.Controller.Entities;
|
||||
using MediaBrowser.Model.Entities;
|
||||
using System;
|
||||
|
||||
namespace MediaBrowser.Controller.Library
|
||||
{
|
||||
/// <summary>
|
||||
/// Class UserDataSaveEventArgs
|
||||
/// </summary>
|
||||
public class UserDataSaveEventArgs : EventArgs
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the user id.
|
||||
/// </summary>
|
||||
/// <value>The user id.</value>
|
||||
public Guid UserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the key.
|
||||
/// </summary>
|
||||
/// <value>The key.</value>
|
||||
public string Key { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the save reason.
|
||||
/// </summary>
|
||||
/// <value>The save reason.</value>
|
||||
public UserDataSaveReason SaveReason { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the user data.
|
||||
/// </summary>
|
||||
/// <value>The user data.</value>
|
||||
public UserItemData UserData { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -98,6 +98,7 @@
|
||||
<Compile Include="Library\IMetadataSaver.cs" />
|
||||
<Compile Include="Library\ItemUpdateType.cs" />
|
||||
<Compile Include="Library\IUserDataManager.cs" />
|
||||
<Compile Include="Library\UserDataSaveEventArgs.cs" />
|
||||
<Compile Include="LiveTv\ChannelInfo.cs" />
|
||||
<Compile Include="LiveTv\ILiveTvManager.cs" />
|
||||
<Compile Include="LiveTv\ILiveTvService.cs" />
|
||||
@@ -174,7 +175,7 @@
|
||||
<Compile Include="Kernel.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Providers\BaseMetadataProvider.cs" />
|
||||
<Compile Include="Session\ISessionRemoteController.cs" />
|
||||
<Compile Include="Session\ISessionController.cs" />
|
||||
<Compile Include="Session\PlaybackInfo.cs" />
|
||||
<Compile Include="Session\PlaybackProgressInfo.cs" />
|
||||
<Compile Include="Session\PlaybackStopInfo.cs" />
|
||||
|
||||
@@ -4,7 +4,7 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace MediaBrowser.Controller.Session
|
||||
{
|
||||
public interface ISessionRemoteController
|
||||
public interface ISessionController
|
||||
{
|
||||
/// <summary>
|
||||
/// Supportses the specified session.
|
||||
@@ -17,7 +17,7 @@ namespace MediaBrowser.Controller.Session
|
||||
/// Adds the parts.
|
||||
/// </summary>
|
||||
/// <param name="remoteControllers">The remote controllers.</param>
|
||||
void AddParts(IEnumerable<ISessionRemoteController> remoteControllers);
|
||||
void AddParts(IEnumerable<ISessionController> remoteControllers);
|
||||
|
||||
/// <summary>
|
||||
/// Occurs when [playback start].
|
||||
@@ -50,7 +50,7 @@ namespace MediaBrowser.Controller.Session
|
||||
/// <param name="user">The user.</param>
|
||||
/// <returns>Task.</returns>
|
||||
/// <exception cref="System.ArgumentNullException">user</exception>
|
||||
Task<SessionInfo> LogConnectionActivity(string clientType, string appVersion, string deviceId, string deviceName, User user);
|
||||
Task<SessionInfo> LogSessionActivity(string clientType, string appVersion, string deviceId, string deviceName, User user);
|
||||
|
||||
/// <summary>
|
||||
/// Used to report that playback has started for an item
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using MediaBrowser.Common.Net;
|
||||
using MediaBrowser.Common.Net;
|
||||
using MediaBrowser.Controller.Entities;
|
||||
using MediaBrowser.Model.Net;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace MediaBrowser.Controller.Session
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user