Class PostgresFriendshipService
java.lang.Object
de.kentoj.scrowlib.friends.friendship.PostgresFriendshipService
- All Implemented Interfaces:
FriendshipService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleandeleteFriendship(UUID uuid1, UUID uuid2) @Nullable FriendshipgetFriendship(UUID uuid1, UUID uuid2) getFriendships(UUID playerId) booleansaveFriendship(Friendship friendship)
-
Constructor Details
-
PostgresFriendshipService
public PostgresFriendshipService(org.jdbi.v3.core.Jdbi jdbi)
-
-
Method Details
-
getFriendship
- Specified by:
getFriendshipin interfaceFriendshipService
-
getFriendships
- Specified by:
getFriendshipsin interfaceFriendshipService
-
saveFriendship
- Specified by:
saveFriendshipin interfaceFriendshipService
-
deleteFriendship
- Specified by:
deleteFriendshipin interfaceFriendshipService- Returns:
- True if friendship deleted, false if none found
-