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