Projekt

Obecné

Profil

Stáhnout (309 Bajtů) Statistiky
| Větev: | Tag: | Revize:
1
declare var require: any
2

    
3
export class GraphCollection {
4

    
5
  array;
6

    
7

    
8
  constructor() {
9
    this.array = [];
10
  }
11

    
12
  addGraph(sensorId, data) {
13
    let element : any = {};
14
    element.sensor = sensorId;
15
    element.data = data;
16
    this.array.push(element);
17
  }
18

    
19
  getObject() {
20
    return this.array();
21
  }
22

    
23
}
(1-1/2)