Skip to content
This repository has been archived by the owner on Aug 18, 2021. It is now read-only.

consumable-code-the-meal-db-api

Compare
Choose a tag to compare
@amirisback amirisback released this 15 Mar 10:40
· 13 commits to master since this release

Retrofit has been Handled !! || Consumable code for request API (TheMealDBApi) || Link https://www.themealdb.com/api.php

// Switch For Using Chuck Interceptor
fun usingChuckInterceptor(context: Context)

// Search meal by name
fun searchMeal(mealName: String, callback: MealResultCallback<MealResponse<Meal>>)

// List all meals by first letter
fun listAllMeal(firstLetter: String, callback: MealResultCallback<MealResponse<Meal>>)

// Lookup full meal details by id
fun lookupFullMeal(idMeal: String, callback: MealResultCallback<MealResponse<Meal>>)

// Lookup a single random meal
fun lookupRandomMeal(callback: MealResultCallback<MealResponse<Meal>>)

// List all meal categories
fun listMealCategories(callback: MealResultCallback<CategoryResponse>)

// List all Categories
fun listAllCateories(callback: MealResultCallback<MealResponse<Category>>)

// List all Area
fun listAllArea(callback: MealResultCallback<MealResponse<Area>>)

// List all Ingredients
fun listAllIngredients(callback: MealResultCallback<MealResponse<Ingredient>>)

// Filter by main ingredient
fun filterByIngredient(ingredient: String, callback: MealResultCallback<MealResponse<MealFilter>>)

// Filter by Category
fun filterByCategory(category: String, callback: MealResultCallback<MealResponse<MealFilter>>)

// Filter by Area
fun filterByArea(area: String, callback: MealResultCallback<MealResponse<MealFilter>>)