GenericCollectionEndpointImpl

inline fun <reified TEntity, TElementEndpoint : ElementEndpoint<TEntity>> GenericCollectionEndpointImpl(referrer: Endpoint, relativeUri: URI, noinline elementEndpointFactory: (referrer: Endpoint, relativeUri: URI) -> TElementEndpoint): GenericCollectionEndpointImpl<TEntity, TElementEndpoint>

Creates a new element collection endpoint, taking the entity type from the reified type argument.

Parameters

referrer

The endpoint used to navigate to this one.

relativeUri

The URI of this endpoint relative to the referrer's.

elementEndpointFactory

The factory for constructing TElementEndpoints to provide for individual elements.

Type Parameters

TEntity

The type of individual elements in the collection. Can be a generic type such as Versioned<Contact>.

TElementEndpoint

The type of ElementEndpoint to provide for individual TEntitys.


inline fun <reified TEntity, TElementEndpoint : ElementEndpoint<TEntity>> GenericCollectionEndpointImpl(referrer: Endpoint, relativeUri: String, noinline elementEndpointFactory: (referrer: Endpoint, relativeUri: URI) -> TElementEndpoint): GenericCollectionEndpointImpl<TEntity, TElementEndpoint>

Creates a new element collection endpoint, taking the entity type from the reified type argument.

Parameters

referrer

The endpoint used to navigate to this one.

relativeUri

The URI of this endpoint relative to the referrer's. Add a ./ prefix here to imply a trailing slash on referrer's URI.

elementEndpointFactory

The factory for constructing TElementEndpoints to provide for individual elements.

Type Parameters

TEntity

The type of individual elements in the collection. Can be a generic type such as Versioned<Contact>.

TElementEndpoint

The type of ElementEndpoint to provide for individual TEntitys.