mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 20:32:55 +08:00
Use char instead of sting for request parameter creation
This commit is contained in:
parent
008d1d697c
commit
c4efceceb2
@ -61,8 +61,8 @@ namespace osu.Game.Tests.Visual.UserInterface
|
|||||||
control.Category.BindValueChanged(c => category.Text = $"Category: {c.NewValue}", true);
|
control.Category.BindValueChanged(c => category.Text = $"Category: {c.NewValue}", true);
|
||||||
control.Genre.BindValueChanged(g => genre.Text = $"Genre: {g.NewValue}", true);
|
control.Genre.BindValueChanged(g => genre.Text = $"Genre: {g.NewValue}", true);
|
||||||
control.Language.BindValueChanged(l => language.Text = $"Language: {l.NewValue}", true);
|
control.Language.BindValueChanged(l => language.Text = $"Language: {l.NewValue}", true);
|
||||||
control.Extra.BindValueChanged(e => extra.Text = $"Extra: {(e.NewValue == null ? "" : string.Join(".", e.NewValue.Select(i => i.ToString().ToLowerInvariant())))}", true);
|
control.Extra.BindValueChanged(e => extra.Text = $"Extra: {(e.NewValue == null ? "" : string.Join('.', e.NewValue.Select(i => i.ToString().ToLowerInvariant())))}", true);
|
||||||
control.Ranks.BindValueChanged(r => ranks.Text = $"Ranks: {(r.NewValue == null ? "" : string.Join(".", r.NewValue.Select(i => i.ToString())))}", true);
|
control.Ranks.BindValueChanged(r => ranks.Text = $"Ranks: {(r.NewValue == null ? "" : string.Join('.', r.NewValue.Select(i => i.ToString())))}", true);
|
||||||
control.Played.BindValueChanged(p => played.Text = $"Played: {p.NewValue}", true);
|
control.Played.BindValueChanged(p => played.Text = $"Played: {p.NewValue}", true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -81,10 +81,10 @@ namespace osu.Game.Online.API.Requests
|
|||||||
req.AddParameter("sort", $"{SortCriteria.ToString().ToLowerInvariant()}_{directionString}");
|
req.AddParameter("sort", $"{SortCriteria.ToString().ToLowerInvariant()}_{directionString}");
|
||||||
|
|
||||||
if (Extra != null && Extra.Any())
|
if (Extra != null && Extra.Any())
|
||||||
req.AddParameter("e", string.Join(".", Extra.Select(e => e.ToString().ToLowerInvariant())));
|
req.AddParameter("e", string.Join('.', Extra.Select(e => e.ToString().ToLowerInvariant())));
|
||||||
|
|
||||||
if (Ranks != null && Ranks.Any())
|
if (Ranks != null && Ranks.Any())
|
||||||
req.AddParameter("r", string.Join(".", Ranks.Select(r => r.ToString())));
|
req.AddParameter("r", string.Join('.', Ranks.Select(r => r.ToString())));
|
||||||
|
|
||||||
if (Played != SearchPlayed.Any)
|
if (Played != SearchPlayed.Any)
|
||||||
req.AddParameter("played", Played.ToString().ToLowerInvariant());
|
req.AddParameter("played", Played.ToString().ToLowerInvariant());
|
||||||
|
Loading…
Reference in New Issue
Block a user