pull/46/head
parent
2861a0c4b4
commit
456a2e3043
@ -0,0 +1,13 @@ |
||||
package io.legado.app.data.dao |
||||
|
||||
import androidx.room.Dao |
||||
import androidx.room.Query |
||||
|
||||
@Dao |
||||
interface CookieDao { |
||||
|
||||
@Query("select * from cookies where url = :url") |
||||
fun get(url: String) |
||||
|
||||
|
||||
} |
@ -0,0 +1,11 @@ |
||||
package io.legado.app.data.entities |
||||
|
||||
import androidx.room.Entity |
||||
import androidx.room.PrimaryKey |
||||
|
||||
@Entity(tableName = "cookies") |
||||
data class Cookie( |
||||
@PrimaryKey |
||||
var url: String, |
||||
var cookie: String |
||||
) |
Loading…
Reference in new issue