commonMain.zakadabar.lib.content.data.FolderQuery.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of content-jvm Show documentation
Show all versions of content-jvm Show documentation
Kotlin/Ktor based full-stack platform
/*
* Copyright © 2020-2021, Simplexion, Hungary and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
package zakadabar.lib.content.data
import kotlinx.serialization.Serializable
import kotlinx.serialization.builtins.ListSerializer
import zakadabar.core.data.BaseBo
import zakadabar.core.data.EntityId
import zakadabar.core.data.QueryBo
import zakadabar.core.data.QueryBoCompanion
/**
* Query folders. Folders are masters with the `folder` flag on true.
*/
@Serializable
class FolderQuery: QueryBo> {
companion object : QueryBoCompanion(ContentBo.boNamespace)
override suspend fun execute() = comm.query(this, serializer(), ListSerializer(FolderEntry.serializer()))
}
/**
* An entry returned by folder query.
*/
@Serializable
class FolderEntry(
val id : EntityId,
val title : String
) : BaseBo
© 2015 - 2025 Weber Informatics LLC | Privacy Policy