mirror of
https://github.com/JustinZeus/Wholphin.git
synced 2026-07-09 16:11:20 +02:00
Add a debug page (#32)
Click the version in settings 3 times to open this new debug page which displays internal information such as settings, server info, app info, and database info. It will also show recently logcat messages.
This commit is contained in:
parent
f57fd25f8e
commit
405e170750
6 changed files with 325 additions and 2 deletions
|
|
@ -22,4 +22,7 @@ interface ItemPlaybackDao {
|
|||
|
||||
@Insert(onConflict = OnConflictStrategy.REPLACE)
|
||||
fun saveItem(item: ItemPlayback): Long
|
||||
|
||||
@Query("SELECT * from ItemPlayback WHERE userId=:userId")
|
||||
fun getItems(userId: Int): List<ItemPlayback>
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ import androidx.room.Query
|
|||
import androidx.room.Relation
|
||||
import androidx.room.Transaction
|
||||
import androidx.room.Update
|
||||
import com.github.damontecres.wholphin.ui.isNotNullOrBlank
|
||||
import java.util.UUID
|
||||
|
||||
@Entity(tableName = "servers")
|
||||
|
|
@ -43,7 +44,10 @@ data class JellyfinUser(
|
|||
@ColumnInfo(index = true)
|
||||
val serverId: UUID,
|
||||
val accessToken: String?,
|
||||
)
|
||||
) {
|
||||
override fun toString(): String =
|
||||
"JellyfinUser(rowId=$rowId, id=$id, name=$name, serverId=$serverId, accessToken=${accessToken.isNotNullOrBlank()})"
|
||||
}
|
||||
|
||||
data class JellyfinServerUsers(
|
||||
@Embedded val server: JellyfinServer,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue