package com.vanced.manager.model import androidx.lifecycle.MutableLiveData import okhttp3.ResponseBody import retrofit2.Call open class ProgressModel { val downloadProgress = MutableLiveData() val downloadingFile = MutableLiveData() val installing = MutableLiveData() var currentDownload: Call? = null fun reset() { downloadProgress.value = 0 downloadingFile.value = "" } fun postReset() { downloadProgress.postValue(0) downloadingFile.postValue("") } init { installing.value = false reset() } }