Merge API back-end to food detail screen

This commit is contained in:
Nezumi
2023-03-11 11:45:47 +07:00
parent 2e0d3c6c08
commit d917aa4f6a
29 changed files with 214 additions and 166 deletions
@@ -69,4 +69,8 @@ public class Common {
})
.show();
}
public static Basket getFoodExistInBasket(String foodId) {
return Common.LIST_BASKET_FOOD.stream().filter(food -> foodId.equals(food.getId())).findFirst().orElse(null);
}
}