add more info to playback events

This commit is contained in:
Luke Pulverenti
2013-12-30 12:18:18 -05:00
parent 6cfd21122b
commit 6f969ab468
3 changed files with 35 additions and 13 deletions

View File

@@ -11,5 +11,15 @@ namespace MediaBrowser.Controller.Library
public User User { get; set; }
public long? PlaybackPositionTicks { get; set; }
public BaseItem Item { get; set; }
public UserItemData UserData { get; set; }
}
public class PlaybackStopEventArgs : PlaybackProgressEventArgs
{
/// <summary>
/// Gets or sets a value indicating whether [played to completion].
/// </summary>
/// <value><c>true</c> if [played to completion]; otherwise, <c>false</c>.</value>
public bool PlayedToCompletion { get; set; }
}
}

View File

@@ -26,7 +26,7 @@ namespace MediaBrowser.Controller.Session
/// <summary>
/// Occurs when [playback stopped].
/// </summary>
event EventHandler<PlaybackProgressEventArgs> PlaybackStopped;
event EventHandler<PlaybackStopEventArgs> PlaybackStopped;
/// <summary>
/// Gets the sessions.