Interface FriendService
- All Known Implementing Classes:
UserFriendService
public interface FriendService
-
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteFriend(String friendId) Deletes the suppliedFriend, throwing an exception if the supplied id is not valid.Gets a single instance ofFriend.getFriends(int offset, int count) Gets the listing ofFriendwith the supplied offset and count.getFriends(int offset, int count, String search) Gets the listing ofFriendwith the supplied offset, count, and search query.
-
Method Details
-
getFriends
Gets the listing ofFriendwith the supplied offset and count.- Parameters:
offset- the offsetcount- the count- Returns:
- the list of
Friendinstances
-
getFriends
Gets the listing ofFriendwith the supplied offset, count, and search query.- Parameters:
offset- the offsetcount- the countsearch- the search query- Returns:
- the list of
Friendinstances
-
getFriend
- Parameters:
friendId- the id, as obtained usingFriend.getId().- Returns:
- the
Friend, never null
-
deleteFriend
Deletes the suppliedFriend, throwing an exception if the supplied id is not valid.- Parameters:
friendId- the id, as obtained usingFriend.getId().
-