Move management of Sone following times to database.
[Sone.git] / src / main / java / net / pterodactylus / sone / database / FriendProvider.java
1 package net.pterodactylus.sone.database;
2
3 import java.util.Collection;
4
5 import net.pterodactylus.sone.data.LocalSone;
6 import net.pterodactylus.sone.data.Sone;
7
8 import com.google.common.base.Optional;
9
10 /**
11  * Provides information about {@link Sone#getFriends() friends} of a {@link Sone}.
12  *
13  * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
14  */
15 public interface FriendProvider {
16
17         Collection<String> getFriends(LocalSone localSone);
18         Optional<Long> getSoneFollowingTime(String remoteSoneId);
19         boolean isFriend(LocalSone localSone, String friendSoneId);
20
21 }