member_webapp/@overflow/meta/service/meta-sensor-display-item.service.ts

24 lines
613 B
TypeScript
Raw Normal View History

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
import 'rxjs/add/operator/map';
2018-05-24 06:44:13 +00:00
import { RPCService } from '@loafer/ng-rpc';
2018-05-02 08:09:39 +00:00
import { MetaCrawler } from '@overflow/commons-typescript/model/meta';
import { MetaSensorDisplayItem } from '@overflow/commons-typescript/model/meta';
2018-04-06 11:02:18 +00:00
@Injectable()
export class MetaSensorDisplayItemService {
public constructor(
private rpcService: RPCService,
) {
}
2018-05-29 10:17:16 +00:00
public readAllByCrawler(c: MetaCrawler): Observable<MetaSensorDisplayItem[]> {
2018-04-06 11:02:18 +00:00
return this.rpcService.call('MetaSensorDisplayItemService.readAllByCrawler', c);
}
}