Skip to content

Instantly share code, notes, and snippets.

@RohitSurwase
Created August 22, 2018 17:01
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 RohitSurwase/031e14c0faa48758b79746c222a35cfe to your computer and use it in GitHub Desktop.
Save RohitSurwase/031e14c0faa48758b79746c222a35cfe to your computer and use it in GitHub Desktop.
Key points of Model layer in MVP
class MainInteractor {
interface OnFinishedListener {
fun onResultSuccess(arrUpdates: List<DataItem>)
fun onResultFail(strError: String)
}
fun requestGetDataAPI(onFinishedListener: OnFinishedListener) {
// Get data from server
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment