1 package net.pterodactylus.sone.database;
3 import java.util.Collection;
5 import net.pterodactylus.sone.data.LocalSone;
6 import net.pterodactylus.sone.data.Sone;
8 import com.google.common.base.Optional;
11 * Provides information about {@link Sone#getFriends() friends} of a {@link Sone}.
13 * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
15 public interface FriendProvider {
17 Collection<String> getFriends(LocalSone localSone);
18 Optional<Long> getSoneFollowingTime(String remoteSoneId);
19 boolean isFriend(LocalSone localSone, String friendSoneId);