-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fix] Fix DataWrapper serialization error
- Loading branch information
Showing
3 changed files
with
25 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 6 additions & 1 deletion
7
app/src/main/java/com/skyd/anivu/model/bean/ArticleWithFeed.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,19 @@ | ||
package com.skyd.anivu.model.bean | ||
|
||
import android.os.Parcelable | ||
import androidx.room.Embedded | ||
import androidx.room.Relation | ||
import kotlinx.parcelize.Parcelize | ||
import java.io.Serializable | ||
|
||
/** | ||
* An [articleWithEnclosure] contains a [feed]. | ||
*/ | ||
@Parcelize | ||
@kotlinx.serialization.Serializable | ||
data class ArticleWithFeed( | ||
@Embedded | ||
var articleWithEnclosure: ArticleWithEnclosureBean, | ||
@Relation(parentColumn = ArticleBean.FEED_URL_COLUMN, entityColumn = FeedBean.URL_COLUMN) | ||
var feed: FeedBean, | ||
) | ||
) : Serializable, Parcelable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters