Move management of Sone following times to database.
[Sone.git] / src / main / java / net / pterodactylus / sone / database / FriendProvider.java
index 3665d1b..cae2ff8 100644 (file)
@@ -2,8 +2,11 @@ package net.pterodactylus.sone.database;
 
 import java.util.Collection;
 
+import net.pterodactylus.sone.data.LocalSone;
 import net.pterodactylus.sone.data.Sone;
 
+import com.google.common.base.Optional;
+
 /**
  * Provides information about {@link Sone#getFriends() friends} of a {@link Sone}.
  *
@@ -11,7 +14,8 @@ import net.pterodactylus.sone.data.Sone;
  */
 public interface FriendProvider {
 
-       Collection<String> getFriends(Sone localSone);
-       boolean isFriend(Sone localSone, String friendSoneId);
+       Collection<String> getFriends(LocalSone localSone);
+       Optional<Long> getSoneFollowingTime(String remoteSoneId);
+       boolean isFriend(LocalSone localSone, String friendSoneId);
 
 }