APIUnitRemoteRepository

open class APIUnitRemoteRepository(client: IAPIClient, route: String? = null, prefix: String? = null) : APIModelRemoteRepository<UnitModel, Unit, Unit, Unit>

Constructors

Link copied to clipboard
constructor(client: IAPIClient, route: String? = null, prefix: String? = null)

Properties

Link copied to clipboard
Link copied to clipboard
override val createPayloadTypeInfo: TypeInfo
Link copied to clipboard
open override val id: String
Link copied to clipboard
override val listTypeInfo: TypeInfo
Link copied to clipboard
override val modelTypeInfo: TypeInfo
Link copied to clipboard
Link copied to clipboard
open override val prefix: String
Link copied to clipboard
open override val route: String
Link copied to clipboard
override val updatePayloadTypeInfo: TypeInfo

Functions

Link copied to clipboard
open fun constructFullRoute(parentId: RecursiveId<*, Unit, *>): String
Link copied to clipboard
open override fun constructRouteIncludingParent(parentId: Any?): String
Link copied to clipboard
open suspend fun count(parentId: RecursiveId<*, Unit, *>, context: IContext?): Long
open suspend fun count(context: IContext?): Long
Link copied to clipboard
open suspend override fun create(payload: Unit, context: IContext?): UnitModel?
open suspend override fun create(payload: Unit, parentId: RecursiveId<*, Unit, *>, context: IContext?): UnitModel?
Link copied to clipboard
open suspend override fun delete(id: Unit, context: IContext?): Boolean
open suspend override fun delete(id: Unit, parentId: RecursiveId<*, Unit, *>, context: IContext?): Boolean
Link copied to clipboard
open fun HttpRequestBuilder.encodePagination(pagination: Pagination)
Link copied to clipboard
open fun HttpRequestBuilder.encodePaginationOptions(options: IPaginationOptions)
Link copied to clipboard
open suspend override fun get(id: Unit, context: IContext?): UnitModel?
open suspend override fun get(id: Unit, parentId: RecursiveId<*, Unit, *>, context: IContext?): UnitModel?
Link copied to clipboard
open suspend override fun list(context: IContext?): List<UnitModel>
open suspend override fun list(parentId: RecursiveId<*, Unit, *>, context: IContext?): List<UnitModel>
open suspend override fun list(pagination: Pagination, context: IContext?): List<UnitModel>
open suspend override fun list(pagination: Pagination, parentId: RecursiveId<*, Unit, *>, context: IContext?): List<UnitModel>
Link copied to clipboard
open suspend override fun update(id: Unit, payload: Unit, context: IContext?): UnitModel?
open suspend override fun update(id: Unit, payload: Unit, parentId: RecursiveId<*, Unit, *>, context: IContext?): UnitModel?