using System; using System.Collections.Generic; namespace Jellyfin.Plugin.WatchedTogether.Models; /// /// The content restrictions currently in effect on a shared account, for display. /// public class RestrictionsDto { /// /// Gets or sets the parental rating cap as Jellyfin's numeric score, or null for none. /// public int? MaxParentalRating { get; set; } /// /// Gets or sets the sub-score cap that applies at the rating cap, or null for any. /// public int? MaxParentalSubRating { get; set; } /// /// Gets or sets the kinds of unrated item that are blocked. /// public IReadOnlyList BlockUnratedItems { get; set; } = Array.Empty(); /// /// Gets or sets the tags that hide an item. /// public IReadOnlyList BlockedTags { get; set; } = Array.Empty(); /// /// Gets or sets the tags an item must carry one of. Empty means no whitelist. /// public IReadOnlyList AllowedTags { get; set; } = Array.Empty(); /// /// Gets or sets a value indicating whether the whitelist is in force but lets nothing through, /// because the members' allowed-tag lists have nothing in common. /// public bool AllowsNothing { get; set; } }