PlaybackProgressEventArgs.cs 943 B

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