C# Class Spontaneous.WebApp.Services.DefaultMenuUtility

Exibir arquivo Open project: pashkov/Spontaneous Class Usage Examples

Public Methods

Method Description
AddDefaultMenuToRestaurant ( RestaurantBasicData rest ) : void
AddDefaultsMenus ( List restList ) : void
AddDefaultsMenusToSwedenFinlandRests ( List restList ) : void
AddNewDefaultMenuRestaurant ( DefaultMenuRestaurant rest ) : string
CheckCuisineSafety ( List cuisineList ) : List
CombineMenus ( List menuList ) : Menu
DeleteAllDefaultMenuRestaurant ( ) : void
DeleteDefaultMenuRestaurant ( string id ) : void
GetAllDefaultMenuRestaurants ( ) : List
GetDefaulMenuByCuisine ( CuisineMap cuisineMap ) : Menu
GetDefaulMenuByCuisine ( string cuisine ) : Menu

Should find DefaultMenuRestaurant with same cuisine and return it's Menu

GetDefaulMenuByOperatorMap ( OperatorMap operatorMap ) : Menu

Should find DefaultMenuRestaurant with same Operator and return it's Menu

GetDefaultMenuFromCuisinesList ( List cuisines ) : Menu
GetDefaultMenuRestaurantById ( string id ) : DefaultMenuRestaurant
GetDefaultMenuRestaurantByName ( string restName ) : DefaultMenuRestaurant
GetDefaultMenusList ( RestaurantBasicData rest ) : List
GetDefaultRestaurantByCuisine ( string cuisine ) : DefaultMenuRestaurant
GetDefaultRestaurantByOperatorName ( string operatorName ) : DefaultMenuRestaurant
GetMultiDefaultRestaurantByCuisine ( string cuisine ) : DefaultMenuRestaurant
GetRestaurantStatistic ( ) : void
RemoveDefaultMenuRestaurant ( string id ) : void
SwedenFinlandUpdateCuisines ( ) : void

Find or fix cuisine and operator for all restaurants from Sweden and Finland

ToDefaultMenuRestaurant ( RestaurantBasicData rest ) : DefaultMenuRestaurant
UpdateAllDefautMenuRestaurants ( List restList ) : void

If DefaultMenuRestaurant exists update if not create new.

UpdateCuisinesAndOperators ( ) : void

Find or fix cuisine and operator for all restaurants from Osm source

UpdateDefaultMenuRestaurant ( DefaultMenuRestaurant rest ) : void
UpdateDefaultMenuRestaurantsFromRestaurantsBasicData ( ) : void

Should find all Restaurants which names contains "default menu" (By GetllAllRestaurantsBasicDataWithDefaultMenu function) Convert them to default menu restaurants and update DB (by UpdateAllDefautMenuRestaurants function)

UpdateDefaultMenusToAllRestaurantsWithCuisines ( ) : void
UpdateDefaultMenusToAllRestaurantsWithCusineAndEmptyMenu ( ) : void
UpdateDefaultMenusToCLassifiedRestaurants ( ) : void
UpdateDefaultMenusToFinlandSwedenRestaurants ( ) : void

Method Details

AddDefaultMenuToRestaurant() public method

public AddDefaultMenuToRestaurant ( RestaurantBasicData rest ) : void
rest Spontaneous.DataModel.RestaurantBasicData
return void

AddDefaultsMenus() public method

public AddDefaultsMenus ( List restList ) : void
restList List
return void

AddDefaultsMenusToSwedenFinlandRests() public method

public AddDefaultsMenusToSwedenFinlandRests ( List restList ) : void
restList List
return void

AddNewDefaultMenuRestaurant() public method

public AddNewDefaultMenuRestaurant ( DefaultMenuRestaurant rest ) : string
rest DefaultMenuRestaurant
return string

CheckCuisineSafety() public method

public CheckCuisineSafety ( List cuisineList ) : List
cuisineList List
return List

CombineMenus() public method

public CombineMenus ( List menuList ) : Menu
menuList List
return Spontaneous.DataModel.Menu

DeleteAllDefaultMenuRestaurant() public method

public DeleteAllDefaultMenuRestaurant ( ) : void
return void

DeleteDefaultMenuRestaurant() public method

public DeleteDefaultMenuRestaurant ( string id ) : void
id string
return void

GetAllDefaultMenuRestaurants() public method

