You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 18, 2021. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+57-55Lines changed: 57 additions & 55 deletions
Original file line number
Diff line number
Diff line change
@@ -1,72 +1,26 @@
1
1
# consumable-code-the-meal-db-api By AmirIsBack
2
-
- v1.0.1 - Development
2
+
- v1.0.2 - Development
3
3
- Stable Version
4
4
5
5
# About This Project
6
6
Eliminates the method of retrieving json data using retrofit repeatedly. so this project has a set of functions to retrieve data without the need for fetching data using the retrofit of the API
7
7
8
-
# Special From This Project
9
-
Simple code and reusable data
10
-
11
-
# Fecthing Data Library
12
-
- Retrofit
13
-
- RxJava
14
-
- OkHttp
15
-
- Chuck Interceptor
16
-
17
-
# Documentation The Meal Db Api
18
-
https://www.themealdb.com/api.php
19
-
20
-
# Function Main From This Project
21
-
22
-
// Switch For Using Chuck Interceptor
23
-
fun usingChuckInterceptor(context: Context)
24
-
25
-
// Search meal by name
26
-
fun searchMeal(mealName: String, callback: MealResultCallback<MealResponse<Meal>>)
27
-
28
-
// List all meals by first letter
29
-
fun listAllMeal(firstLetter: String, callback: MealResultCallback<MealResponse<Meal>>)
30
-
31
-
// Lookup full meal details by id
32
-
fun lookupFullMeal(idMeal: String, callback: MealResultCallback<MealResponse<Meal>>)
33
-
34
-
// Lookup a single random meal
35
-
fun lookupRandomMeal(callback: MealResultCallback<MealResponse<Meal>>)
36
-
37
-
// List all meal categories
38
-
fun listMealCategories(callback: MealResultCallback<CategoryResponse>)
39
-
40
-
// List all Categories
41
-
fun listAllCateories(callback: MealResultCallback<MealResponse<Category>>)
42
-
43
-
// List all Area
44
-
fun listAllArea(callback: MealResultCallback<MealResponse<Area>>)
45
-
46
-
// List all Ingredients
47
-
fun listAllIngredients(callback: MealResultCallback<MealResponse<Ingredient>>)
48
-
49
-
// Filter by main ingredient
50
-
fun filterByIngredient(ingredient: String, callback: MealResultCallback<MealResponse<MealFilter>>)
51
-
52
-
// Filter by Category
53
-
fun filterByCategory(category: String, callback: MealResultCallback<MealResponse<MealFilter>>)
54
-
55
-
// Filter by Area
56
-
fun filterByArea(area: String, callback: MealResultCallback<MealResponse<MealFilter>>)
0 commit comments