import { AthleteSnapshotModel } from "@elevate/shared/models" ; export class DayStressModel { public ids : number [ ] ; public date : Date ; public timestamp : number ; public types : string [ ] ; public activitiesName : string [ ] ; public athleteSnapshot : AthleteSnapshotModel ; public heartRateStressScore ? : number = null ; public trainingImpulseScore ? : number = null ; public powerStressScore ? : number = null ; public runningStressScore ? : number = null ; public swimStressScore ? : number = null ; public finalStressScore : number = null ; public previewDay : boolean ; constructor ( date , previewDay ) { this . ids = [ ] ; this . date = date ; this . timestamp = date . getTime ( ) ; this . types = [ ] ; this . activitiesName = [ ] ; this . previewDay = previewDay ; } public printHeartRateStressScore ( ) { return ( this . heartRateStressScore ) ? Math . round ( this . heartRateStressScore ) . toString ( ) : "-" ; } public printTrainingImpulseScore ( ) { return ( this . trainingImpulseScore ) ? Math . round ( this . trainingImpulseScore ) . toString ( ) : "-" ; } public printPowerStressScore ( ) { return ( this . powerStressScore ) ? Math . round ( this . powerStressScore ) . toString ( ) : "-" ; } public printRunningStressScore ( ) { return ( this . runningStressScore ) ? Math . round ( this . runningStressScore ) . toString ( ) : "-" ; } public printSwimStressScore ( ) { return ( this . swimStressScore ) ? Math . round ( this . swimStressScore ) . toString ( ) : "-" ; } public printFinalStressScore ( ) { return ( this . finalStressScore ) ? Math . round ( this . finalStressScore ) . toString ( ) : "-" ; } }