blob: 1ec94bc8525960957a9f965c9f26a3fe02a88f49 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
package ml.docilealligator.infinityforreddit.multireddit;
import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.OnConflictStrategy;
import androidx.room.Query;
import java.util.List;
@Dao
public interface AnonymousMultiredditSubredditDao {
@Insert(onConflict = OnConflictStrategy.REPLACE)
void insert(AnonymousMultiredditSubreddit anonymousMultiredditSubreddit);
@Insert(onConflict = OnConflictStrategy.REPLACE)
void insertAll(List<AnonymousMultiredditSubreddit> anonymousMultiredditSubreddits);
@Query("SELECT * FROM anonymous_multireddit_subreddits WHERE path = :path ORDER BY subreddit_name COLLATE NOCASE ASC")
List<AnonymousMultiredditSubreddit> getAllAnonymousMultiRedditSubreddits(String path);
@Query("SELECT * FROM anonymous_multireddit_subreddits")
List<AnonymousMultiredditSubreddit> getAllSubreddits();
}
|