2018-04-06 11:02:18 +00:00
|
|
|
import { Injectable } from '@angular/core';
|
2018-06-04 08:25:29 +00:00
|
|
|
import { Observable } from 'rxjs';
|
2018-04-06 11:02:18 +00:00
|
|
|
|
2018-05-24 06:44:13 +00:00
|
|
|
import { RPCService } from '@loafer/ng-rpc';
|
2018-04-06 11:02:18 +00:00
|
|
|
|
2018-05-02 08:25:38 +00:00
|
|
|
import { Target } from '@overflow/commons-typescript/model/target';
|
2018-04-06 11:02:18 +00:00
|
|
|
|
|
|
|
|
|
|
|
@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
|
|
|
}
|
|
|
|
|
|
|
|
}
|