Enrichment Service
class EnrichmentService(val host: String, val version: String, val factory: ApiFactory, val customHttpUrlConnection: CustomHttpUrlConnection) : NetworkService(source)
Constructors
Link copied to clipboard
constructor(host: String, version: String, factory: ApiFactory, customHttpUrlConnection: CustomHttpUrlConnection)
Functions
Link copied to clipboard
suspend fun enrichment(enrichmentRequest: EnrichmentRequest, maxRetry: Int = 0, timeout: Duration = 1.seconds): Either<Enrichment, NetworkError>
Link copied to clipboard
inline suspend fun <T : @Serializable Any> get(path: String, queryItems: List<URLQueryItem>? = null, isForDebugging: Boolean = false, requestId: String = UUID.randomUUID().toString(), retryCount: Int = NetworkConsts.retryCount(), noinline isRetryingCallback: suspend () -> Unit? = null, timeout: Duration? = null): Either<T, NetworkError>
Link copied to clipboard