X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fcore%2FPostProvider.java;h=d97a7ce61610f0baf62c4b85db36a2289caca24f;hb=aa43230316c235b835f326cfcb2fd5230d63677b;hp=e7167cd3796096090152cd881d5cee247edfe209;hpb=14b1aa4bf4b88e80f9cce4ec14d0950727df4a5f;p=Sone.git 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); + }