SpecialContent added
This commit is contained in:
parent
2a55bea0ea
commit
dee1ffd679
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user