androidUnitTest.com.algolia.instantsearch.insights.MockDistantRepository.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of instantsearch-insights Show documentation
Show all versions of instantsearch-insights Show documentation
InstantSearch Android is a library providing widgets and helpers to help you build the best instant-search experience on Android with Algolia. It is built on top of Algolia's Kotlin API Client to provide you a high-level solution to quickly build various search interfaces.
package com.algolia.instantsearch.insights
import com.algolia.instantsearch.insights.internal.data.distant.InsightsDistantRepository
import com.algolia.instantsearch.insights.internal.event.EventResponse
import com.algolia.search.model.APIKey
import com.algolia.search.model.ApplicationID
import com.algolia.search.model.insights.InsightsEvent
internal class MockDistantRepository : InsightsDistantRepository {
var code = 200
override suspend fun send(event: InsightsEvent): EventResponse {
return EventResponse(event, code)
}
override val apiKey = APIKey("apiKey")
override val applicationID = ApplicationID("applicationID")
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy