Exemple #1
0
        public override Dictionary <string, object> DumpBasicEventData()
        {
            var rv = new Dictionary <string, object>(base.DumpBasicEventData());

            rv.Add("Analysis Status", AnalysisStatus.ToString());
            rv.Add("Calories From Carbs", CaloriesFromCarbs.ToString());
            rv.Add("Calories From Fat", CaloriesFromFat.ToString());
            rv.Add("StressBalance", StressBalance.ToString());
            rv.Add("Maximal VO2", MaximalVO2.ToString());
            rv.Add("Training Effect", TrainingEffect.ToString());
            rv.Add("Recovery Time (sec)", RecoveryTime.ToString());
            rv.Add("Paused Time", PausedTime.ToString());

            rv.Add("Heart Rate at Finish", HeartRate.AtFinish);
            rv.Add("Recovery Heart Rate after 1 Minute", HeartRate.RecoveryHeartRate1Minute);
            rv.Add("Recovery Heart Rate after 2 Minutes", HeartRate.RecoveryHeartRate1Minute);

            rv.Add("Heart Rate Zone - Under", HeartRate.Zones.Under);
            rv.Add("Heart Rate Zone - Aerobic", HeartRate.Zones.Aerobic);
            rv.Add("Heart Rate Zone - Anaerobic", HeartRate.Zones.Anaerobic);
            rv.Add("Heart Rate Zone - FitnessZone", HeartRate.Zones.FitnessZone);
            rv.Add("Heart Rate Zone - RedLine", HeartRate.Zones.RedLine);
            rv.Add("Heart Rate Zone - Over", HeartRate.Zones.Over);

            return(rv);
        }
 /// <summary>
 ///    Получение описания для статуса прохождения анализа
 /// </summary>
 /// <param name="analysisStatus">Статус прохождения анализа</param>
 /// <returns>Описание для статуса прохождения анализа</returns>
 public static string GetAnalysisStatusDescription(this AnalysisStatus analysisStatus)
 {
     return
         (analysisStatus.GetType()
          .GetField(analysisStatus.ToString())
          .GetCustomAttributes(typeof(AnalysisStatusDescriptionAttribute), false)
          .Cast <AnalysisStatusDescriptionAttribute>()
          .First().AnalysisStatusDescription);
 }