notion.api.v1.model.blocks.PDFBlock.kt Maven / Gradle / Ivy
package notion.api.v1.model.blocks
import com.google.gson.annotations.SerializedName
import java.util.*
import notion.api.v1.model.common.ObjectType
open class PDFBlock
@JvmOverloads
constructor(
@SerializedName("object") override val objectType: ObjectType = ObjectType.Block,
override val type: BlockType = BlockType.PDF,
override var id: String? = UUID.randomUUID().toString(),
override var createdTime: String? = null,
override var lastEditedTime: String? = null,
override var hasChildren: Boolean? = null,
override var archived: Boolean? = null,
val pdf: Element? = null,
) : Block {
// for other JVM languages
constructor(
id: String? = UUID.randomUUID().toString(),
hasChildren: Boolean? = null,
createdTime: String? = null,
archived: Boolean? = null,
lastEditedTime: String? = null,
) : this(ObjectType.Block, BlockType.PDF, id, createdTime, lastEditedTime, hasChildren, archived)
open class Element
@JvmOverloads
constructor(
val type: String? = null,
val external: External? = null,
)
open class External
@JvmOverloads
constructor(
val url: String? = null,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy