add target and telegram target

This commit is contained in:
2022-01-07 21:35:11 +06:00
parent 6171eb3c40
commit 3661c1ca73
20 changed files with 232 additions and 3 deletions
features
content
binary
common
build.gradle
src
commonMain
kotlin
dev
inmo
postssystem
features
content
binary
common
src
commonMain
kotlin
dev
inmo
postssystem
features
content
server
src
jvmMain
publication
client
common
server
build.gradle
src
jvmMain
kotlin
dev
inmo
gradle.properties
server
build.gradle
src
main
java
dev
inmo
postssystem
server
settings.gradle
targets/telegram/publication/server
build.gradle
src
jvmMain
kotlin
dev
inmo
postssystem
targets
telegram

@ -12,6 +12,7 @@ kotlin {
dependencies {
api project(":postssystem.features.common.common")
api project(":postssystem.features.content.common")
api "dev.inmo:micro_utils.mime_types:$microutils_version"
}
}
}

@ -1,9 +1,14 @@
package dev.inmo.postssystem.features.content.binary.common
import dev.inmo.micro_utils.common.ByteArrayAllocator
import dev.inmo.micro_utils.common.FileName
import dev.inmo.micro_utils.mime_types.MimeType
import dev.inmo.postssystem.features.content.common.Content
import kotlinx.serialization.Serializable
@Serializable
data class BinaryContent(
val bytes: ByteArray
) : Content
val filename: FileName,
val mimeType: MimeType,
val bytesAllocator: ByteArrayAllocator
) : Content