lunify.js
Version:
A basic api wrapper for the spotify api covering the oauth routes.
22 lines (21 loc) • 757 B
TypeScript
import { Lunify, Track } from '../..';
import { ApiEpisode, ApiPlaybackState } from '../../../interfaces/player';
import { PartialUser } from '../user';
import { PlayerDevice } from './Device';
export declare class CurrentPlayback {
client: Lunify;
user: PartialUser;
device: PlayerDevice;
repeat: 'track' | 'context' | false;
shuffle: boolean;
context: Omit<Omit<ApiPlaybackState['context'], 'external_urls'>, 'href'> & {
externalUrls: Record<string, string>;
url: string;
};
timestamp: number;
progress: number;
playing: boolean;
item: Track | ApiEpisode;
playingType: ApiPlaybackState['currently_playing_type'];
constructor(client: Lunify, user: PartialUser, data: ApiPlaybackState);
}