PlaybackProgressEventArgs.cs 801 B

12345678910111213141516171819202122232425
  1. using System;
  2. using MediaBrowser.Controller.Entities;
  3. namespace MediaBrowser.Controller.Library
  4. {
  5. /// <summary>
  6. /// Holds information about a playback progress event
  7. /// </summary>
  8. public class PlaybackProgressEventArgs : EventArgs
  9. {
  10. public User User { get; set; }
  11. public long? PlaybackPositionTicks { get; set; }
  12. public BaseItem Item { get; set; }
  13. public UserItemData UserData { get; set; }
  14. }
  15. public class PlaybackStopEventArgs : PlaybackProgressEventArgs
  16. {
  17. /// <summary>
  18. /// Gets or sets a value indicating whether [played to completion].
  19. /// </summary>
  20. /// <value><c>true</c> if [played to completion]; otherwise, <c>false</c>.</value>
  21. public bool PlayedToCompletion { get; set; }
  22. }
  23. }