package jackall.moncalc.viewmodel import android.databinding.BaseObservable import android.view.View import jackall.moncalc.Contract.MainServiceContract import jackall.moncalc.db.MonstDataRealmHelper /** * Created by matsumoto_k on 2017/11/01. */ class OverlayRegistViewModel(val mainServiceContract: MainServiceContract) : BaseObservable() { private val monstDataRealmHelper = MonstDataRealmHelper() fun onClickMin(view: View) { mainServiceContract.showMoveView() } fun onClickFinish(view: View) { mainServiceContract.finish() } fun realmInstanceClose() { monstDataRealmHelper.close() } }