From 6fdb423bfb1caf973bb2f03b24989e412a63eb9e Mon Sep 17 00:00:00 2001 From: Joseph Vallas Date: Thu, 14 May 2026 19:43:58 -0500 Subject: Fix CA1819 warnings in ChannelFeatures by using IReadOnlyList --- MediaBrowser.Model/Channels/ChannelFeatures.cs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'MediaBrowser.Model/Channels/ChannelFeatures.cs') diff --git a/MediaBrowser.Model/Channels/ChannelFeatures.cs b/MediaBrowser.Model/Channels/ChannelFeatures.cs index 1ca8e80a6f..57803c9765 100644 --- a/MediaBrowser.Model/Channels/ChannelFeatures.cs +++ b/MediaBrowser.Model/Channels/ChannelFeatures.cs @@ -1,6 +1,7 @@ #pragma warning disable CS1591 using System; +using System.Collections.Generic; namespace MediaBrowser.Model.Channels { @@ -8,9 +9,9 @@ namespace MediaBrowser.Model.Channels { public ChannelFeatures(string name, Guid id) { - MediaTypes = Array.Empty(); - ContentTypes = Array.Empty(); - DefaultSortFields = Array.Empty(); + MediaTypes = []; + ContentTypes = []; + DefaultSortFields = []; Name = name; Id = id; @@ -38,13 +39,13 @@ namespace MediaBrowser.Model.Channels /// Gets or sets the media types. /// /// The media types. - public ChannelMediaType[] MediaTypes { get; set; } + public IReadOnlyList MediaTypes { get; set; } /// /// Gets or sets the content types. /// /// The content types. - public ChannelMediaContentType[] ContentTypes { get; set; } + public IReadOnlyList ContentTypes { get; set; } /// /// Gets or sets the maximum number of records the channel allows retrieving at a time. @@ -61,7 +62,7 @@ namespace MediaBrowser.Model.Channels /// Gets or sets the default sort orders. /// /// The default sort orders. - public ChannelItemSortField[] DefaultSortFields { get; set; } + public IReadOnlyList DefaultSortFields { get; set; } /// /// Gets or sets a value indicating whether a sort ascending/descending toggle is supported. -- cgit v1.2.3