aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Session/ClientCapabilities.cs
blob: fc1f24ae160ee4ba1eb4ac3246a5eb39d086d6f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#nullable disable
#pragma warning disable CS1591

using System;
using System.Collections.Generic;
using System.ComponentModel;
using Jellyfin.Data.Enums;
using MediaBrowser.Model.Dlna;

namespace MediaBrowser.Model.Session
{
    public class ClientCapabilities
    {
        public ClientCapabilities()
        {
            PlayableMediaTypes = Array.Empty<MediaType>();
            SupportedCommands = Array.Empty<GeneralCommandType>();
            SupportsPersistentIdentifier = true;
        }

        public IReadOnlyList<MediaType> PlayableMediaTypes { get; set; }

        public IReadOnlyList<GeneralCommandType> SupportedCommands { get; set; }

        public bool SupportsMediaControl { get; set; }

        public bool SupportsPersistentIdentifier { get; set; }

        public DeviceProfile DeviceProfile { get; set; }

        public string AppStoreUrl { get; set; }

        public string IconUrl { get; set; }

        // TODO: Remove after 10.9
        [Obsolete("Unused")]
        [DefaultValue(false)]
        public bool? SupportsContentUploading { get; set; } = false;

        // TODO: Remove after 10.9
        [Obsolete("Unused")]
        [DefaultValue(false)]
        public bool? SupportsSync { get; set; } = false;
    }
}