import { Injectable } from '@angular/core'; import { NgClient } from '@1backend/ng-client'; @Injectable() export class Service { constructor(private ngClient: NgClient) {} getHi(): Promise { return this.ngClient.call("asdasdasd", "dasfsdf", "GET", "/hi", { }); } getImportedHi(): Promise { return this.ngClient.call("asdasdasd", "dasfsdf", "GET", "/imported-hi", { }); } postInputExample(rect: Rectangle, unit: string): Promise { return this.ngClient.call("asdasdasd", "dasfsdf", "POST", "/input-example", { "rect": rect, "unit": unit }); } getSqlExample(): Promise { return this.ngClient.call("asdasdasd", "dasfsdf", "GET", "/sql-example", { }); } }