cody-music
Version:
mac osx spotify and itunes music player controller, spotify audio features, itunes and spotify genre, and playlist control
53 lines (52 loc) • 2.02 kB
TypeScript
import { CodyConfig } from "./models";
export declare class MusicStore {
private _spotifyAccessToken;
private _spotifyRefreshToken;
private _apiHeaders;
private _connectServerAuth;
private _spotifyClientSecret;
private _spotifyClientId;
private _spotifyUserId;
private _itunesDesktopEnabled;
private _itunesDesktopTrackingEnabled;
private _spotifyDesktopEnabled;
private _spotifyApiEnabled;
private _itunesAccessGranted;
private _debug;
private _prev_volume_percent;
private static instance;
private constructor();
static getInstance(): MusicStore;
setConfig(config: CodyConfig): void;
setCredentials(creds: any): void;
credentialByKey(key: string): any;
hasSpotifyAccessToken(): boolean;
get spotifyAccessToken(): string;
set spotifyAccessToken(newAccessToken: string);
get prevVolumePercent(): number;
set prevVolumePercent(percent: number);
get itunesAccessGranted(): boolean;
set itunesAccessGranted(granted: boolean);
get spotifyClientSecret(): string;
set spotifyClientSecret(newSpotifyClientSecret: string);
get spotifyClientId(): string;
set spotifyClientId(newSpotifyCliendId: string);
get connectServerAuth(): string;
set connectServerAuth(newConnectServerAuth: string);
get spotifyRefreshToken(): string;
set spotifyRefreshToken(newRefreshToken: string);
get apiHeaders(): any;
set apiHeaders(newApiHeaders: any);
get spotifyUserId(): any;
set spotifyUserId(newSpotifyUserId: any);
get itunesDesktopEnabled(): any;
get itunesDesktopTrackingEnabled(): any;
set itunesDesktopTrackingEnabled(newItunesDesktopTrackingEnabled: any);
set itunesDesktopEnabled(newitunesDesktopEnabled: any);
get spotifyDesktopEnabled(): any;
set spotifyDesktopEnabled(newspotifyDesktopEnabled: any);
get spotifyApiEnabled(): any;
set spotifyApiEnabled(newspotifyApiEnabled: any);
get debug(): boolean;
set debug(isDebug: boolean);
}