SpecialContent added

This commit is contained in:
InsanusMokrassar 2019-11-01 10:12:53 +06:00
parent 2a55bea0ea
commit dee1ffd679

View File

@ -0,0 +1,21 @@
package com.insanusmokrassar.postssystem.core.content
import kotlinx.serialization.Serializable
interface SpecialContent : Content {
val internalId: ContentId
}
interface SpecialRegisteredContent : RegisteredContent, SpecialContent
@Serializable
data class SimpleSpecialContent(
override val internalId: ContentId
) : SpecialContent
@Serializable
data class SimpleSpecialRegisteredContent(
override val id: ContentId,
override val internalId: ContentId
) : SpecialRegisteredContent