2018-04-06 20:02:18 +09:00
|
|
|
import { Injectable } from '@angular/core';
|
2018-06-04 17:25:29 +09:00
|
|
|
import { Observable } from 'rxjs';
|
2018-04-06 20:02:18 +09:00
|
|
|
|
|
|
|
import 'rxjs/add/operator/map';
|
|
|
|
|
2018-05-24 15:44:13 +09:00
|
|
|
import { RPCService } from '@loafer/ng-rpc';
|
2018-05-02 17:09:39 +09:00
|
|
|
import { MetaCrawler } from '@overflow/commons-typescript/model/meta';
|
|
|
|
import { MetaSensorDisplayItem } from '@overflow/commons-typescript/model/meta';
|
2018-04-06 20:02:18 +09:00
|
|
|
|
|
|
|
|
|
|
|
@Injectable()
|
|
|
|
export class MetaSensorDisplayItemService {
|
|
|
|
|
|
|
|
public constructor(
|
|
|
|
private rpcService: RPCService,
|
|
|
|
) {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2018-06-06 00:51:49 +09:00
|
|
|
public readAllByCrawlerID(metaCrawlerID: number): Observable<MetaSensorDisplayItem[]> {
|
|
|
|
return this.rpcService.call('MetaSensorDisplayItemService.readAllByCrawler', metaCrawlerID);
|
2018-04-06 20:02:18 +09:00
|
|
|
}
|
|
|
|
}
|