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

IDataBasePersistenceAdapter.java « adapters « sync « persistence « 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: 2fa314acb7df16d738315fc758c1e7ae1a9692a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package it.niedermann.nextcloud.deck.persistence.sync.adapters;

import android.arch.lifecycle.LiveData;

import java.util.List;

import it.niedermann.nextcloud.deck.api.IResponseCallback;
import it.niedermann.nextcloud.deck.model.Account;
import it.niedermann.nextcloud.deck.model.Board;
import it.niedermann.nextcloud.deck.model.Stack;
import it.niedermann.nextcloud.deck.model.full.FullCard;

public interface IDataBasePersistenceAdapter extends IPersistenceAdapter {
    boolean hasAccounts();

    LiveData<Account> createAccount(String accoutName);

    void deleteAccount(long id);

    void updateAccount(Account account);

    LiveData<Account> readAccount(long id);

    LiveData<List<Account>> readAccounts();


    void getStacks(long accountId, long boardId, IResponseCallback<LiveData<List<Stack>>> responseCallback);

    void getStack(long accountId, long boardId, long stackId, IResponseCallback<LiveData<Stack>> responseCallback);

    void getBoards(long accountId, IResponseCallback<LiveData<List<Board>>> responseCallback);

    void getCard(long accountId, long boardId, long stackId, long cardId, IResponseCallback<LiveData<FullCard>> responseCallback);

}