aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/User/UserDao.java
blob: 2bf7b824b5e04d9dcb88b3479028f1ddd4a99fb5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package User;

import androidx.lifecycle.LiveData;
import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.OnConflictStrategy;
import androidx.room.Query;

@Dao
public interface UserDao {
    @Insert(onConflict = OnConflictStrategy.REPLACE)
    void insert(UserData userData);

    @Query("DELETE FROM users")
    void deleteAllUsers();

    @Query("SELECT * FROM users WHERE name = :userName COLLATE NOCASE LIMIT 1")
    LiveData<UserData> getUserLiveData(String userName);

    @Query("SELECT * FROM users WHERE name = :userName COLLATE NOCASE LIMIT 1")
    UserData getUserData(String userName);
}
d=965d8ab8aec779d9a300434dd20840f481e3941c&follow=1'>Show an indicator for the current sort type.Docile-Alligator13-39/+145 2022-08-21Show an indicator for the current sort type in SortTypeBottomSheetFragment.Docile-Alligator9-27/+66 2022-08-16Version 5.3.0-beta1.Docile-Alligator2-4/+2 2022-08-16Receive events in HistoryPostFragment.Docile-Alligator1-6/+399 2022-08-15Update Redgifs API.Docile-Alligator4-13/+35 2022-08-15Show urls in ShareLinkBottomSheetFragment.Docile-Alligator2-2/+40 2022-08-15Apply custom theme to settings page.Docile-Alligator77-239/+518 2022-08-14Apply custom theme to the header of the navigation drawer.Docile-Alligator4-16/+14 2022-08-14Heading markdown fix (#908)Sergei Kozelko11-15/+165 2022-08-14Fix post content is not parsed in other types of posts.Docile-Alligator8-96/+131 2022-08-13Fix saved comments not shown when clicking Saved option in the bottom navigat...Docile-Alligator4-8/+4 2022-08-13Fix caption shown under the navbar in ViewRedditGalleryImageOrGifFragment.Docile-Alligator4-23/+37 2022-08-12Manage theme insertion callbacks behaviour (#892)Andrei Shpakovskiy1-25/+25 2022-08-12fixed renamed labelWladimir Kirianov1-1/+1 2022-08-12fixed typosWladimir Kirianov1-2/+2 2022-08-05Extra small font sizeDocile-Alligator7-0/+36 2022-08-05Set default position of cursor at the end of query (#842)Andrei Shpakovskiy1-0/+1 2022-08-05Move mAccessToken and mAccountName initialization upper (#841)Anatolii Afanasev1-3/+3 2022-08-05Apply FAB theme in CustomThemeListingActivity (#857)Sergei Kozelko1-0/+1 2022-08-05Fix loading previews after quick scroll (#861)Sergei Kozelko2-1/+8 2022-08-04Clear user flair.Docile-Alligator4-25/+55 2022-07-29Fixed linksWladimir Kirianov1-1/+1 2022-07-28Minor UI tweaks in ViewSubredditDetailActivity, ViewUserDetailActivity and Cu...Docile-Alligator12-27/+46 2022-07-28Update config.ymlWladimir Kirianov1-1/+1 2022-07-28Update translation contributors.Docile-Alligator1-19/+19