From 99a8cc807f46ee6dcd6e0343abecb0e447e2f37f Mon Sep 17 00:00:00 2001 From: kunfei Date: Thu, 19 May 2022 10:54:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/legado/app/ui/book/remote/RemoteBook.kt | 9 +++++++++ .../app/ui/book/remote/RemoteBookViewModel.kt | 13 ++----------- 2 files changed, 11 insertions(+), 11 deletions(-) create mode 100644 app/src/main/java/io/legado/app/ui/book/remote/RemoteBook.kt diff --git a/app/src/main/java/io/legado/app/ui/book/remote/RemoteBook.kt b/app/src/main/java/io/legado/app/ui/book/remote/RemoteBook.kt new file mode 100644 index 000000000..c04098421 --- /dev/null +++ b/app/src/main/java/io/legado/app/ui/book/remote/RemoteBook.kt @@ -0,0 +1,9 @@ +package io.legado.app.ui.book.remote + +data class RemoteBook( + val filename: String, + val urlName: String, + val size: Long, + val contentType: String, + val lastModify: Long +) \ No newline at end of file diff --git a/app/src/main/java/io/legado/app/ui/book/remote/RemoteBookViewModel.kt b/app/src/main/java/io/legado/app/ui/book/remote/RemoteBookViewModel.kt index 44f4071b6..48eb6b934 100644 --- a/app/src/main/java/io/legado/app/ui/book/remote/RemoteBookViewModel.kt +++ b/app/src/main/java/io/legado/app/ui/book/remote/RemoteBookViewModel.kt @@ -6,7 +6,7 @@ import androidx.lifecycle.MutableLiveData import io.legado.app.base.BaseViewModel import io.legado.app.model.localBook.LocalBook import io.legado.app.ui.book.remote.manager.RemoteBookWebDav -import kotlinx.coroutines.* +import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.channels.awaitClose import kotlinx.coroutines.flow.callbackFlow import kotlinx.coroutines.flow.flowOn @@ -92,13 +92,4 @@ class RemoteBookViewModel(application: Application): BaseViewModel(application){ fun clear() } -} - -data class RemoteBook( - val filename: String, - val urlName: String, - val size: Long, - val contentType: String, - val lastModify: Long -) - +} \ No newline at end of file