/***************************************************************************************************
* Second: extended API functionality
*/
// Handle to ExtendedSubmissions, which offers functionality beyond the Reddit API
ExtendedSubmissions extendedSubms = new ExtendedSubmissions(subms);
// Retrieve the top 323 submissions of funny
System.out.println("\n============== Extended subreddits submissions retrieval ==============");
List<Submission> submissionsSubredditExtra = extendedSubms.ofSubreddit("funny", SubmissionSort.TOP, 323, null);
printSubmissionsList(submissionsSubredditExtra);
// Retrieve the top 532 submissions of query "valentine", user is not given (which is optional)
System.out.println("\n============== Extended search submissions retrieval ==============");
List<Submission> submissionsSearchExtra = extendedSubms.search("valentine", SearchSort.RELEVANCE, TimeSpan.ALL, 532);
printSubmissionsList(submissionsSearchExtra);
// Retrieve the top 233 submissions of a user
System.out.println("\n============== Extended user submissions retrieval ==============");
List<Submission> submissionsUserExtra = extendedSubms.ofUser("Unidan", UserSubmissionsCategory.SUBMITTED, UserOverviewSort.HOT, 233);
printSubmissionsList(submissionsUserExtra);
} catch (RetrievalFailedException e) {
e.printStackTrace();
} catch (RedditError e) {