Allow recipe image to be null
This commit is contained in:
@@ -11,13 +11,13 @@ data class RecipeSummaryEntity(
|
|||||||
@PrimaryKey @ColumnInfo(name = "remote_id") val remoteId: Long,
|
@PrimaryKey @ColumnInfo(name = "remote_id") val remoteId: Long,
|
||||||
@ColumnInfo(name = "name") val name: String,
|
@ColumnInfo(name = "name") val name: String,
|
||||||
@ColumnInfo(name = "slug") val slug: 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 = "description") val description: String,
|
||||||
@ColumnInfo(name = "rating") val rating: Int?,
|
@ColumnInfo(name = "rating") val rating: Int?,
|
||||||
@ColumnInfo(name = "date_added") val dateAdded: LocalDate,
|
@ColumnInfo(name = "date_added") val dateAdded: LocalDate,
|
||||||
@ColumnInfo(name = "date_updated") val dateUpdated: LocalDateTime
|
@ColumnInfo(name = "date_updated") val dateUpdated: LocalDateTime
|
||||||
) {
|
) {
|
||||||
override fun toString(): String {
|
override fun toString(): String {
|
||||||
return "RecipeEntity(remoteId=$remoteId, name='$name')"
|
return "RecipeSummaryEntity(remoteId=$remoteId, name='$name')"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -10,7 +10,7 @@ data class GetRecipeSummaryResponse(
|
|||||||
@SerialName("id") val remoteId: Long,
|
@SerialName("id") val remoteId: Long,
|
||||||
@SerialName("name") val name: String,
|
@SerialName("name") val name: String,
|
||||||
@SerialName("slug") val slug: String,
|
@SerialName("slug") val slug: String,
|
||||||
@SerialName("image") val image: String,
|
@SerialName("image") val image: String?,
|
||||||
@SerialName("description") val description: String = "",
|
@SerialName("description") val description: String = "",
|
||||||
@SerialName("recipeCategory") val recipeCategories: List<String>,
|
@SerialName("recipeCategory") val recipeCategories: List<String>,
|
||||||
@SerialName("tags") val tags: List<String>,
|
@SerialName("tags") val tags: List<String>,
|
||||||
|
|||||||
Reference in New Issue
Block a user