23 lines
525 B
JavaScript
23 lines
525 B
JavaScript
import { Date, DateWrapper } from 'angular2/src/facade/lang';
|
|
import { StringMap } from 'angular2/src/facade/collection';
|
|
|
|
export class MeasureValues {
|
|
timeStamp:Date;
|
|
runIndex:number;
|
|
values:StringMap;
|
|
|
|
constructor(runIndex:number, timeStamp:Date, values:StringMap) {
|
|
this.timeStamp = timeStamp;
|
|
this.runIndex = runIndex;
|
|
this.values = values;
|
|
}
|
|
|
|
toJson() {
|
|
return {
|
|
'timeStamp': DateWrapper.toJson(this.timeStamp),
|
|
'runIndex': this.runIndex,
|
|
'values': this.values
|
|
};
|
|
}
|
|
}
|