Esempio n. 1
0
 public Nutrients(Nutrients nutrients)
 {
     if (nutrients != null)
     {
         Energy        = nutrients.Energy;
         Proteins      = nutrients.Proteins;
         Carbohydrates = nutrients.Carbohydrates;
         TotalFats     = nutrients.TotalFats;
         Diet          = nutrients.Diet;
     }
 }
 public UserProfile(UserProfile userProfile)
 {
     if (userProfile != null)
     {
         Age      = userProfile.Age;
         Height   = userProfile.Height;
         Weight   = userProfile.Weight;
         Gender   = userProfile.Gender;
         Activity = userProfile.Activity;
         Diet     = userProfile.Diet;
     }
 }