mirror of https://github.com/KokaKiwi/BarInsta
20 lines
469 B
Java
20 lines
469 B
Java
package awais.instagrabber.viewmodels;
|
|
|
|
import androidx.lifecycle.MutableLiveData;
|
|
import androidx.lifecycle.ViewModel;
|
|
|
|
import java.util.List;
|
|
|
|
import awais.instagrabber.models.CommentModel;
|
|
|
|
public class CommentsViewModel extends ViewModel {
|
|
private MutableLiveData<List<CommentModel>> list;
|
|
|
|
public MutableLiveData<List<CommentModel>> getList() {
|
|
if (list == null) {
|
|
list = new MutableLiveData<>();
|
|
}
|
|
return list;
|
|
}
|
|
}
|