17 lines
529 B
TypeScript
17 lines
529 B
TypeScript
import { injectable } from 'inversify';
|
|
import { inject } from '../../core/inject';
|
|
import type { NhentaiAppWindowInterface } from './nhentai-app-window-interface';
|
|
|
|
@injectable()
|
|
export class NhentaiApi implements NhentaiApiInterface {
|
|
private readonly appWindow: NhentaiAppWindowInterface;
|
|
|
|
public constructor(@inject('nhentai-app-window') appWindow: NhentaiAppWindowInterface) {
|
|
this.appWindow = appWindow;
|
|
}
|
|
|
|
public getFavorites(): Promise<NodeJS.ReadableStream> {
|
|
return this.appWindow.getFavorites();
|
|
}
|
|
}
|