mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-18 13:42:06 +00:00
25 lines
667 B
TypeScript
25 lines
667 B
TypeScript
import type { ScrobblerPluginConfig } from '../index';
|
|
import type { 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;
|
|
}
|