aswi2021codebakers-gitlab/src/app/shared/graph-loading/graphcollection.ts @ ec939478
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 |
}
|