temporal result
This commit is contained in:
client/src/jsMain/kotlin/dev/inmo/postssystem/client/utils
features
common
common
content
binary
common
src
commonMain
kotlin
dev
inmo
postssystem
features
server
src
jvmMain
kotlin
dev
inmo
postssystem
features
content
binary
common
files
common
src
commonMain
kotlin
dev
inmo
postssystem
features
files
common
jvmMain
kotlin
dev
inmo
postssystem
features
gradle/wrapper
targets/telegram/publication/server/src/jvmMain/kotlin/dev/inmo/postssystem/targets/telegram/publication/server
@ -1,5 +1,8 @@
|
||||
package dev.inmo.postssystem.features.content.common
|
||||
|
||||
import dev.inmo.micro_utils.common.FileName
|
||||
import dev.inmo.micro_utils.mime_types.MimeType
|
||||
import dev.inmo.postssystem.features.common.common.SimpleInputProvider
|
||||
import kotlinx.serialization.Serializable
|
||||
import kotlin.jvm.JvmInline
|
||||
|
||||
@ -13,7 +16,21 @@ value class ContentId(val string: String)
|
||||
* @see ContentSerializersModuleConfigurator.Element
|
||||
* @see ContentSerializersModuleConfigurator
|
||||
*/
|
||||
interface Content
|
||||
sealed interface Content
|
||||
|
||||
/**
|
||||
* This type of content represents simple content which is easy to serialize/deserialize and to use
|
||||
*/
|
||||
interface SimpleContent : Content
|
||||
|
||||
/**
|
||||
* This type represents some binary data which can be sent with multipart and deserialized from it
|
||||
*/
|
||||
interface BinaryContent : Content {
|
||||
val filename: FileName
|
||||
val mimeType: MimeType
|
||||
val inputProvider: SimpleInputProvider
|
||||
}
|
||||
|
||||
/**
|
||||
* Content which is already registered in database. Using its [id] you can retrieve all known
|
||||
|
Reference in New Issue
Block a user