import { Injectable } from '@angular/core'; import { Observable } from 'rxjs'; import { RPCService } from '@loafer/ng-rpc'; import { Infra } from '@overflow/commons-typescript/model/infra'; import { Domain } from '@overflow/commons-typescript/model/domain'; import { PageParams } from '@overflow/commons-typescript/model/commons/PageParams'; import { Page } from '@overflow/commons-typescript/model/commons/Page'; @Injectable() export class InfraService { public constructor( private rpcService: RPCService, ) { } // public readAllByDomain(domain: Domain, pageParams: PageParams): Observable { // return this.rpcService.call('InfraService.readAllByDomain', domain, pageParams); // } public readAllByProbeID(probeID: number, pageParams: PageParams): Observable> { return this.rpcService.call>('InfraService.readAllByProbeID', probeID, pageParams); } public read(id: string): Observable { return this.rpcService.call('InfraService.read', id); } }