//returns the food items for the user identified by uid, that will expire between leftTime and rightTime public List <BFoodItem> getFoodListExp(long uid, DateTime leftTime, DateTime rightTime) { Mediator m = new Mediator(); GetFoodListExp getFoodListExp = new GetFoodListExp(uid, leftTime, rightTime); List <FoodItem> food_list = m.getFoodListExpHandler.Handle(getFoodListExp).response; List <BFoodItem> bfood_list = new List <BFoodItem>(); foreach (FoodItem fi in food_list) { bfood_list.Add(convert_to_bfi(fi)); } return(bfood_list); }
public GetFoodListExpResponse Handle(GetFoodListExp query) { return(new GetFoodListExpResponse(query.query())); }