blob: 2b7aa5c5a942358a2b0586c882e98e8df63b520d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
package it.niedermann.nextcloud.deck.persistence.sync.adapters.db.dao;
import android.arch.lifecycle.LiveData;
import android.arch.persistence.room.Dao;
import android.arch.persistence.room.Query;
import java.util.List;
import it.niedermann.nextcloud.deck.model.Card;
@Dao
public interface CardDao extends GenericDao<Card> {
@Query("SELECT * FROM card WHERE stackId = :localStackId")
LiveData<List<Card>> getCardsForStack(final long localStackId);
@Query("SELECT * FROM card WHERE accountId = :accountId and id = :remoteId")
LiveData<Card> getCardByRemoteId(final long accountId, final long remoteId);
}
|