X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fcore%2FPostProvider.java;h=d97a7ce61610f0baf62c4b85db36a2289caca24f;hp=e7167cd3796096090152cd881d5cee247edfe209;hb=d535f744751ba449e0f34fe3a42f1020988f14be;hpb=14b1aa4bf4b88e80f9cce4ec14d0950727df4a5f diff --git a/src/main/java/net/pterodactylus/sone/core/PostProvider.java b/src/main/java/net/pterodactylus/sone/core/PostProvider.java index e7167cd..d97a7ce 100644 --- a/src/main/java/net/pterodactylus/sone/core/PostProvider.java +++ b/src/main/java/net/pterodactylus/sone/core/PostProvider.java @@ -17,6 +17,8 @@ package net.pterodactylus.sone.core; +import java.util.Collection; + import net.pterodactylus.sone.data.Post; /** @@ -35,4 +37,14 @@ public interface PostProvider { */ public Post getPost(String postId); + /** + * Returns all posts that have the given Sone as recipient. + * + * @see Post#getRecipient() + * @param recipientId + * The ID of the recipient of the posts + * @return All posts that have the given Sone as recipient + */ + public Collection getDirectedPosts(String recipientId); + }