-
-
Save RohitSurwase/031e14c0faa48758b79746c222a35cfe to your computer and use it in GitHub Desktop.
Key points of Model layer in MVP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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