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. /// Initializes a new instance of the <see cref="PlaybackInfoResponse" /> class.
  14. /// </summary>
  15. public PlaybackInfoResponse()
  16. {
  17. MediaSources = Array.Empty<MediaSourceInfo>();
  18. }
  19. /// <summary>
  20. /// Gets or sets the media sources.
  21. /// </summary>
  22. /// <value>The media sources.</value>
  23. public IReadOnlyList<MediaSourceInfo> MediaSources { get; set; }
  24. /// <summary>
  25. /// Gets or sets the play session identifier.
  26. /// </summary>
  27. /// <value>The play session identifier.</value>
  28. public string? PlaySessionId { get; set; }
  29. /// <summary>
  30. /// Gets or sets the error code.
  31. /// </summary>
  32. /// <value>The error code.</value>
  33. public PlaybackErrorCode? ErrorCode { get; set; }
  34. }
  35. }