Remove unnecessary generic specification on cursor

This commit is contained in:
Dean Herbert
2020-05-14 16:01:07 +09:00
parent c836c9319b
commit facde2c8e1
4 changed files with 26 additions and 23 deletions

View File

@ -3,22 +3,15 @@
using osu.Framework.IO.Network;
using osu.Framework.Extensions.IEnumerableExtensions;
using System.Collections.Generic;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using JetBrains.Annotations;
using osu.Game.Online.API.Requests;
namespace osu.Game.Extensions
{
public class Cursor
{
[UsedImplicitly]
[JsonExtensionData]
public IDictionary<string, JToken> Properties;
}
public static class WebRequestExtensions
{
/// <summary>
/// Add a pagination cursor to the web request in the format required by osu-web.
/// </summary>
public static void AddCursor(this WebRequest webRequest, Cursor cursor)
{
cursor?.Properties.ForEach(x =>