import { Injectable } from '@angular/core'; import { Observable } from 'rxjs'; import { RPCService } from '@loafer/ng-rpc'; import { Target } from '@overflow/commons-typescript/model/target'; import { Host, Service } from '@overflow/commons-typescript/model/discovery'; @Injectable() export class TargetService { public constructor( private rpcService: RPCService, ) { } public registDiscoveredTargets(probeID: number, hosts: Host[], services: Service[]): Observable { return this.rpcService.call('TargetService.registDiscoveredTargets', probeID, hosts, services); } public modify(target: Target): Observable { return this.rpcService.call('TargetService.modify', target); } }