yandex-music
Version:
Creative and progressive Node.js framework for applications that interact with yandex music
36 lines • 1.18 kB
TypeScript
import { Likes } from "..";
import { List, TrackInterface } from "../../../interfaces";
interface TracksGet {
library: {
uid: number;
revision: number;
playlistUuid: string;
tracks: Array<TrackInterface>;
};
}
export declare class Tracks {
private readonly likes;
constructor(likes: Likes);
/**
* Mark "I like" the track/tracks.
* @param {List} ids The unique identifier of the track or tracks.
* @param {string} user_id Unique user ID.
* @returns OK if the request is successful.
*/
add(ids: List, user_id?: number): Promise<string>;
/**
* Remove the "I like" mark from the track/tracks.
* @param {List} ids The unique identifier of the track or tracks.
* @param {string} user_id Unique user ID.
* @returns OK if the request is successful.
*/
remove(ids: List, user_id?: number): Promise<string>;
/**
* Getting tracks marked "I like".
* @param {number} user_id Unique user ID.
* @returns Tracks info.
*/
get(user_id?: number): Promise<TracksGet[]>;
}
export {};
//# sourceMappingURL=index.d.ts.map