Cleanup ctor

This commit is contained in:
Dude so hot authored and renovate[bot] committed 2024-10-30 20:30:53 +08:00
1 parent 8a4df1f2ba
commit 8f8fe513fa
2 files changed
+4 -8

No files matched your search

@@ -33,10 +33,10 @@ import kotlinx.serialization.Serializable
data class BaseGalleryInfo(
@PrimaryKey
@ColumnInfo(name = "GID")
override var gid: Long,
override var gid: Long = 0,
@ColumnInfo(name = "TOKEN")
override var token: String,
override var token: String = "",
@ColumnInfo(name = "TITLE")
override var title: String? = null,
@@ -88,10 +88,7 @@ data class BaseGalleryInfo(
@Ignore
override var favoriteNote: String? = null,
) : GalleryInfo,
Parcelable {
constructor() : this(0, "")
}
) : GalleryInfo, Parcelable
class SimpleTagsConverter {
@TypeConverter
@@ -56,8 +56,7 @@ data class GalleryDetail(
var comments: GalleryCommentList,
val previewPages: Int,
val previewList: List<GalleryPreview>,
) : GalleryInfo by galleryInfo,
Parcelable {
) : GalleryInfo by galleryInfo, Parcelable {
fun fillInfo() {
val index = LANGUAGES.indexOf(language)
if (index != -1) simpleLanguage = S_LANGS[index]