mirror of
https://github.com/apricote/Listory.git
synced 2026-01-13 21:21:02 +00:00
feat(api): fetch listens from spotify
This commit is contained in:
parent
f253a66f86
commit
f2065d3f1f
54 changed files with 1180 additions and 256 deletions
36
src/sources/spotify/spotify-api/entities/paging-object.ts
Normal file
36
src/sources/spotify/spotify-api/entities/paging-object.ts
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
export class PagingObject<T = any> {
|
||||
/**
|
||||
* A link to the Web API endpoint returning the full result of the request
|
||||
*/
|
||||
href: string;
|
||||
|
||||
/**
|
||||
* The requested data
|
||||
*/
|
||||
items: T[];
|
||||
|
||||
/**
|
||||
* The maximum number of items in the response (as set in the query or by default).
|
||||
*/
|
||||
limit: number;
|
||||
|
||||
/**
|
||||
* URL to the next page of items. ( null if none)
|
||||
*/
|
||||
next: string;
|
||||
|
||||
/**
|
||||
* The offset of the items returned (as set in the query or by default)
|
||||
*/
|
||||
offset: number;
|
||||
|
||||
/**
|
||||
* URL to the previous page of items. ( null if none)
|
||||
*/
|
||||
previous: string;
|
||||
|
||||
/**
|
||||
* The total number of items available to return.
|
||||
*/
|
||||
total: number;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue