1 |
efrain |
1 |
package com.cesams.twogetskills.viewmodel;
|
|
|
2 |
|
|
|
3 |
import androidx.lifecycle.MutableLiveData;
|
|
|
4 |
import androidx.lifecycle.ViewModel;
|
|
|
5 |
|
|
|
6 |
import com.cesams.twogetskills.viewdata.UserProfileViewData;
|
|
|
7 |
|
|
|
8 |
import java.util.ArrayList;
|
|
|
9 |
|
|
|
10 |
public class UserProfileViewModel extends ViewModel {
|
|
|
11 |
private MutableLiveData<ArrayList<UserProfileViewData>> userProfileViewDataLiveData;
|
|
|
12 |
private ArrayList<UserProfileViewData> userProfileViewDataArrayList;
|
|
|
13 |
|
|
|
14 |
public UserProfileViewModel() {
|
|
|
15 |
|
|
|
16 |
userProfileViewDataArrayList = new ArrayList<>();
|
|
|
17 |
|
|
|
18 |
userProfileViewDataLiveData = new MutableLiveData<>();
|
|
|
19 |
userProfileViewDataLiveData.setValue(userProfileViewDataArrayList);
|
|
|
20 |
}
|
|
|
21 |
|
|
|
22 |
public MutableLiveData<ArrayList<UserProfileViewData>> getUserProfileViewDataMutableLiveData() {
|
|
|
23 |
return userProfileViewDataLiveData;
|
|
|
24 |
}
|
|
|
25 |
|
|
|
26 |
public ArrayList<UserProfileViewData> getUserProfileViewDataArrayList() {
|
|
|
27 |
return userProfileViewDataArrayList;
|
|
|
28 |
}
|
|
|
29 |
|
|
|
30 |
|
|
|
31 |
|
|
|
32 |
}
|