moved playback event args object
This commit is contained in:
parent
679143cffb
commit
e25258e1c0
|
@ -1,13 +1,15 @@
|
|||
using MediaBrowser.Common.Events;
|
||||
using System;
|
||||
using MediaBrowser.Controller.Entities;
|
||||
|
||||
namespace MediaBrowser.Controller.Entities
|
||||
namespace MediaBrowser.Controller.Library
|
||||
{
|
||||
/// <summary>
|
||||
/// Holds information about a playback progress event
|
||||
/// </summary>
|
||||
public class PlaybackProgressEventArgs : GenericEventArgs<BaseItem>
|
||||
public class PlaybackProgressEventArgs : EventArgs
|
||||
{
|
||||
public User User { get; set; }
|
||||
public long? PlaybackPositionTicks { get; set; }
|
||||
public BaseItem Item { get; set; }
|
||||
}
|
||||
}
|
|
@ -88,7 +88,7 @@
|
|||
<Compile Include="Entities\Movies\BoxSet.cs" />
|
||||
<Compile Include="Entities\Movies\Movie.cs" />
|
||||
<Compile Include="Entities\Person.cs" />
|
||||
<Compile Include="Entities\PlaybackProgressEventArgs.cs" />
|
||||
<Compile Include="Library\PlaybackProgressEventArgs.cs" />
|
||||
<Compile Include="Entities\Studio.cs" />
|
||||
<Compile Include="Entities\Trailer.cs" />
|
||||
<Compile Include="Entities\TV\Episode.cs" />
|
||||
|
|
|
@ -558,7 +558,7 @@ namespace MediaBrowser.Server.Implementations.Library
|
|||
// Fire events to inform plugins
|
||||
EventHelper.QueueEventIfNotNull(PlaybackStart, this, new PlaybackProgressEventArgs
|
||||
{
|
||||
Argument = item,
|
||||
Item = item,
|
||||
User = user
|
||||
}, _logger);
|
||||
}
|
||||
|
@ -597,7 +597,7 @@ namespace MediaBrowser.Server.Implementations.Library
|
|||
|
||||
EventHelper.QueueEventIfNotNull(PlaybackProgress, this, new PlaybackProgressEventArgs
|
||||
{
|
||||
Argument = item,
|
||||
Item = item,
|
||||
User = user,
|
||||
PlaybackPositionTicks = positionTicks
|
||||
}, _logger);
|
||||
|
@ -644,7 +644,7 @@ namespace MediaBrowser.Server.Implementations.Library
|
|||
|
||||
EventHelper.QueueEventIfNotNull(PlaybackStopped, this, new PlaybackProgressEventArgs
|
||||
{
|
||||
Argument = item,
|
||||
Item = item,
|
||||
User = user,
|
||||
PlaybackPositionTicks = positionTicks
|
||||
}, _logger);
|
||||
|
|
Loading…
Reference in New Issue
Block a user