member_webapp/src/packages/meta/crawler-input-item/service/crawler-input-item.service.ts

24 lines
636 B
TypeScript
Raw Normal View History

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';
2018-05-02 08:09:39 +00:00
import { MetaCrawlerInputItem } from '@overflow/commons-typescript/model/meta';
import { MetaCrawler } from '@overflow/commons-typescript/model/meta';
2018-04-06 11:02:18 +00:00
@Injectable()
export class MetaCrawlerInputItemService {
public constructor(
private rpcService: RPCService,
) {
}
public readAllByMetaCrawler(c: MetaCrawler): Observable<MetaCrawlerInputItem[]> {
return this.rpcService.call('MetaCrawlerInputItemService.readAllByMetaCrawler', c);
}
}