Package-level declarations

Types

Link copied to clipboard
@Serializable
data class ApiCantEat(val id: String? = null, val name: String, val authorId: String)

Data class representing a CantEat item from the API.

Link copied to clipboard
@Serializable
data class ApiLike(val id: String? = null, val name: String, val category: String, val authorId: String)

Data class representing a Like item from the API.

Link copied to clipboard
@Serializable
data class ApiRecipe(val id: String? = null, val slug: String, val title: String, val ingredients: List<String>, val optionalIngredients: List<String>, val herbs: List<String>, val steps: List<String>, val image: String?, val authorId: String)

Data class representing a Recipe item from the API.

Link copied to clipboard

Interface for the CantEatApiService. It contains the methods for managing CantEat data in the API.

Link copied to clipboard
interface LikeApiService

Interface for the LikeApiService. It contains the methods for managing Like data in the API.

Link copied to clipboard
class NetworkConnectionInterceptor(val context: Context) : Interceptor

Interceptor class for checking network connection.

Link copied to clipboard

Interface for the RecipeApiService. It contains the methods for managing Recipe data in the API.

Functions

Link copied to clipboard

Extension function to convert an ApiCantEat item to a CantEat item.

Extension function to convert an ApiLike item to a Like item.

Extension function to convert an ApiRecipe item to a Recipe item.

Link copied to clipboard

Extension function to convert a Flow of List of ApiCantEat to a Flow of List of CantEat. It maps each ApiCantEat item to a CantEat item.

fun Flow<List<ApiLike>>.asDomainObjects(): Flow<List<Like>>

Extension function to convert a Flow of List of ApiLike to a Flow of List of Like. It maps each ApiLike item to a Like item.

Extension function to convert a Flow of List of ApiRecipe to a Flow of List of Recipe. It maps each ApiRecipe item to a Recipe item.

Link copied to clipboard

Extension function to convert the deleteCantEat function to a Flow.

Link copied to clipboard

Extension function to convert the deleteLike function to a Flow.

Link copied to clipboard

Extension function to convert the deleteRecipe function to a Flow.

Link copied to clipboard

Extension function to convert the getCantEats function to a Flow.

Link copied to clipboard

Extension function to convert the getLikes function to a Flow.

Link copied to clipboard

Extension function to convert the getRecipes function to a Flow.

Link copied to clipboard

Extension function to convert the postCantEat function to a Flow.

Link copied to clipboard

Extension function to convert the postLike function to a Flow.

Link copied to clipboard

Extension function to convert the postRecipe function to a Flow.

Link copied to clipboard

Extension function to convert the putCantEat function to a Flow.

Link copied to clipboard

Extension function to convert the putLike function to a Flow.

Link copied to clipboard

Extension function to convert the putRecipe function to a Flow.