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

Показать файл Открыть проект

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

Метод Описание
CalcDistance ( this coupon, LocationModel location ) : void
CalculateCarbsLevel ( this rest ) : int
CalculateHealthState ( this restaurants ) : IEnumerable
ExtendedToString ( this Medals ) : string
GeneralDishToDishModel ( this generalDish, string lng = "en-US" ) : DishModel
IngredientToGeneralDish ( this ingredient, string language = "en-US" ) : GeneralDish
RestaurantOsmToRestaurantBasicData ( this restOsm ) : RestaurantBasicData
RestaurantOsmToRestaurantBasicData ( this restOsm, RestaurantBasicData basicRest ) : RestaurantBasicData
ToCouponType ( this coupon ) : CouponType
ToCouponTypeModel ( this coupon ) : CouponTypeModel
ToCouponTypeModelList ( this couponList ) : List
ToDish ( this item, Dish dish = null ) : Dish
ToDishBasicModel ( this DishesData ) : List
ToDishModel ( this dishData, string restId, bool baseLine, string lang = DefaultLang, RestaurantModel restModel = null ) : DishModel
ToDishModel ( this dishData, string restId, int MenuPId, bool baseLine, string lang = DefaultLang, RestaurantModel restModel = null ) : DishModel
ToDishModel ( this dishData, string restId, int MenuPId, string lang = DefaultLang ) : DishModel
ToDishModel ( this dishData, string restId, string lang = DefaultLang ) : DishModel
ToDishModel ( this DishesData, string RestId, int MenuPId, string lang = DefaultLang, RestaurantModel restaurantModel = null ) : List
ToDishModelBaseLine ( this dishData, string restId, int MenuPId, string lang = DefaultLang, RestaurantModel restModel = null ) : DishModel
ToDishModelBaseLine ( this dishData, string restId, string lang = DefaultLang ) : DishModel
ToDishModelList ( this generalDishList, string lng = "en-US" ) : List
ToMeal ( this portionsModel ) : Meal
ToMealViewModel ( this meal ) : MealViewModel
ToMenuBasicModel ( this MenuData ) : Menu
ToMenuModel ( this MenuData, string RestId, string lang, RestaurantModel restaurantModel = null ) : MenuModel
ToMenuPartBasic ( this menuPartModel ) : MenuPart
ToMenuPartsBasicModel ( this MenuData ) : List
ToMenuPartsModel ( this MenuData, string RestId, string lang, RestaurantModel restaurantModel ) : List
ToPortion ( this portionModel ) : Portion
ToPortionModel ( this portion, string restaurantId ) : PortionModel
ToPortionModel ( this portion, string restaurantId, int menuPartId ) : PortionModel
ToProductCatalogModel ( this productDataList ) : List
ToProductCatalogModel ( this productData ) : ProductCatalogViewModel
ToRecipeModel ( this recipeDataList ) : List
ToRecipeModel ( this recipeData ) : RecipeModel
ToRestaurantBasicModel ( this restaurantData ) : RestaurantBasicData
ToRestaurantModel ( this restaurantDataList, bool withMenu = true ) : List
ToRestaurantModel ( this defaultMenuRest, bool withMenu = true, string lang = DefaultLang ) : RestaurantModel
ToRestaurantModel ( this restaurantData, bool withMenu = true, string lang = DefaultLang, RestaurantModel restModel = null ) : RestaurantModel
ToUserMedalModel ( this Medals, LocationModel location = null ) : List
ToUserMedalModel ( this medal ) : UserMedalModel
ToWeightType ( this weight, Dish dish, string lang = DefaultLang ) : WeightType
ToWeightTypeModel ( this weight, string lang = DefaultLang ) : WeightTypeModel
findDishesInRestList ( this restaurants, string searchText ) : IEnumerable

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

Метод Описание
GetRestauranMappedState ( RestaurantBasicData restaurantData ) : SuspiciousState

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

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

public static CalcDistance ( this coupon, LocationModel location ) : void
coupon this
location Spontaneous.WebApp.Models.LocationModel
Результат void

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

public static CalculateCarbsLevel ( this rest ) : int
rest this
Результат int

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

public static CalculateHealthState ( this restaurants ) : IEnumerable
restaurants this
Результат IEnumerable

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

public static ExtendedToString ( this Medals ) : string
Medals this
Результат string

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

public static GeneralDishToDishModel ( this generalDish, string lng = "en-US" ) : DishModel
generalDish this
lng string
Результат Spontaneous.WebApp.Models.DishModel

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

public static IngredientToGeneralDish ( this ingredient, string language = "en-US" ) : GeneralDish
ingredient this
language string
Результат Spontaneous.DataModel.GeneralDish

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

public static RestaurantOsmToRestaurantBasicData ( this restOsm ) : RestaurantBasicData
restOsm this
Результат Spontaneous.DataModel.RestaurantBasicData

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

public static RestaurantOsmToRestaurantBasicData ( this restOsm, RestaurantBasicData basicRest ) : RestaurantBasicData
restOsm this
basicRest Spontaneous.DataModel.RestaurantBasicData
Результат Spontaneous.DataModel.RestaurantBasicData

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

public static ToCouponType ( this coupon ) : CouponType
coupon this
Результат CouponType

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

