16 lines
425 B
TypeScript
Raw Normal View History

2015-08-20 14:28:25 -07:00
import {Date, DateWrapper} from 'angular2/src/core/facade/lang';
import {Map} from 'angular2/src/core/facade/collection';
export class MeasureValues {
constructor(public runIndex: number, public timeStamp: Date,
public values: {[key: string]: any}) {}
toJson() {
return {
'timeStamp': DateWrapper.toJson(this.timeStamp),
'runIndex': this.runIndex,
'values': this.values
};
}
}