mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-25 23:46:27 +00:00
39 lines
751 B
C#
39 lines
751 B
C#
using System.Collections.Generic;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace SpotifyAPI.Web.Models
|
|
{
|
|
public class Paging<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("offset")]
|
|
public int Offset { get; set; }
|
|
|
|
[JsonProperty("previous")]
|
|
public string Previous { get; set; }
|
|
|
|
[JsonProperty("total")]
|
|
public int Total { get; set; }
|
|
|
|
public bool HasNextPage()
|
|
{
|
|
return Next != null;
|
|
}
|
|
|
|
public bool HasPreviousPage()
|
|
{
|
|
return Previous != null;
|
|
}
|
|
}
|
|
} |