PlaybackProgressEventArgs.cs 893 B

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