diff --git a/app/src/main/java/gq/kirmanak/mealient/data/recipes/db/entity/RecipeSummaryEntity.kt b/app/src/main/java/gq/kirmanak/mealient/data/recipes/db/entity/RecipeSummaryEntity.kt index 50dc819..287a4af 100644 --- a/app/src/main/java/gq/kirmanak/mealient/data/recipes/db/entity/RecipeSummaryEntity.kt +++ b/app/src/main/java/gq/kirmanak/mealient/data/recipes/db/entity/RecipeSummaryEntity.kt @@ -11,13 +11,13 @@ data class RecipeSummaryEntity( @PrimaryKey @ColumnInfo(name = "remote_id") val remoteId: Long, @ColumnInfo(name = "name") val name: String, @ColumnInfo(name = "slug") val slug: String, - @ColumnInfo(name = "image") val image: String, + @ColumnInfo(name = "image") val image: String?, @ColumnInfo(name = "description") val description: String, @ColumnInfo(name = "rating") val rating: Int?, @ColumnInfo(name = "date_added") val dateAdded: LocalDate, @ColumnInfo(name = "date_updated") val dateUpdated: LocalDateTime ) { override fun toString(): String { - return "RecipeEntity(remoteId=$remoteId, name='$name')" + return "RecipeSummaryEntity(remoteId=$remoteId, name='$name')" } } \ No newline at end of file diff --git a/app/src/main/java/gq/kirmanak/mealient/data/recipes/network/response/GetRecipeSummaryResponse.kt b/app/src/main/java/gq/kirmanak/mealient/data/recipes/network/response/GetRecipeSummaryResponse.kt index 75c33d5..c5349a9 100644 --- a/app/src/main/java/gq/kirmanak/mealient/data/recipes/network/response/GetRecipeSummaryResponse.kt +++ b/app/src/main/java/gq/kirmanak/mealient/data/recipes/network/response/GetRecipeSummaryResponse.kt @@ -10,7 +10,7 @@ data class GetRecipeSummaryResponse( @SerialName("id") val remoteId: Long, @SerialName("name") val name: String, @SerialName("slug") val slug: String, - @SerialName("image") val image: String, + @SerialName("image") val image: String?, @SerialName("description") val description: String = "", @SerialName("recipeCategory") val recipeCategories: List, @SerialName("tags") val tags: List,