ClientCapabilities.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #nullable disable
  2. #pragma warning disable CS1591
  3. using System;
  4. using System.Collections.Generic;
  5. using System.ComponentModel;
  6. using Jellyfin.Data.Enums;
  7. using MediaBrowser.Model.Dlna;
  8. namespace MediaBrowser.Model.Session
  9. {
  10. public class ClientCapabilities
  11. {
  12. public ClientCapabilities()
  13. {
  14. PlayableMediaTypes = Array.Empty<MediaType>();
  15. SupportedCommands = Array.Empty<GeneralCommandType>();
  16. SupportsPersistentIdentifier = true;
  17. }
  18. public IReadOnlyList<MediaType> PlayableMediaTypes { get; set; }
  19. public IReadOnlyList<GeneralCommandType> SupportedCommands { get; set; }
  20. public bool SupportsMediaControl { get; set; }
  21. public bool SupportsPersistentIdentifier { get; set; }
  22. public DeviceProfile DeviceProfile { get; set; }
  23. public string AppStoreUrl { get; set; }
  24. public string IconUrl { get; set; }
  25. // TODO: Remove after 10.9
  26. [Obsolete("Unused")]
  27. [DefaultValue(false)]
  28. public bool? SupportsContentUploading { get; set; } = false;
  29. // TODO: Remove after 10.9
  30. [Obsolete("Unused")]
  31. [DefaultValue(false)]
  32. public bool? SupportsSync { get; set; } = false;
  33. }
  34. }