2019-10-11 12:09:21 +08:00
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
|
|
namespace osu.Game.Online.API.Requests
|
|
|
|
{
|
|
|
|
public abstract class ResponseWithCursor
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// A collection of parameters which should be passed to the search endpoint to fetch the next page.
|
|
|
|
/// </summary>
|
|
|
|
[JsonProperty("cursor")]
|
|
|
|
public dynamic CursorJson;
|
|
|
|
}
|
2020-05-12 02:18:47 +08:00
|
|
|
|
|
|
|
public abstract class ResponseWithCursor<T> : ResponseWithCursor where T : class
|
|
|
|
{
|
|
|
|
[JsonProperty("cursor")]
|
|
|
|
public T Cursor;
|
|
|
|
}
|
2019-10-11 12:09:21 +08:00
|
|
|
}
|