mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-10-23 03:27:39 +09:00
Merge pull request #17249 from jonesy827/fix-ca1819-model-dtos
Fix CA1819 warnings in QueryFiltersLegacy
This commit is contained in:
1 file changed
+9
-9
@@ -1,7 +1,7 @@
|
|||||||
#nullable disable
|
#nullable disable
|
||||||
#pragma warning disable CS1591
|
#pragma warning disable CS1591
|
||||||
|
|
||||||
using System;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace MediaBrowser.Model.Querying
|
namespace MediaBrowser.Model.Querying
|
||||||
{
|
{
|
||||||
@@ -9,18 +9,18 @@ namespace MediaBrowser.Model.Querying
|
|||||||
{
|
{
|
||||||
public QueryFiltersLegacy()
|
public QueryFiltersLegacy()
|
||||||
{
|
{
|
||||||
Genres = Array.Empty<string>();
|
Genres = [];
|
||||||
Tags = Array.Empty<string>();
|
Tags = [];
|
||||||
OfficialRatings = Array.Empty<string>();
|
OfficialRatings = [];
|
||||||
Years = Array.Empty<int>();
|
Years = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
public string[] Genres { get; set; }
|
public IReadOnlyList<string> Genres { get; set; }
|
||||||
|
|
||||||
public string[] Tags { get; set; }
|
public IReadOnlyList<string> Tags { get; set; }
|
||||||
|
|
||||||
public string[] OfficialRatings { get; set; }
|
public IReadOnlyList<string> OfficialRatings { get; set; }
|
||||||
|
|
||||||
public int[] Years { get; set; }
|
public IReadOnlyList<int> Years { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user