mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-26 16:06:27 +00:00
31 lines
622 B
C#
31 lines
622 B
C#
using System.Collections.Generic;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace SpotifyAPI.Web.Models
|
|
{
|
|
public class CursorPaging<T> : BasicModel
|
|
{
|
|
[JsonProperty("href")]
|
|
public string Href { get; set; }
|
|
|
|
[JsonProperty("items")]
|
|
public List<T> Items { get; set; }
|
|
|
|
[JsonProperty("limit")]
|
|
public int Limit { get; set; }
|
|
|
|
[JsonProperty("next")]
|
|
public string Next { get; set; }
|
|
|
|
[JsonProperty("cursors")]
|
|
public Cursor Cursors { get; set; }
|
|
|
|
[JsonProperty("total")]
|
|
public int Total { get; set; }
|
|
|
|
public bool HasNext()
|
|
{
|
|
return !string.IsNullOrEmpty(Next);
|
|
}
|
|
}
|
|
} |