Interface FriendService
- All Known Implementing Classes:
UserFriendService
public interface FriendService
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteFriend
(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 ofFriend
with the supplied offset and count.getFriends
(int offset, int count, String search) Gets the listing ofFriend
with the supplied offset, count, and search query.
-
Method Details
-
getFriends
Gets the listing ofFriend
with the supplied offset and count.- Parameters:
offset
- the offsetcount
- the count- Returns:
- the list of
Friend
instances
-
getFriends
Gets the listing ofFriend
with the supplied offset, count, and search query.- Parameters:
offset
- the offsetcount
- the countsearch
- the search query- Returns:
- the list of
Friend
instances
-
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()
.
-