Ktor Write Crud Repo Client
class KtorWriteCrudRepoClient<ObjectType, IdType, InputValue>( baseUrl: String, httpClient: <Error class: unknown class>, val newObjectsFlow: Flow<ObjectType>, val updatedObjectsFlow: Flow<ObjectType>, val deletedObjectsIdsFlow: Flow<IdType>, createSetup: suspend <Error class: unknown class>.(List<InputValue>) -> Unit, updateSetup: suspend <Error class: unknown class>.(List<UpdatedValuePair<IdType, InputValue>>) -> Unit, deleteByIdSetup: suspend <Error class: unknown class>.(List<IdType>) -> Unit, createBodyGetter: suspend <Error class: unknown class>.() -> List<ObjectType>, updateBodyGetter: suspend <Error class: unknown class>.() -> List<ObjectType>) : WriteCRUDRepo<ObjectType, IdType, InputValue>
Content copied to clipboard
Constructors
Link copied to clipboard
fun <ObjectType, IdType, InputValue> KtorWriteCrudRepoClient( baseUrl: String, httpClient: <Error class: unknown class>, newObjectsFlow: Flow<ObjectType>, updatedObjectsFlow: Flow<ObjectType>, deletedObjectsIdsFlow: Flow<IdType>, createSetup: suspend <Error class: unknown class>.(List<InputValue>) -> Unit, updateSetup: suspend <Error class: unknown class>.(List<UpdatedValuePair<IdType, InputValue>>) -> Unit, deleteByIdSetup: suspend <Error class: unknown class>.(List<IdType>) -> Unit, createBodyGetter: suspend <Error class: unknown class>.() -> List<ObjectType>, updateBodyGetter: suspend <Error class: unknown class>.() -> List<ObjectType>)
Content copied to clipboard
Types
Functions
Link copied to clipboard
open suspend override fun create(values: List<InputValue>): List<ObjectType>
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
open suspend override fun update(values: List<UpdatedValuePair<IdType, InputValue>>): List<ObjectType>
Content copied to clipboard
open suspend override fun update(id: IdType, value: InputValue): ObjectType?
Content copied to clipboard