2015-03-06 11:46:33 -08:00
|
|
|
import { Date, DateWrapper } from 'angular2/src/facade/lang';
|
2015-02-18 09:04:02 -08:00
|
|
|
import { StringMap } from 'angular2/src/facade/collection';
|
2015-02-17 14:30:24 -08:00
|
|
|
|
|
|
|
|
export class MeasureValues {
|
|
|
|
|
timeStamp:Date;
|
|
|
|
|
runIndex:number;
|
2015-02-18 09:04:02 -08:00
|
|
|
values:StringMap;
|
2015-02-17 14:30:24 -08:00
|
|
|
|
2015-02-18 09:04:02 -08:00
|
|
|
constructor(runIndex:number, timeStamp:Date, values:StringMap) {
|
2015-02-17 14:30:24 -08:00
|
|
|
this.timeStamp = timeStamp;
|
|
|
|
|
this.runIndex = runIndex;
|
|
|
|
|
this.values = values;
|
|
|
|
|
}
|
2015-03-06 11:46:33 -08:00
|
|
|
|
|
|
|
|
toJson() {
|
|
|
|
|
return {
|
|
|
|
|
'timeStamp': DateWrapper.toJson(this.timeStamp),
|
|
|
|
|
'runIndex': this.runIndex,
|
|
|
|
|
'values': this.values
|
|
|
|
|
};
|
|
|
|
|
}
|
2015-02-17 14:30:24 -08:00
|
|
|
}
|