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

IDatabaseOnlyAdapter.java « db « 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: 2642a480e86e11633291d9218ccb579b47b5c2c3 (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
36
37
38
39
40
41
42
43
package it.niedermann.nextcloud.deck.persistence.sync.adapters.db;

import android.arch.lifecycle.LiveData;

import it.niedermann.nextcloud.deck.model.Board;
import it.niedermann.nextcloud.deck.model.Card;
import it.niedermann.nextcloud.deck.model.Label;
import it.niedermann.nextcloud.deck.model.Stack;
import it.niedermann.nextcloud.deck.model.User;
import it.niedermann.nextcloud.deck.persistence.sync.adapters.IDataBasePersistenceAdapter;

public interface IDatabaseOnlyAdapter extends IDataBasePersistenceAdapter {
    LiveData<Board> getBoard(long accountId, long remoteId);

    LiveData<Stack> getStack(long accountId, long localBoardId, long remoteId);

    LiveData<Card> getCard(long accountId, long remoteId);

    LiveData<User> getUser(long accountId, long remoteId);

    void createUser(long accountId, User user);

    void updateUser(long accountId, User user);

    Label getLabel(long accountId, long remoteId);

    void createLabel(long accountId, Label label);

    void createJoinCardWithLabel(long localLabelId, long localCardId);

    void deleteJoinedLabelsForCard(long localCardId);

    void createJoinCardWithUser(long localUserId, long localCardId);

    void deleteJoinedUsersForCard(long localCardId);

    void createJoinStackWithCard(long localCardId, long localStackId);

    void deleteJoinedCardsForStack(long localStackId);


    void updateLabel(long accountId, Label label);
}