Format MealieDataSourceImpl
This commit is contained in:
@@ -54,12 +54,11 @@ class MealieDataSourceImpl @Inject constructor(
|
|||||||
|
|
||||||
override suspend fun requestRecipes(
|
override suspend fun requestRecipes(
|
||||||
baseUrl: String, token: String?, start: Int, limit: Int
|
baseUrl: String, token: String?, start: Int, limit: Int
|
||||||
): List<GetRecipeSummaryResponse> =
|
): List<GetRecipeSummaryResponse> = makeCall(
|
||||||
makeCall(
|
block = { getRecipeSummary("$baseUrl/api/recipes/summary", token, start, limit) },
|
||||||
block = { getRecipeSummary("$baseUrl/api/recipes/summary", token, start, limit) },
|
logMethod = { "requestRecipes" },
|
||||||
logMethod = { "requestRecipes" },
|
logParameters = { "baseUrl = $baseUrl, token = $token, start = $start, limit = $limit" }
|
||||||
logParameters = { "baseUrl = $baseUrl, token = $token, start = $start, limit = $limit" }
|
).getOrThrowUnauthorized()
|
||||||
).getOrThrowUnauthorized()
|
|
||||||
|
|
||||||
override suspend fun requestRecipeInfo(
|
override suspend fun requestRecipeInfo(
|
||||||
baseUrl: String, token: String?, slug: String
|
baseUrl: String, token: String?, slug: String
|
||||||
|
|||||||
Reference in New Issue
Block a user