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 { return this.appWindow.getFavorites(); } }