|
|
@ -56,10 +56,14 @@ data class Book( |
|
|
|
return origin == BookType.local |
|
|
|
return origin == BookType.local |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
fun isTxt(): Boolean { |
|
|
|
fun isLocalTxt(): Boolean { |
|
|
|
return isLocalBook() && originName.endsWith(".txt", true) |
|
|
|
return isLocalBook() && originName.endsWith(".txt", true) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fun isOnLineTxt(): Boolean { |
|
|
|
|
|
|
|
return !isLocalBook() && type == 0 |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
override fun equals(other: Any?): Boolean { |
|
|
|
override fun equals(other: Any?): Boolean { |
|
|
|
if (other is Book) { |
|
|
|
if (other is Book) { |
|
|
|
return other.bookUrl == bookUrl |
|
|
|
return other.bookUrl == bookUrl |
|
|
|