Ejemplo n.º 1
0
        public ExerciseActivity(Data.ExerciseData exercise, TimeSpan time)
        {
            ActivityType = "Exercise";
            ActivityTime = time;
            Onset = TimeSpan.FromHours(1);

            Exercise = exercise;
            Description = exercise.Name;
        }
Ejemplo n.º 2
0
        public FoodActivity(Data.FoodData food, TimeSpan time)
        {
            ActivityType = "Food";
            ActivityTime = time;
            Onset = TimeSpan.FromHours(2);

            Food = food;
            Description = food.Name;
        }