lunify.js
Version:
A basic api wrapper for the spotify api covering the oauth routes.
22 lines (21 loc) • 624 B
TypeScript
import type { ApiDevice } from "../../../interfaces/player";
import type { Lunify } from "../..";
import type { Player } from ".";
export declare class PlayerDevice {
client: Lunify;
player: Player;
id?: string;
active: boolean;
privateSession: boolean;
restricted: boolean;
name: string;
type: string;
volume: number;
supportsVolume: boolean;
constructor(client: Lunify, player: Player, data: ApiDevice);
/**
* Transfer the current playback to this device
* @returns Whenever the refresh was successfull or not
*/
transferPlaybackTo(): Promise<boolean>;
}