PlaybackInfoResponse.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. using System;
  2. using System.Collections.Generic;
  3. using MediaBrowser.Model.Dlna;
  4. using MediaBrowser.Model.Dto;
  5. namespace MediaBrowser.Model.MediaInfo
  6. {
  7. /// <summary>
  8. /// Class PlaybackInfoResponse.
  9. /// </summary>
  10. public class PlaybackInfoResponse
  11. {
  12. /// <summary>
  13. /// Gets or sets the media sources.
  14. /// </summary>
  15. /// <value>The media sources.</value>
  16. public IReadOnlyList<MediaSourceInfo> MediaSources { get; set; }
  17. /// <summary>
  18. /// Gets or sets the play session identifier.
  19. /// </summary>
  20. /// <value>The play session identifier.</value>
  21. public string? PlaySessionId { get; set; }
  22. /// <summary>
  23. /// Gets or sets the error code.
  24. /// </summary>
  25. /// <value>The error code.</value>
  26. public PlaybackErrorCode? ErrorCode { get; set; }
  27. /// <summary>
  28. /// Initializes a new instance of the <see cref="PlaybackInfoResponse" /> class.
  29. /// </summary>
  30. public PlaybackInfoResponse()
  31. {
  32. MediaSources = Array.Empty<MediaSourceInfo>();
  33. }
  34. }
  35. }