2015-07-26 12:59:13 +01:00
|
|
|
using System.Collections.Generic;
|
2020-03-09 19:47:39 +00:00
|
|
|
using Newtonsoft.Json;
|
2015-07-26 12:59:13 +01:00
|
|
|
|
|
|
|
namespace SpotifyAPI.Web.Models
|
|
|
|
{
|
2020-03-09 19:47:39 +00:00
|
|
|
public class CursorPaging<T> : BasicModel
|
|
|
|
{
|
|
|
|
[JsonProperty("href")]
|
|
|
|
public string Href { get; set; }
|
2015-07-26 12:59:13 +01:00
|
|
|
|
2020-03-09 19:47:39 +00:00
|
|
|
[JsonProperty("items")]
|
|
|
|
public List<T> Items { get; set; }
|
2015-07-26 12:59:13 +01:00
|
|
|
|
2020-03-09 19:47:39 +00:00
|
|
|
[JsonProperty("limit")]
|
|
|
|
public int Limit { get; set; }
|
2015-07-26 12:59:13 +01:00
|
|
|
|
2020-03-09 19:47:39 +00:00
|
|
|
[JsonProperty("next")]
|
|
|
|
public string Next { get; set; }
|
2015-07-26 12:59:13 +01:00
|
|
|
|
2020-03-09 19:47:39 +00:00
|
|
|
[JsonProperty("cursors")]
|
|
|
|
public Cursor Cursors { get; set; }
|
2015-07-26 12:59:13 +01:00
|
|
|
|
2020-03-09 19:47:39 +00:00
|
|
|
[JsonProperty("total")]
|
|
|
|
public int Total { get; set; }
|
2019-05-20 15:57:24 +01:00
|
|
|
|
2020-03-09 19:47:39 +00:00
|
|
|
public bool HasNext()
|
|
|
|
{
|
|
|
|
return !string.IsNullOrEmpty(Next);
|
2015-07-26 12:59:13 +01:00
|
|
|
}
|
2020-03-09 19:47:39 +00:00
|
|
|
}
|
|
|
|
}
|