meili-epfl/Meili

View on GitHub
app/src/main/java/com/github/epfl/meili/cache/ResponseFetcher.kt

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
package com.github.epfl.meili.cache

interface ResponseFetcher<T> {
    /**
     * Gets info from the API using arg and calling back either onSuccess or onError
     */
    fun fetchResponse(arg: Any?, onSuccess: ((T)->Unit)?, onError: ((Error)->Unit))
}