Proyectos de Subversion Android Microlearning

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
package com.cesams.twogetskills.viewmodel;
2
 
3
import androidx.lifecycle.MutableLiveData;
4
import androidx.lifecycle.ViewModel;
5
import com.cesams.twogetskills.entity.UserLog;
6
 
7
import java.util.ArrayList;
8
 
9
public class TimeLineViewModel extends ViewModel {
10
    private MutableLiveData<ArrayList<UserLog>> userLogLiveData;
11
    private ArrayList<UserLog> userLogArrayList;
12
 
13
    public TimeLineViewModel() {
14
 
15
        userLogArrayList = new ArrayList<>();
16
 
17
        userLogLiveData = new MutableLiveData<>();
18
        userLogLiveData.setValue(userLogArrayList);
19
    }
20
 
21
    public MutableLiveData<ArrayList<UserLog>> getUserLogMutableLiveData() {
22
        return userLogLiveData;
23
    }
24
 
25
    public ArrayList<UserLog> getUserLogArrayList() {
26
        return userLogArrayList;
27
    }
28
 
29
 
30
 
31
}