From 8ac2d1f7bccfb265378888ec265304922154c90b Mon Sep 17 00:00:00 2001 From: mbastian77 Date: Sat, 18 Jul 2026 10:08:55 +0200 Subject: Add XML docs to small model enums and remove CS1591 suppressions --- .../Configuration/ImageSavingConvention.cs | 12 ++++++++++-- MediaBrowser.Model/Dto/IHasServerId.cs | 7 ++++++- MediaBrowser.Model/Dto/MediaSourceType.cs | 16 ++++++++++++++-- MediaBrowser.Model/Dto/RatingType.cs | 12 ++++++++++-- MediaBrowser.Model/Library/PlayAccess.cs | 12 ++++++++++-- MediaBrowser.Model/LiveTv/DayPattern.cs | 16 ++++++++++++++-- MediaBrowser.Model/LiveTv/LiveTvServiceStatus.cs | 12 ++++++++++-- MediaBrowser.Model/MediaInfo/TransportStreamTimestamp.cs | 16 ++++++++++++++-- 8 files changed, 88 insertions(+), 15 deletions(-) (limited to 'MediaBrowser.Model') diff --git a/MediaBrowser.Model/Configuration/ImageSavingConvention.cs b/MediaBrowser.Model/Configuration/ImageSavingConvention.cs index 485a4d2f80..c67f379fde 100644 --- a/MediaBrowser.Model/Configuration/ImageSavingConvention.cs +++ b/MediaBrowser.Model/Configuration/ImageSavingConvention.cs @@ -1,10 +1,18 @@ -#pragma warning disable CS1591 - namespace MediaBrowser.Model.Configuration { + /// + /// The convention used for naming saved images. + /// public enum ImageSavingConvention { + /// + /// The legacy naming convention. + /// Legacy, + + /// + /// The naming convention compatible with other media servers and metadata managers. + /// Compatible } } diff --git a/MediaBrowser.Model/Dto/IHasServerId.cs b/MediaBrowser.Model/Dto/IHasServerId.cs index c754d276c5..49452d736a 100644 --- a/MediaBrowser.Model/Dto/IHasServerId.cs +++ b/MediaBrowser.Model/Dto/IHasServerId.cs @@ -1,10 +1,15 @@ #nullable disable -#pragma warning disable CS1591 namespace MediaBrowser.Model.Dto { + /// + /// Interface for DTOs that reference the id of the server they originate from. + /// public interface IHasServerId { + /// + /// Gets the server id. + /// string ServerId { get; } } } diff --git a/MediaBrowser.Model/Dto/MediaSourceType.cs b/MediaBrowser.Model/Dto/MediaSourceType.cs index 42314d5198..ca6649e64b 100644 --- a/MediaBrowser.Model/Dto/MediaSourceType.cs +++ b/MediaBrowser.Model/Dto/MediaSourceType.cs @@ -1,11 +1,23 @@ -#pragma warning disable CS1591 - namespace MediaBrowser.Model.Dto { + /// + /// The type of a media source. + /// public enum MediaSourceType { + /// + /// A default media source. + /// Default = 0, + + /// + /// A grouping of media sources. + /// Grouping = 1, + + /// + /// A placeholder media source, for example a disc that has to be inserted. + /// Placeholder = 2 } } diff --git a/MediaBrowser.Model/Dto/RatingType.cs b/MediaBrowser.Model/Dto/RatingType.cs index 033776f9c6..2c2b7b705d 100644 --- a/MediaBrowser.Model/Dto/RatingType.cs +++ b/MediaBrowser.Model/Dto/RatingType.cs @@ -1,10 +1,18 @@ -#pragma warning disable CS1591 - namespace MediaBrowser.Model.Dto { + /// + /// The type of a community rating. + /// public enum RatingType { + /// + /// The rating is a numeric score. + /// Score, + + /// + /// The rating is based on likes. + /// Likes } } diff --git a/MediaBrowser.Model/Library/PlayAccess.cs b/MediaBrowser.Model/Library/PlayAccess.cs index a2f263ce54..22daaf7254 100644 --- a/MediaBrowser.Model/Library/PlayAccess.cs +++ b/MediaBrowser.Model/Library/PlayAccess.cs @@ -1,10 +1,18 @@ -#pragma warning disable CS1591 - namespace MediaBrowser.Model.Library { + /// + /// The play access of an item. + /// public enum PlayAccess { + /// + /// The item can be played. + /// Full = 0, + + /// + /// The item cannot be played. + /// None = 1 } } diff --git a/MediaBrowser.Model/LiveTv/DayPattern.cs b/MediaBrowser.Model/LiveTv/DayPattern.cs index 17efe39088..dab69e8974 100644 --- a/MediaBrowser.Model/LiveTv/DayPattern.cs +++ b/MediaBrowser.Model/LiveTv/DayPattern.cs @@ -1,11 +1,23 @@ -#pragma warning disable CS1591 - namespace MediaBrowser.Model.LiveTv { + /// + /// The day pattern of a recurring timer. + /// public enum DayPattern { + /// + /// Every day. + /// Daily, + + /// + /// Monday through Friday. + /// Weekdays, + + /// + /// Saturday and Sunday. + /// Weekends } } diff --git a/MediaBrowser.Model/LiveTv/LiveTvServiceStatus.cs b/MediaBrowser.Model/LiveTv/LiveTvServiceStatus.cs index 72a0e2d7bf..a3df1dc411 100644 --- a/MediaBrowser.Model/LiveTv/LiveTvServiceStatus.cs +++ b/MediaBrowser.Model/LiveTv/LiveTvServiceStatus.cs @@ -1,10 +1,18 @@ -#pragma warning disable CS1591 - namespace MediaBrowser.Model.LiveTv { + /// + /// The status of a live TV service. + /// public enum LiveTvServiceStatus { + /// + /// The service is available. + /// Ok = 0, + + /// + /// The service is unavailable. + /// Unavailable = 1 } } diff --git a/MediaBrowser.Model/MediaInfo/TransportStreamTimestamp.cs b/MediaBrowser.Model/MediaInfo/TransportStreamTimestamp.cs index b7ee5747ab..1988dd8078 100644 --- a/MediaBrowser.Model/MediaInfo/TransportStreamTimestamp.cs +++ b/MediaBrowser.Model/MediaInfo/TransportStreamTimestamp.cs @@ -1,11 +1,23 @@ -#pragma warning disable CS1591 - namespace MediaBrowser.Model.MediaInfo { + /// + /// The type of timestamps used in a transport stream. + /// public enum TransportStreamTimestamp { + /// + /// The stream contains no timestamps. + /// None, + + /// + /// The stream contains zero-value timestamps. + /// Zero, + + /// + /// The stream contains valid timestamps. + /// Valid } } -- cgit v1.2.3