C# Class Spontaneous.WebApp.Services.ProfileExtensionMethods

显示文件 Open project: pashkov/Spontaneous

Public Methods

Method Description
FetchUserData ( System.Guid userModelId ) : SpontaneousUserModel
GetUserBaseInsulinCalcProfile ( this userData ) : UserBaseInsulinCalcProfile
GetUserData ( this userData ) : SpontaneousUserModel
GetUserMeal ( this userData, System.Guid mealId ) : Meal
GetUserType ( this userData ) : string
SetUserData ( this userData, SpontaneousUserModel usermodel ) : void
SetUserInsulinCalcProfile ( this userProfile, UserBaseInsulinCalcProfileModel userInsulineProfile ) : void
SetUserType ( this userProfile, string userType ) : void
ToMeal ( this meal ) : Meal

Creates new instance of meal.

Private Methods

Method Description
UpsertUserModel ( SpontaneousUserModel usermodel ) : void

Method Details

FetchUserData() public static method

public static FetchUserData ( System.Guid userModelId ) : SpontaneousUserModel
userModelId System.Guid
return Spontaneous.DataModel.SpontaneousUserModel

GetUserBaseInsulinCalcProfile() public static method

public static GetUserBaseInsulinCalcProfile ( this userData ) : UserBaseInsulinCalcProfile
userData this
return Spontaneous.DataModel.UserBaseInsulinCalcProfile

GetUserData() public static method

public static GetUserData ( this userData ) : SpontaneousUserModel
userData this
return Spontaneous.DataModel.SpontaneousUserModel

GetUserMeal() public static method

public static GetUserMeal ( this userData, System.Guid mealId ) : Meal
userData this
mealId System.Guid
return Spontaneous.DataModel.Meal

GetUserType() public static method

public static GetUserType ( this userData ) : string
userData this
return string

SetUserData() public static method

public static SetUserData ( this userData, SpontaneousUserModel usermodel ) : void
userData this
usermodel Spontaneous.DataModel.SpontaneousUserModel
return void

SetUserInsulinCalcProfile() public static method

public static SetUserInsulinCalcProfile ( this userProfile, UserBaseInsulinCalcProfileModel userInsulineProfile ) : void
userProfile this
userInsulineProfile Spontaneous.WebApp.Models.UserBaseInsulinCalcProfileModel
return void

SetUserType() public static method

public static SetUserType ( this userProfile, string userType ) : void
userProfile this
userType string
return void

ToMeal() public static method

Creates new instance of meal.
public static ToMeal ( this meal ) : Meal
meal this
return Spontaneous.DataModel.Meal