WikidataRepository

@Singleton
class WikidataRepository @Inject constructor(wikidataAPI: WikidataAPI, dispatchers: CoroutineDispatchers)

API client to recieve data from WikiData APIs

Author

Shubham Vishwakarma

Since

14.03.18

Constructors

Link copied to clipboard
@Inject
fun WikidataRepository(wikidataAPI: WikidataAPI, dispatchers: CoroutineDispatchers)

Functions

Link copied to clipboard
suspend fun getEntityData(entityId: String): JsonNode?

Get json response of the WikiData for additive/ingredient/category/label using their WikiDataID