public GetAllDefaultMenuRestaurants ( ) : List
return List

GetDefaulMenuByCuisine() public method

public GetDefaulMenuByCuisine ( CuisineMap cuisineMap ) : Menu
cuisineMap Spontaneous.DataModel.CuisineMap
return Spontaneous.DataModel.Menu

GetDefaulMenuByCuisine() public method

Should find DefaultMenuRestaurant with same cuisine and return it's Menu
public GetDefaulMenuByCuisine ( string cuisine ) : Menu
cuisine string
return Spontaneous.DataModel.Menu

GetDefaulMenuByOperatorMap() public method

Should find DefaultMenuRestaurant with same Operator and return it's Menu
public GetDefaulMenuByOperatorMap ( OperatorMap operatorMap ) : Menu
operatorMap Spontaneous.DataModel.OperatorMap
return Spontaneous.DataModel.Menu

GetDefaultMenuFromCuisinesList() public method

public GetDefaultMenuFromCuisinesList ( List cuisines ) : Menu
cuisines List
return Spontaneous.DataModel.Menu

GetDefaultMenuRestaurantById() public method

public GetDefaultMenuRestaurantById ( string id ) : DefaultMenuRestaurant
id string
return DefaultMenuRestaurant

GetDefaultMenuRestaurantByName() public method

public GetDefaultMenuRestaurantByName ( string restName ) : DefaultMenuRestaurant
restName string
return DefaultMenuRestaurant

GetDefaultMenusList() public method

public GetDefaultMenusList ( RestaurantBasicData rest ) : List
rest Spontaneous.DataModel.RestaurantBasicData
return List

GetDefaultRestaurantByCuisine() public method

public GetDefaultRestaurantByCuisine ( string cuisine ) : DefaultMenuRestaurant
cuisine string
return DefaultMenuRestaurant

GetDefaultRestaurantByOperatorName() public method

public GetDefaultRestaurantByOperatorName ( string operatorName ) : DefaultMenuRestaurant
operatorName string
return DefaultMenuRestaurant

GetMultiDefaultRestaurantByCuisine() public method

public GetMultiDefaultRestaurantByCuisine ( string cuisine ) : DefaultMenuRestaurant
cuisine string
return DefaultMenuRestaurant

GetRestaurantStatistic() public method

public GetRestaurantStatistic ( ) : void
return void

RemoveDefaultMenuRestaurant() public method

public RemoveDefaultMenuRestaurant ( string id ) : void
id string
return void

SwedenFinlandUpdateCuisines() public method

Find or fix cuisine and operator for all restaurants from Sweden and Finland
public SwedenFinlandUpdateCuisines ( ) : void
return void

ToDefaultMenuRestaurant() public method

public ToDefaultMenuRestaurant ( RestaurantBasicData rest ) : DefaultMenuRestaurant
rest Spontaneous.DataModel.RestaurantBasicData
return DefaultMenuRestaurant

UpdateAllDefautMenuRestaurants() public method

If DefaultMenuRestaurant exists update if not create new.
public UpdateAllDefautMenuRestaurants ( List restList ) : void
restList List
return void

UpdateCuisinesAndOperators() public method

Find or fix cuisine and operator for all restaurants from Osm source
public UpdateCuisinesAndOperators ( ) : void
return void

UpdateDefaultMenuRestaurant() public method

public UpdateDefaultMenuRestaurant ( DefaultMenuRestaurant rest ) : void
rest DefaultMenuRestaurant
return void

UpdateDefaultMenuRestaurantsFromRestaurantsBasicData() public method

Should find all Restaurants which names contains "default menu" (By GetllAllRestaurantsBasicDataWithDefaultMenu function) Convert them to default menu restaurants and update DB (by UpdateAllDefautMenuRestaurants function)

UpdateDefaultMenusToAllRestaurantsWithCuisines() public method

public UpdateDefaultMenusToAllRestaurantsWithCuisines ( ) : void
return void

UpdateDefaultMenusToAllRestaurantsWithCusineAndEmptyMenu() public method

UpdateDefaultMenusToCLassifiedRestaurants() public method

public UpdateDefaultMenusToCLassifiedRestaurants ( ) : void
return void

UpdateDefaultMenusToFinlandSwedenRestaurants() public method

public UpdateDefaultMenusToFinlandSwedenRestaurants ( ) : void
return void