parent
c0fee8067a
commit
15c3eb8dd2
@ -0,0 +1,23 @@ |
||||
package io.legado.app.data.entities |
||||
|
||||
import android.os.Parcelable |
||||
import androidx.room.Entity |
||||
import androidx.room.Index |
||||
import androidx.room.PrimaryKey |
||||
import kotlinx.android.parcel.Parcelize |
||||
|
||||
|
||||
@Parcelize |
||||
@Entity(tableName = "chapters", |
||||
indices = [(Index(value = ["url"]))]) |
||||
data class Chapter(@PrimaryKey |
||||
var url: String = "", |
||||
var name: String = "", |
||||
var bookUrl: String = "", |
||||
var index: Int = 0, |
||||
var ResourceUrl: String? = null, |
||||
var tag: String? = null, |
||||
var start: Long? = null, |
||||
var end: Long? = null |
||||
) : Parcelable |
||||
|
@ -0,0 +1,23 @@ |
||||
package io.legado.app.data.entities |
||||
|
||||
import android.os.Parcelable |
||||
import androidx.room.Entity |
||||
import androidx.room.Index |
||||
import androidx.room.PrimaryKey |
||||
import kotlinx.android.parcel.Parcelize |
||||
|
||||
@Parcelize |
||||
@Entity(tableName = "replace_rules", |
||||
indices = [(Index(value = ["id"]))]) |
||||
data class ReplaceRule(@PrimaryKey |
||||
val id: Int = 0, |
||||
val summary: String? = null, |
||||
val pattern: String? = null, |
||||
val replacement: String? = null, |
||||
val scope: String? = null, |
||||
val isEnabled: Boolean? = null, |
||||
val isRegex: Boolean? = null, |
||||
val order: Int = 0 |
||||
) : Parcelable |
||||
|
||||
|
@ -0,0 +1,5 @@ |
||||
package io.legado.app.data.entities |
||||
|
||||
class Rule { |
||||
|
||||
} |
@ -0,0 +1,2 @@ |
||||
package io.legado.app.data.entities |
||||
|
Loading…
Reference in new issue