Skip to content

Instantly share code, notes, and snippets.

@nikhilbansal97
Created June 27, 2018 08:35
Show Gist options
  • Save nikhilbansal97/a39bb5a13e905cdac36a45ff8389d6f2 to your computer and use it in GitHub Desktop.
Save nikhilbansal97/a39bb5a13e905cdac36a45ff8389d6f2 to your computer and use it in GitHub Desktop.
The model class for the SampleMVP project.
package com.example.nikhil.samplemvp.model
import com.example.nikhil.samplemvp.contract.ContractInterface.*
class MainActivityModel: Model {
private var mCounter = 0
override fun getCounter()= mCounter
override fun incrementCounter() {
mCounter++
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment