/** * Retrieve the photo feed and associated entries. The kinds parameter is a * list of the type of associated entries to return. For example * <code>PhotoFeed photoAndComments = photoEntry.getFeed(CommentEntry.KIND, * TagEntry.KIND);</code> If no kind parameters are passed, the default * of {@link CommentEntry#KIND} will be used. * * @see CommentEntry#KIND * @see TagEntry#KIND * @param kinds the kinds of entries to retrieve, or empty to use the default. * @return a feed of the photo and the requested kinds. */ public PhotoFeed getFeed(String... kinds) throws IOException, ServiceException { return getFeed(PhotoFeed.class, kinds); }
/** * Retrieve the photo feed and associated entries. The kinds parameter is a * list of the type of associated entries to return. For example * <code>PhotoFeed photoAndComments = photoEntry.getFeed(CommentEntry.KIND, * TagEntry.KIND);</code> If no kind parameters are passed, the default * of {@link CommentEntry#KIND} will be used. * * @see CommentEntry#KIND * @see TagEntry#KIND * @param kinds the kinds of entries to retrieve, or empty to use the default. * @return a feed of the photo and the requested kinds. */ public PhotoFeed getFeed(String... kinds) throws IOException, ServiceException { return getFeed(PhotoFeed.class, kinds); }