예제 #1
0
        public List <BFoodItem> getFoodList(long uid)
        {
            Mediator         m           = new Mediator();
            GetFoodList      getFoodList = new GetFoodList(uid);
            List <FoodItem>  food_list   = m.getFoodListHandler.Handle(getFoodList).response;
            List <BFoodItem> bfood_list  = new List <BFoodItem>();

            foreach (FoodItem fi in food_list)
            {
                bfood_list.Add(convert_to_bfi(fi));
            }
            return(bfood_list);
        }
예제 #2
0
 public GetFoodListResponse Handle(GetFoodList query)
 {
     return(new GetFoodListResponse(query.query()));
 }