package com.vanced.manager.model import androidx.lifecycle.MutableLiveData import com.github.kittinunf.fuel.core.requests.CancellableRequest open class ProgressModel { val downloadProgress = MutableLiveData() val downloadingFile = MutableLiveData() val installing = MutableLiveData() var currentDownload: CancellableRequest? = null fun reset() { downloadProgress.value = 0 downloadingFile.value = "" } fun postReset() { downloadProgress.postValue(0) downloadingFile.postValue("") } init { installing.value = false reset() } }