1 |
gabriel |
1 |
package com.cesams.twogetskills.inconcert.viewmodel;
|
|
|
2 |
|
|
|
3 |
import androidx.lifecycle.MutableLiveData;
|
|
|
4 |
import androidx.lifecycle.ViewModel;
|
|
|
5 |
|
|
|
6 |
import com.cesams.twogetskills.inconcert.viewdata.ProgressViewData;
|
|
|
7 |
|
|
|
8 |
|
|
|
9 |
public class ProgressViewModel extends ViewModel {
|
|
|
10 |
private MutableLiveData<ProgressViewData> progressLiveData;
|
|
|
11 |
private ProgressViewData progress;
|
|
|
12 |
|
|
|
13 |
public ProgressViewModel() {
|
|
|
14 |
|
|
|
15 |
progress = new ProgressViewData();
|
|
|
16 |
|
|
|
17 |
progressLiveData = new MutableLiveData<>();
|
|
|
18 |
progressLiveData.setValue(progress);
|
|
|
19 |
}
|
|
|
20 |
|
|
|
21 |
public MutableLiveData<ProgressViewData> getProgressMutableLiveData() {
|
|
|
22 |
return progressLiveData;
|
|
|
23 |
}
|
|
|
24 |
|
|
|
25 |
public ProgressViewData getProgress() {
|
|
|
26 |
return progress;
|
|
|
27 |
}
|
|
|
28 |
|
|
|
29 |
|
|
|
30 |
|
|
|
31 |
}
|