UNPKG

yandex-music

Version:

Creative and progressive Node.js framework for applications that interact with yandex music

36 lines 1.2 kB
import { DisLikes } from ".."; import { List, TrackInterface } from "../../../interfaces"; interface TracksGet { library: { uid: number; revision: number; playlistUuid: string; tracks: Array<TrackInterface>; }; } export declare class Tracks { private readonly dislikes; constructor(dislikes: DisLikes); /** * Mark "Do not recommend" to 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 "Do not recommend" 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 "Do not recommend". * @param {number} user_id Unique user ID. * @returns Tracks. */ get(user_id?: number): Promise<TracksGet>; } export {}; //# sourceMappingURL=index.d.ts.map