import { Injectable } from '@angular/core'; import { Observable } from 'rxjs/Observable'; import { RPCService } from '@loafer/ng-rpc/service'; import { DiscoveryStartInfo, DiscoveryZone, DiscoveryHost, DiscoveryPort, DiscoveryService as M_DiscoveryService, Zone, Host, Port, Service, } from '../model'; import { Probe } from 'packages/probe/model'; @Injectable() export class TargetDiscoveryService { public constructor( private rpcService: RPCService, ) { } public saveAllTarget(hosts: Host[], probe: Probe): Observable { return this.rpcService.call('TargetDiscoveryService.saveAllTarget', hosts, probe); } }