|
|
|
@ -2,16 +2,16 @@ package io.legado.app.data.entities |
|
|
|
|
|
|
|
|
|
import androidx.room.Entity |
|
|
|
|
import androidx.room.Ignore |
|
|
|
|
import androidx.room.PrimaryKey |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Entity(tableName = "rssArticles") |
|
|
|
|
@Entity( |
|
|
|
|
tableName = "rssArticles", |
|
|
|
|
primaryKeys = ["origin", "title"] |
|
|
|
|
) |
|
|
|
|
data class RssArticle( |
|
|
|
|
var origin: String = "", |
|
|
|
|
var time: Long = System.currentTimeMillis(), |
|
|
|
|
@PrimaryKey |
|
|
|
|
var guid: String = "", |
|
|
|
|
var title: String? = null, |
|
|
|
|
var time: Long = System.currentTimeMillis(), |
|
|
|
|
var author: String? = null, |
|
|
|
|
var link: String? = null, |
|
|
|
|
var pubDate: String? = null, |
|
|
|
|