|
|
@ -1,6 +1,7 @@ |
|
|
|
package com.nivesh.production.bajajfd.viewModel |
|
|
|
|
|
|
|
import android.app.Activity |
|
|
|
import android.content.Context |
|
|
|
import androidx.lifecycle.MutableLiveData |
|
|
|
import androidx.lifecycle.ViewModel |
|
|
|
import androidx.lifecycle.viewModelScope |
|
|
@ -14,7 +15,7 @@ import com.nivesh.production.bajajfd.util.Constants |
|
|
|
import com.nivesh.production.bajajfd.util.Resource |
|
|
|
import kotlinx.coroutines.launch |
|
|
|
|
|
|
|
open class BajajFDViewModel(private val mainRepository: MainRepository) : ViewModel() { |
|
|
|
open class BajajFDViewModel(private val mainRepository: MainRepository,val context: Context) : ViewModel() { |
|
|
|
|
|
|
|
val getStepsCountMutableData: MutableLiveData<Resource<JsonObject>> = MutableLiveData() |
|
|
|
fun getStepsCount( |
|
|
|