C# Класс Spontaneous.WebApp.Services.UserProfileFacade

Supplies user profile facade functionality.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
AppName ApplicationName

Открытые методы

Метод Описание
CheckIfJustCreatedProfile ( System userProfile ) : bool
GetAllUserProfiles ( ) : System.Web.Security.MembershipUserCollection
GetCurrentUserType ( ) : string
GetUserInsulinCalcProfile ( ) : UserBaseInsulinCalcProfile
GetUserInsulinCalcProfileModel ( ) : UserBaseInsulinCalcProfileModel
GetUserProfile ( ) : ProfileBase

Get current user profile.

GetUserProfile ( string userName ) : ProfileBase
TraceSuggestValue ( string q, double lat, double lng ) : void

Adding tracing to specific user.

UserProfileFacade ( ApplicationName app ) : System

Приватные методы

Метод Описание
FindNearestCoupon ( List couponsList, Location location ) : CouponType
GetClosesMedal ( ) : MedalProgress
GetCoupon ( SpontaneousUserModel userData, List couponsList, UserActivity userActivity ) : CouponType
GetLastMeal ( ) : Meal
GetLastMedal ( ) : UserMedalModel
GetMedals ( ) : List
GetTotalPoints ( ) : int
MedalsNotificationCheck ( ) : bool
SaveUserActivity ( UserActivity userActivity, List allCoupons ) : void
TraceAprooveMeal ( IEnumerable meal ) : void
TraceBasicRestMeal ( Meal meal ) : void
TurnOffMedalFlag ( ) : bool
UpdateCarbsInLastMeal ( string restaurnatId, int menuPartId, int dishId, double totalCarbohydrate ) : bool
UpdatePostMealSugar ( int sugarLevel ) : void
UpdatePreMealSugar ( int sugarLevel, int targetSugar ) : void
VerifyUserLastMeal ( ) : double
factoryMedalChecker ( ) : MedalRequirementsChecker

Описание методов

CheckIfJustCreatedProfile() публичный статический Метод

public static CheckIfJustCreatedProfile ( System userProfile ) : bool
userProfile System
Результат bool

GetAllUserProfiles() публичный статический Метод

public static GetAllUserProfiles ( ) : System.Web.Security.MembershipUserCollection
Результат System.Web.Security.MembershipUserCollection

GetCurrentUserType() публичный статический Метод

public static GetCurrentUserType ( ) : string
Результат string

GetUserInsulinCalcProfile() публичный статический Метод

public static GetUserInsulinCalcProfile ( ) : UserBaseInsulinCalcProfile
Результат Spontaneous.DataModel.UserBaseInsulinCalcProfile

GetUserInsulinCalcProfileModel() публичный статический Метод

public static GetUserInsulinCalcProfileModel ( ) : UserBaseInsulinCalcProfileModel
Результат Spontaneous.WebApp.Models.UserBaseInsulinCalcProfileModel

GetUserProfile() публичный статический Метод

Get current user profile.
public static GetUserProfile ( ) : ProfileBase
Результат System.Web.Profile.ProfileBase

GetUserProfile() публичный статический Метод

public static GetUserProfile ( string userName ) : ProfileBase
userName string
Результат System.Web.Profile.ProfileBase

TraceSuggestValue() публичный Метод

Adding tracing to specific user.
public TraceSuggestValue ( string q, double lat, double lng ) : void
q string
lat double
lng double
Результат void

UserProfileFacade() публичный Метод

public UserProfileFacade ( ApplicationName app ) : System
app ApplicationName
Результат System

Описание свойств

AppName публичное свойство

public ApplicationName AppName
Результат ApplicationName