Allow the value of the thumbnail to be null. (#311)

Closes #310
This commit is contained in:
davidoskky 2020-12-07 15:48:58 +01:00 committed by GitHub
parent aa6d470f40
commit 36a43b3861
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@ data class Item(
@SerializedName("content") val content: String,
@SerializedName("unread") val unread: Boolean,
@SerializedName("starred") var starred: Boolean,
@SerializedName("thumbnail") val thumbnail: String,
@SerializedName("thumbnail") val thumbnail: String?,
@SerializedName("icon") val icon: String,
@SerializedName("link") val link: String,
@SerializedName("sourcetitle") val sourcetitle: String,

View File

@ -20,7 +20,7 @@ data class ItemEntity(
@ColumnInfo(name = "starred")
var starred: Boolean,
@ColumnInfo(name = "thumbnail")
val thumbnail: String,
val thumbnail: String?,
@ColumnInfo(name = "icon")
val icon: String,
@ColumnInfo(name = "link")