angular-cn/modules/benchpress/src/measure_values.js

23 lines
525 B
JavaScript
Raw Normal View History

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';
export class MeasureValues {
timeStamp:Date;
runIndex:number;
2015-02-18 09:04:02 -08:00
values:StringMap;
2015-02-18 09:04:02 -08:00
constructor(runIndex:number, timeStamp:Date, values:StringMap) {
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
};
}
}