import { Injectable } from '@angular/core'; import { Observable } from 'rxjs/Observable'; import 'rxjs/add/operator/map'; import { RPCService } from '@loafer/ng-rpc'; import { Probe, ProbeHost } from '@overflow/commons-typescript/model/probe'; import { Domain } from '@overflow/commons-typescript/model/domain'; @Injectable() export class ProbeHostService { public constructor( private rpcService: RPCService, ) { } public readByProbeID(probeID: number): Observable { return this.rpcService.call('ProbeHostService.readByProbeID', probeID); } public readAllByDomainID(domainID: number): Observable { return this.rpcService.call('ProbeHostService.readAllByDomainID', domainID); } public read(id: number): Observable { return this.rpcService.call('ProbeHostService.read', id); } }