25 lines
480 B
TypeScript
Raw Normal View History

2018-04-06 20:02:18 +09:00
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs/Observable';
import 'rxjs/add/operator/map';
2018-05-24 15:44:13 +09:00
import { RPCService } from '@loafer/ng-rpc';
2018-04-06 20:02:18 +09:00
2018-05-02 17:25:38 +09:00
import { Target } from '@overflow/commons-typescript/model/target';
2018-04-06 20:02:18 +09:00
@Injectable()
export class TargetService {
public constructor(
private rpcService: RPCService,
) {
}
2018-04-30 19:59:32 +09:00
public modify(target: Target): Observable<Target> {
return this.rpcService.call('TargetService.modify', target);
2018-04-06 20:02:18 +09:00
}
}