UNPKG

lunify.js

Version:

A basic api wrapper for the spotify api covering the oauth routes.

22 lines (21 loc) 646 B
import { Lunify } from '../..'; import { ApiDevice } from '../../../interfaces/player'; import { PartialUser, User } from '../user'; export declare class PlayerDevice { client: Lunify; user: User | PartialUser; id?: string; active: boolean; privateSession: boolean; restricted: boolean; name: string; type: string; volume: number; supportsVolume: boolean; constructor(client: Lunify, user: User | PartialUser, data: ApiDevice); /** * Transfer the current playback to this device * @returns Whenever the refresh was successfull or not */ transferPlaybackTo(): Promise<boolean>; }