aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Configuration/UserConfiguration.cs
blob: 94f35466087eeef62cbc4ac96d08fc729bad1194 (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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#pragma warning disable CS1591

using System;
using Jellyfin.Data.Enums;

namespace MediaBrowser.Model.Configuration
{
    /// <summary>
    /// Class UserConfiguration.
    /// </summary>
    public class UserConfiguration
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="UserConfiguration" /> class.
        /// </summary>
        public UserConfiguration()
        {
            EnableNextEpisodeAutoPlay = true;
            RememberAudioSelections = true;
            RememberSubtitleSelections = true;

            HidePlayedInLatest = true;
            PlayDefaultAudioTrack = true;

            LatestItemsExcludes = Array.Empty<Guid>();
            OrderedViews = Array.Empty<Guid>();
            MyMediaExcludes = Array.Empty<Guid>();
            GroupedFolders = Array.Empty<Guid>();
        }

        /// <summary>
        /// Gets or sets the audio language preference.
        /// </summary>
        /// <value>The audio language preference.</value>
        public string? AudioLanguagePreference { get; set; }

        /// <summary>
        /// Gets or sets a value indicating whether [play default audio track].
        /// </summary>
        /// <value><c>true</c> if [play default audio track]; otherwise, <c>false</c>.</value>
        public bool PlayDefaultAudioTrack { get; set; }

        /// <summary>
        /// Gets or sets the subtitle language preference.
        /// </summary>
        /// <value>The subtitle language preference.</value>
        public string? SubtitleLanguagePreference { get; set; }

        public bool DisplayMissingEpisodes { get; set; }

        public Guid[] GroupedFolders { get; set; }

        public SubtitlePlaybackMode SubtitleMode { get; set; }

        public bool DisplayCollectionsView { get; set; }

        public bool EnableLocalPassword { get; set; }

        public Guid[] OrderedViews { get; set; }

        public Guid[] LatestItemsExcludes { get; set; }

        public Guid[] MyMediaExcludes { get; set; }

        public bool HidePlayedInLatest { get; set; }

        public bool RememberAudioSelections { get; set; }

        public bool RememberSubtitleSelections { get; set; }

        public bool EnableNextEpisodeAutoPlay { get; set; }
    }
}