Skip to content

Instantly share code, notes, and snippets.

@nikhilbansal97
Created June 27, 2018 07:12
Show Gist options
  • Save nikhilbansal97/df3446c77cde95d9756fa815e771d622 to your computer and use it in GitHub Desktop.
Save nikhilbansal97/df3446c77cde95d9756fa815e771d622 to your computer and use it in GitHub Desktop.
ContractInterface for Sample MVP
package com.example.nikhil.samplemvp.contract
interface ContractInterface {
interface View {
fun initView()
fun updateViewData()
}
interface Presenter {
fun incrementValue()
fun getCounter(): String
}
interface Model {
fun getCounter(): Int
fun incrementCounter()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment