forked from JohnnyCrazy/SpotifyAPI-NET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPaging.cs
More file actions
27 lines (24 loc) · 884 Bytes
/
Paging.cs
File metadata and controls
27 lines (24 loc) · 884 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
using System.Collections.Generic;
namespace SpotifyAPI.Web
{
public class Paging<T> : IPaginatable<T>
{
public string? Href { get; set; } = default!;
public List<T>? Items { get; set; } = default!;
public int? Limit { get; set; } = default!;
public string? Next { get; set; } = default!;
public int? Offset { get; set; } = default!;
public string? Previous { get; set; } = default!;
public int? Total { get; set; } = default!;
}
public class Paging<T, TNext> : IPaginatable<T, TNext>
{
public string? Href { get; set; } = default!;
public List<T>? Items { get; set; } = default!;
public int? Limit { get; set; } = default!;
public string? Next { get; set; } = default!;
public int? Offset { get; set; } = default!;
public string? Previous { get; set; } = default!;
public int? Total { get; set; } = default!;
}
}