mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 02:31:45 +00:00
15 lines
611 B
TypeScript
15 lines
611 B
TypeScript
import { ScrobblerPluginConfig } from '../index';
|
|
import { SetConfType } from '../main';
|
|
|
|
import type { SongInfo } from '@/providers/song-info';
|
|
|
|
export abstract class ScrobblerBase {
|
|
public abstract isSessionCreated(config: ScrobblerPluginConfig): boolean;
|
|
|
|
public abstract createSession(config: ScrobblerPluginConfig, setConfig: SetConfType): Promise<ScrobblerPluginConfig>;
|
|
|
|
public abstract setNowPlaying(songInfo: SongInfo, config: ScrobblerPluginConfig, setConfig: SetConfType): void;
|
|
|
|
public abstract addScrobble(songInfo: SongInfo, config: ScrobblerPluginConfig, setConfig: SetConfType): void;
|
|
}
|