start migration onto new stack of dependencies versions (plus old changes)

This commit is contained in:
2022-05-07 01:50:53 +06:00
parent b41a18a01e
commit 7551d7c2bb
9 changed files with 39 additions and 17 deletions

View File

@@ -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(

View File

@@ -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
}