2018-04-06 11:02:18 +00:00
|
|
|
import { Injectable } from '@angular/core';
|
|
|
|
import { Observable } from 'rxjs/Observable';
|
|
|
|
|
|
|
|
import 'rxjs/add/operator/map';
|
|
|
|
|
|
|
|
import { RPCService } from '@loafer/ng-rpc/service';
|
|
|
|
|
|
|
|
import { Target } from '../model';
|
|
|
|
|
|
|
|
|
|
|
|
@Injectable()
|
|
|
|
export class TargetService {
|
|
|
|
|
|
|
|
public constructor(
|
|
|
|
private rpcService: RPCService,
|
|
|
|
) {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2018-04-30 10:59:32 +00:00
|
|
|
public modify(target: Target): Observable<Target> {
|
|
|
|
return this.rpcService.call('TargetService.modify', target);
|
2018-04-06 11:02:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|