start migration onto new stack of dependencies versions (plus old changes)
This commit is contained in:
build.gradleextensions.gradle
features
files
common
src
commonMain
kotlin
dev
inmo
postssystem
features
files
common
status
client
src
commonMain
kotlin
dev
inmo
postssystem
features
status
client
gradle
mppAndroidProject.gradlemppJavaProject.gradlemppJsProject.gradlemppProjectWithSerialization.gradle
4
features/files/common/src/commonMain/kotlin/dev/inmo/postssystem/features/files/common/FileInfo.kt
4
features/files/common/src/commonMain/kotlin/dev/inmo/postssystem/features/files/common/FileInfo.kt
@ -12,10 +12,6 @@ import kotlinx.serialization.Serializable
|
||||
sealed interface FileInfo {
|
||||
val name: FileName
|
||||
val mimeType: MimeType
|
||||
|
||||
companion object {
|
||||
fun serializer(): KSerializer<FileInfo> = FileInfoSerializer
|
||||
}
|
||||
}
|
||||
|
||||
object FileInfoSerializer : KSerializer<FileInfo> by TypedSerializer(
|
||||
|
@ -22,6 +22,6 @@ class StatusFeatureClient(
|
||||
statusAuthorisedPathPart
|
||||
)
|
||||
|
||||
suspend fun checkServerStatus() = client.get<HttpResponse>(fullStatusUrl).status == HttpStatusCode.OK
|
||||
suspend fun checkServerStatusWithAuth() = client.get<HttpResponse>(fullAuthorisedStatusUrl).status == HttpStatusCode.OK
|
||||
suspend fun checkServerStatus() = client.get(fullStatusUrl).status == HttpStatusCode.OK
|
||||
suspend fun checkServerStatusWithAuth() = client.get(fullAuthorisedStatusUrl).status == HttpStatusCode.OK
|
||||
}
|
||||
|
Reference in New Issue
Block a user