package com.topjohnwu.magisk.ui.base

import com.skoumal.teanity.viewmodel.LoadingViewModel
import com.topjohnwu.magisk.utils.Event
import timber.log.Timber


abstract class MagiskViewModel : LoadingViewModel(), Event.AutoListener {

    init {
        Event.register(this)
    }

    override fun onEvent(event: Int) = Timber.i("Event of $event was not handled")
    override fun getListeningEvents(): IntArray = intArrayOf()

}
