mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 06:57:39 +08:00
Use IReadOnlyCollection instead of List in SearchBeatmapSetsRequest
This commit is contained in:
parent
03c5057a92
commit
6fd3686c4d
@ -23,11 +23,11 @@ namespace osu.Game.Online.API.Requests
|
||||
|
||||
public SearchLanguage Language { get; }
|
||||
|
||||
public List<SearchExtra> Extra { get; }
|
||||
public IReadOnlyCollection<SearchExtra> Extra { get; }
|
||||
|
||||
public SearchPlayed Played { get; }
|
||||
|
||||
public List<SearchRank> Ranks { get; }
|
||||
public IReadOnlyCollection<SearchRank> Ranks { get; }
|
||||
|
||||
private readonly string query;
|
||||
private readonly RulesetInfo ruleset;
|
||||
@ -44,8 +44,8 @@ namespace osu.Game.Online.API.Requests
|
||||
SortDirection sortDirection = SortDirection.Descending,
|
||||
SearchGenre genre = SearchGenre.Any,
|
||||
SearchLanguage language = SearchLanguage.Any,
|
||||
List<SearchExtra> extra = null,
|
||||
List<SearchRank> ranks = null,
|
||||
IReadOnlyCollection<SearchExtra> extra = null,
|
||||
IReadOnlyCollection<SearchRank> ranks = null,
|
||||
SearchPlayed played = SearchPlayed.Any)
|
||||
{
|
||||
this.query = string.IsNullOrEmpty(query) ? string.Empty : System.Uri.EscapeDataString(query);
|
||||
|
Loading…
Reference in New Issue
Block a user