Interface FriendProvider


public interface FriendProvider
  • Method Details

    • findFriendship

      @NotNull @NotNull Optional<Friendship> findFriendship(int userOne, int userTwo)
    • findRequest

      @NotNull @NotNull Optional<FriendRequest> findRequest(int senderId, int receiverId)
    • findFavorite

      @NotNull @NotNull Optional<FriendFavorite> findFavorite(int ownerId, int friendId)
    • findSettings

      @NotNull @NotNull Optional<FriendSettings> findSettings(int userId)
    • findBlocked

      @NotNull @NotNull Optional<UserBlock> findBlocked(int userId, int blockedId)
    • findFriendships

      @NotNull @NotNull @Unmodifiable Collection<Friendship> findFriendships()
    • findRequests

      @NotNull @NotNull @Unmodifiable Collection<FriendRequest> findRequests()
    • findFavorites

      @NotNull @NotNull @Unmodifiable Collection<FriendFavorite> findFavorites()
    • findSettings

      @NotNull @NotNull @Unmodifiable Collection<FriendSettings> findSettings()
    • findBlockedList

      @NotNull @NotNull @Unmodifiable Collection<UserBlock> findBlockedList()
    • createFriendship

      @NotNull @NotNull Optional<Friendship> createFriendship(int userOne, int userTwo)
    • createRequest

      @NotNull @NotNull Optional<FriendRequest> createRequest(int senderId, int receiverId, @NotNull @NotNull LocalDateTime expires)
    • createFavorite

      @NotNull @NotNull Optional<FriendFavorite> createFavorite(int ownerId, int friendId)
    • createSettings

      @NotNull @NotNull Optional<FriendSettings> createSettings(int userId)
    • createBlocked

      @NotNull @NotNull Optional<UserBlock> createBlocked(int userId, int blockedId)
    • deleteFriendship

      int deleteFriendship(int userOne, int userTwo)
    • deleteRequest

      int deleteRequest(int senderId, int receiverId)
    • deleteFavorite

      int deleteFavorite(int ownerId, int friendId)
    • deleteSettings

      int deleteSettings(int userId)
    • deleteBlocked

      int deleteBlocked(int userId, int blockedId)
    • updateSettings

      @NotNull @NotNull Optional<FriendSettings> updateSettings(int userId, @NotNull @NotNull FriendSettings settings)
    • of

      @Internal @NotNull static @NotNull FriendProvider of(de.murmelmeister.library.database.Database database, com.google.gson.Gson gson, RefreshProvider refreshProvider, Long fetchLimit, long cacheCapacity, Duration refreshInterval)