UNPKG

@georgemiao/qbit.js

Version:

a qBittorrent library made with typescript

37 lines 864 B
export class Application { /** * Create a qBittorrent application manager */ constructor(qbit) { this.qbit = qbit; } /** * Shutdown the qBittorrent instance and destroy the client. */ async shutdown() { await this.qbit.api.shutdown(); this.qbit.destroyed = true; } /** * Get the version * @returns qBittorrent version */ async getVersion() { return this.qbit.api.getApplicationVersion(); } /** * Get the api version * @returns qBittorrent api version */ async getApiVersion() { return this.qbit.api.getApiVersion(); } /** * Get qBittorrent build info * @returns qBittorrent build info */ async getBuildInfo() { return this.qbit.api.getBuildInfo(); } } //# sourceMappingURL=Application.js.map