public static ToCouponTypeModel ( this coupon ) : CouponTypeModel
coupon this
Результат CouponTypeModel

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

public static ToCouponTypeModelList ( this couponList ) : List
couponList this
Результат List

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

public static ToDish ( this item, Dish dish = null ) : Dish
item this
dish Dish
Результат Dish

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

public static ToDishBasicModel ( this DishesData ) : List
DishesData this
Результат List

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

public static ToDishModel ( this dishData, string restId, bool baseLine, string lang = DefaultLang, RestaurantModel restModel = null ) : DishModel
dishData this
restId string
baseLine bool
lang string
restModel RestaurantModel
Результат DishModel

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

public static ToDishModel ( this dishData, string restId, int MenuPId, bool baseLine, string lang = DefaultLang, RestaurantModel restModel = null ) : DishModel
dishData this
restId string
MenuPId int
baseLine bool
lang string
restModel RestaurantModel
Результат DishModel

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

public static ToDishModel ( this dishData, string restId, int MenuPId, string lang = DefaultLang ) : DishModel
dishData this
restId string
MenuPId int
lang string
Результат DishModel

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

public static ToDishModel ( this dishData, string restId, string lang = DefaultLang ) : DishModel
dishData this
restId string
lang string
Результат DishModel

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

public static ToDishModel ( this DishesData, string RestId, int MenuPId, string lang = DefaultLang, RestaurantModel restaurantModel = null ) : List
DishesData this
RestId string
MenuPId int
lang string
restaurantModel RestaurantModel
Результат List

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

public static ToDishModelBaseLine ( this dishData, string restId, int MenuPId, string lang = DefaultLang, RestaurantModel restModel = null ) : DishModel
dishData this
restId string
MenuPId int
lang string
restModel RestaurantModel
Результат DishModel

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

public static ToDishModelBaseLine ( this dishData, string restId, string lang = DefaultLang ) : DishModel
dishData this
restId string
lang string
Результат DishModel

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

public static ToDishModelList ( this generalDishList, string lng = "en-US" ) : List
generalDishList this
lng string
Результат List

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

public static ToMeal ( this portionsModel ) : Meal
portionsModel this
Результат Meal

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

public static ToMealViewModel ( this meal ) : MealViewModel
meal this
Результат MealViewModel

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

public static ToMenuBasicModel ( this MenuData ) : Menu
MenuData this
Результат Menu

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

public static ToMenuModel ( this MenuData, string RestId, string lang, RestaurantModel restaurantModel = null ) : MenuModel
MenuData this
RestId string
lang string
restaurantModel RestaurantModel
Результат MenuModel

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

public static ToMenuPartBasic ( this menuPartModel ) : MenuPart
menuPartModel this
Результат MenuPart

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

public static ToMenuPartsBasicModel ( this MenuData ) : List
MenuData this
Результат List

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

public static ToMenuPartsModel ( this MenuData, string RestId, string lang, RestaurantModel restaurantModel ) : List
MenuData this
RestId string
lang string
restaurantModel RestaurantModel
Результат List

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

public static ToPortion ( this portionModel ) : Portion
portionModel this
Результат Portion

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

public static ToPortionModel ( this portion, string restaurantId ) : PortionModel
portion this
restaurantId string
Результат PortionModel

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

public static ToPortionModel ( this portion, string restaurantId, int menuPartId ) : PortionModel
portion this
restaurantId string
menuPartId int
Результат PortionModel

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

public static ToProductCatalogModel ( this productDataList ) : List
productDataList this
Результат List

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

public static ToProductCatalogModel ( this productData ) : ProductCatalogViewModel
productData this
Результат ProductCatalogViewModel

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

public static ToRecipeModel ( this recipeDataList ) : List
recipeDataList this
Результат List

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

public static ToRecipeModel ( this recipeData ) : RecipeModel
recipeData this
Результат RecipeModel

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

public static ToRestaurantBasicModel ( this restaurantData ) : RestaurantBasicData
restaurantData this
Результат RestaurantBasicData

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

public static ToRestaurantModel ( this restaurantDataList, bool withMenu = true ) : List
restaurantDataList this
withMenu bool
Результат List

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

public static ToRestaurantModel ( this defaultMenuRest, bool withMenu = true, string lang = DefaultLang ) : RestaurantModel
defaultMenuRest this
withMenu bool
lang string
Результат RestaurantModel

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

public static ToRestaurantModel ( this restaurantData, bool withMenu = true, string lang = DefaultLang, RestaurantModel restModel = null ) : RestaurantModel
restaurantData this
withMenu bool
lang string
restModel RestaurantModel
Результат RestaurantModel

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

public static ToUserMedalModel ( this Medals, LocationModel location = null ) : List
Medals this
location LocationModel
Результат List

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

public static ToUserMedalModel ( this medal ) : UserMedalModel
medal this
Результат UserMedalModel

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

public static ToWeightType ( this weight, Dish dish, string lang = DefaultLang ) : WeightType
weight this
dish Dish
lang string
Результат WeightType

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

public static ToWeightTypeModel ( this weight, string lang = DefaultLang ) : WeightTypeModel
weight this
lang string
Результат WeightTypeModel

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

public static findDishesInRestList ( this restaurants, string searchText ) : IEnumerable
restaurants this
searchText string
Результат IEnumerable