pull/32/head
kunfei 5 years ago
parent 1a75f5a593
commit e8219eeb10
  1. 3
      app/src/main/java/io/legado/app/data/entities/RssSource.kt

@ -2,11 +2,14 @@ package io.legado.app.data.entities
import android.os.Parcelable import android.os.Parcelable
import androidx.room.Entity import androidx.room.Entity
import androidx.room.PrimaryKey
import kotlinx.android.parcel.Parcelize import kotlinx.android.parcel.Parcelize
@Parcelize @Parcelize
@Entity(tableName = "rssSources") @Entity(tableName = "rssSources")
data class RssSource( data class RssSource(
var sourceName: String, var sourceName: String,
@PrimaryKey
var sourceUrl: String,
var enabled: Boolean = true var enabled: Boolean = true
) : Parcelable ) : Parcelable
Loading…
Cancel
Save