Newer
Older
MonCalc / app / src / main / kotlin / jackall / moncalc / viewmodel / OverlayRegistViewModel.kt
package jackall.moncalc.viewmodel

import android.databinding.BaseObservable
import android.view.View
import jackall.moncalc.Contract.MainServiceContract
import jackall.moncalc.db.FruitRealmHelper
import jackall.moncalc.db.TempleRealmHelper

/**
 * Created by matsumoto_k on 2017/11/01.
 */
class OverlayRegistViewModel(val mainServiceContract: MainServiceContract) : BaseObservable() {
    private val templeRealmHelper = TempleRealmHelper()
    private val fruitRealmHelper = FruitRealmHelper()
    fun onClickMin(view: View) {
        mainServiceContract.showMoveView()
    }

    fun realmInstanceClose() {
        templeRealmHelper.close()
        fruitRealmHelper.close()
    }
}