C# Class CarbonFitness.BusinessLogic.Implementation.UserProfileBusinessLogic

Inheritance: IUserProfileBusinessLogic
Mostrar archivo Open project: yodiz/CarbonFitness Class Usage Examples

Public Methods

Method Description
GetActivityLevel ( User user ) : ActivityLevelType
GetAge ( User user ) : int
GetBMI ( User user ) : decimal
GetBMR ( User user ) : decimal
GetDailyCalorieNeed ( User user ) : decimal
GetGender ( User user ) : GenderType
GetIdealWeight ( User user ) : decimal
GetLength ( User user ) : decimal
GetWeight ( User user ) : decimal
SaveProfile ( User user, decimal idealWeight, decimal length, decimal weight, int age, string genderName, string activityLevelName ) : void
UserProfileBusinessLogic ( IUserProfileRepository userProfileRepository, IGenderTypeBusinessLogic genderTypeBusinessLogic, IActivityLevelTypeBusinessLogic activityLevelTypeBusinessLogic, ICalorieCalculator calorieCalculator ) : System

Private Methods

Method Description
GetActivityLevelFromString ( string activityLevel ) : ActivityLevelType
GetGenderTypeFromString ( string gender ) : GenderType
GetUserProfile ( User user ) : UserProfile

Method Details

GetActivityLevel() public method

public GetActivityLevel ( User user ) : ActivityLevelType
user CarbonFitness.Data.Model.User
return CarbonFitness.Data.Model.ActivityLevelType

GetAge() public method

public GetAge ( User user ) : int
user CarbonFitness.Data.Model.User
return int

GetBMI() public method

public GetBMI ( User user ) : decimal
user CarbonFitness.Data.Model.User
return decimal

GetBMR() public method

public GetBMR ( User user ) : decimal
user CarbonFitness.Data.Model.User
return decimal

GetDailyCalorieNeed() public method

public GetDailyCalorieNeed ( User user ) : decimal
user CarbonFitness.Data.Model.User
return decimal

GetGender() public method

public GetGender ( User user ) : GenderType
user CarbonFitness.Data.Model.User
return CarbonFitness.Data.Model.GenderType

GetIdealWeight() public method

public GetIdealWeight ( User user ) : decimal
user CarbonFitness.Data.Model.User
return decimal

GetLength() public method

public GetLength ( User user ) : decimal
user CarbonFitness.Data.Model.User
return decimal

GetWeight() public method

public GetWeight ( User user ) : decimal
user CarbonFitness.Data.Model.User
return decimal

SaveProfile() public method

public SaveProfile ( User user, decimal idealWeight, decimal length, decimal weight, int age, string genderName, string activityLevelName ) : void
user CarbonFitness.Data.Model.User
idealWeight decimal
length decimal
weight decimal
age int
genderName string
activityLevelName string
return void

UserProfileBusinessLogic() public method

public UserProfileBusinessLogic ( IUserProfileRepository userProfileRepository, IGenderTypeBusinessLogic genderTypeBusinessLogic, IActivityLevelTypeBusinessLogic activityLevelTypeBusinessLogic, ICalorieCalculator calorieCalculator ) : System
userProfileRepository IUserProfileRepository
genderTypeBusinessLogic IGenderTypeBusinessLogic
activityLevelTypeBusinessLogic IActivityLevelTypeBusinessLogic
calorieCalculator ICalorieCalculator
return System