2020-05-04 22:02:53 +01:00
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
namespace SpotifyAPI.Web
|
|
|
|
{
|
2020-06-13 11:55:48 +01:00
|
|
|
public class CursorPaging<T> : IPaginatable<T>
|
|
|
|
{
|
|
|
|
public string Href { get; set; } = default!;
|
|
|
|
public List<T> Items { get; set; } = default!;
|
|
|
|
public int Limit { get; set; }
|
|
|
|
public string Next { get; set; } = default!;
|
|
|
|
public Cursor Cursors { get; set; } = default!;
|
|
|
|
public int Total { get; set; }
|
|
|
|
}
|
|
|
|
|
|
|
|
public class CursorPaging<T, TNext> : IPaginatable<T, TNext>
|
2020-05-04 22:02:53 +01:00
|
|
|
{
|
2020-05-25 17:00:38 +01:00
|
|
|
public string Href { get; set; } = default!;
|
|
|
|
public List<T> Items { get; set; } = default!;
|
2020-05-08 09:25:33 +01:00
|
|
|
public int Limit { get; set; }
|
2020-05-25 17:00:38 +01:00
|
|
|
public string Next { get; set; } = default!;
|
|
|
|
public Cursor Cursors { get; set; } = default!;
|
2020-05-08 09:25:33 +01:00
|
|
|
public int Total { get; set; }
|
2020-05-04 22:02:53 +01:00
|
|
|
}
|
|
|
|
}
|
2020-05-25 17:00:38 +01:00
|
|
|
|