pull/32/head
parent
67cd13b185
commit
9a6d5e06ef
@ -0,0 +1,21 @@ |
||||
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 = "bookmarks", indices = [(Index(value = ["bookUrl"], unique = true))]) |
||||
data class Bookmark( |
||||
@PrimaryKey |
||||
var time: Long = System.currentTimeMillis(), |
||||
var bookUrl: String = "", |
||||
var bookName: String = "", |
||||
var chapterName: String = "", |
||||
var chapterIndex: Int = 0, |
||||
var pageIndex: Int = 0, |
||||
var content: String = "" |
||||
|
||||
) : Parcelable |
@ -0,0 +1,2 @@ |
||||
package io.legado.app.ui.chapterlist |
||||
|
@ -0,0 +1,2 @@ |
||||
package io.legado.app.ui.chapterlist |
||||
|
@ -0,0 +1,7 @@ |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
||||
android:orientation="vertical" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="match_parent"> |
||||
|
||||
</LinearLayout> |
@ -0,0 +1,7 @@ |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
||||
android:orientation="vertical" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="match_parent"> |
||||
|
||||
</LinearLayout> |
Loading…
Reference in new issue