moved playback event args object

This commit is contained in:
LukePulverenti 2013-03-20 12:54:32 -04:00
parent 679143cffb
commit e25258e1c0
3 changed files with 9 additions and 7 deletions

View File

@ -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; }
}
}

View File

@ -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" />

View File

@ -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);