2015-11-06 17:34:07 -08:00
|
|
|
import {Date, DateWrapper} from 'angular2/src/facade/lang';
|
|
|
|
|
import {Map} from 'angular2/src/facade/collection';
|
2015-05-27 14:57:54 -07:00
|
|
|
|
|
|
|
|
export class MeasureValues {
|
2016-04-12 09:40:37 -07:00
|
|
|
constructor(public runIndex: number, public timeStamp: Date,
|
|
|
|
|
public values: {[key: string]: any}) {}
|
2015-05-27 14:57:54 -07:00
|
|
|
|
|
|
|
|
toJson() {
|
|
|
|
|
return {
|
|
|
|
|
'timeStamp': DateWrapper.toJson(this.timeStamp),
|
|
|
|
|
'runIndex': this.runIndex,
|
|
|
|
|
'values': this.values
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|