fixed constructor of PublishingKeysRepoKtorClient
This commit is contained in:
parent
8a4934a65a
commit
b4798bc062
@ -3,8 +3,26 @@ package com.insanusmokrassar.postssystem.publishing.ktor.client
|
||||
import com.insanusmokrassar.postssystem.core.publishing.repos.PublishingKeysRepo
|
||||
import com.insanusmokrassar.postssystem.core.publishing.repos.ReadPublishingKeysRepo
|
||||
import com.insanusmokrassar.postssystem.core.publishing.repos.WritePublishingKeysRepo
|
||||
import io.ktor.client.HttpClient
|
||||
import io.ktor.client.features.websocket.WebSockets
|
||||
|
||||
class PublishingKeysRepoKtorClient (
|
||||
class PublishingKeysRepoKtorClient private constructor (
|
||||
readPublishingKeysClient: ReadPublishingKeysRepoKtorClient,
|
||||
writePublishingKeysClient: WritePublishingKeysRepoKtorClient
|
||||
) : PublishingKeysRepo, ReadPublishingKeysRepo by readPublishingKeysClient, WritePublishingKeysRepo by writePublishingKeysClient
|
||||
) : PublishingKeysRepo, ReadPublishingKeysRepo by readPublishingKeysClient, WritePublishingKeysRepo by writePublishingKeysClient {
|
||||
constructor(
|
||||
baseUrl: String,
|
||||
client: HttpClient = HttpClient {
|
||||
install(WebSockets)
|
||||
}
|
||||
) : this (
|
||||
ReadPublishingKeysRepoKtorClient (
|
||||
baseUrl,
|
||||
client
|
||||
),
|
||||
WritePublishingKeysRepoKtorClient(
|
||||
baseUrl,
|
||||
client
|
||||
)
|
||||
)
|
||||
}
|
Loading…
Reference in New Issue
Block a user