Skip to content

Instantly share code, notes, and snippets.

@RoRoche
Last active November 19, 2019 18:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RoRoche/85a78afa23db33102d67136c89e228e5 to your computer and use it in GitHub Desktop.
Save RoRoche/85a78afa23db33102d67136c89e228e5 to your computer and use it in GitHub Desktop.
Kotlin interface for RestRequest
import okhttp3.Response
interface RestRequest {
fun response(): Response
fun cancel()
abstract class Wrap protected constructor(
protected val origin: RestRequest
) : RestRequest by origin
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment