yandex-music
Version:
Creative and progressive Node.js framework for applications that interact with yandex music
34 lines • 1.66 kB
TypeScript
import { Rotor } from "..";
import { Union } from "../../interfaces/common";
export declare class Track {
private readonly rotor;
constructor(rotor: Rotor);
/**
*
* @param {string} station Station.
* @param {Union} track_id The unique ID of the track.
* @param {number} total How many seconds of the track were played before the action.
* @param {string} batch_id Unique identifier of the batch of tracks. Returned when receiving tracks.
* @returns OK if the request is successful
*/
started(station: string, track_id: Union, total: number | undefined, batch_id: string): Promise<any>;
/**
*
* @param {string} station Station.
* @param {Union} track_id The unique ID of the track.
* @param {number} total How many seconds of the track were played before the action.
* @param {string} batch_id Unique identifier of the batch of tracks. Returned when receiving tracks.
* @returns OK if the request is successful
*/
finished(station: string, track_id: Union, total: number | undefined, batch_id: string): Promise<string>;
/**
*
* @param {string} station Station.
* @param {Union} track_id The unique ID of the track.
* @param {number} total How many seconds of the track were played before the action.
* @param {string} batch_id Unique identifier of the batch of tracks. Returned when receiving tracks.
* @returns OK if the request is successful
*/
skip(station: string, track_id: Union, total: number | undefined, batch_id: string): Promise<string>;
}
//# sourceMappingURL=index.d.ts.map