Allow recipe image to be null

This commit is contained in:
Kirill Kamakin
2022-04-04 02:37:51 +05:00
parent 2f3260beb4
commit ef2aa5b412
2 changed files with 3 additions and 3 deletions

View File

@@ -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')"
}
}

View File

@@ -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<String>,
@SerialName("tags") val tags: List<String>,