2
0

PlaybackProgressEventArgs.cs 1.0 KB

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