yandex-music
Version:
Creative and progressive Node.js framework for applications that interact with yandex music
42 lines • 1.35 kB
TypeScript
import { Likes } from "..";
import { List, AlbumInterface } from "../../../interfaces";
interface AlbumsGet {
id: number;
timestamp: string;
}
interface AlbumsRich {
album: AlbumInterface;
timestamp: string;
}
export declare class Albums {
private readonly likes;
constructor(likes: Likes);
/**
* Mark "I like" the album/albums.
* @param {List} ids The unique identifier of the album or albums.
* @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 album/albums.
* @param {List} ids The unique identifier of the album or albums.
* @param {string} user_id Unique user ID.
* @returns OK if the request is successful.
*/
remove(ids: List, user_id?: number): Promise<string>;
/**
* Getting albums marked "I like".
* @param {number} user_id Unique user ID.
* @returns Short albums info.
*/
get(user_id?: number): Promise<AlbumsGet[]>;
/**
* Getting albums marked "I like".
* @param {number} user_id Unique user ID.
* @returns Rich albums info.
*/
rich(user_id?: number): Promise<AlbumsRich[]>;
}
export {};
//# sourceMappingURL=index.d.ts.map