Welcome to mirror list, hosted at ThFree Co, Russian Federation.

CommentsViewModel.java « comments « card « ui « deck « nextcloud « niedermann « it « java « main « src « app - github.com/stefan-niedermann/nextcloud-deck.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f7fd247a9c5f551bbd39dd509fac44c8d736de4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package it.niedermann.nextcloud.deck.ui.card.comments;

import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;

import it.niedermann.nextcloud.deck.model.ocs.comment.full.FullDeckComment;

@SuppressWarnings("WeakerAccess")
public class CommentsViewModel extends ViewModel {

    private MutableLiveData<FullDeckComment> replyToComment = new MutableLiveData<>();

    public void setReplyToComment(FullDeckComment replyToComment) {
        this.replyToComment.postValue(replyToComment);
    }

    public LiveData<FullDeckComment> getReplyToComment() {
        return this.replyToComment;
    }
}