@nepwork/dashboards
Version:
Dashboards for emergencies and monitoring
28 lines (22 loc) • 603 B
text/typescript
import { Injectable } from '@angular/core';
import { Observable, of } from 'rxjs';
import { HgraphService } from '../hgraph.service';
import { HGraph, Graph } from '../model/hgraph.model';
export type TruthStream = Observable<HGraph | Graph>;
({
providedIn: 'root'
})
export class SsotService {
constructor(
private hgraphs: HgraphService
) { }
get graph(): Graph {
return this.hgraphs.graph;
}
get hgraph(): HGraph {
return this.hgraphs.hgraph;
}
get truth(): TruthStream {
return of(this.hgraphs.graph, this.hgraphs.hgraph);
}
}