PlaybackProgressEventArgs.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  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 string DeviceName { get; set; }
  18. public string ClientName { get; set; }
  19. public PlaybackProgressEventArgs()
  20. {
  21. Users = new List<User>();
  22. }
  23. }
  24. public class PlaybackStopEventArgs : PlaybackProgressEventArgs
  25. {
  26. /// <summary>
  27. /// Gets or sets a value indicating whether [played to completion].
  28. /// </summary>
  29. /// <value><c>true</c> if [played to completion]; otherwise, <c>false</c>.</value>
  30. public bool PlayedToCompletion { get; set; }
  31. }
  32. }