lib / com.kirkbushman.araw / RedditApi

RedditApi

interface RedditApi

Functions

addSubredditToMulti

abstract fun addSubredditToMulti(username: String, multiname: String, subname: String, model: AddMultiSubReq, header: HashMap<String, String>): Call<Any?>

comment

abstract fun comment(commentId: String, rawJson: Int? = null, header: HashMap<String, String>): Call<EnvelopedCommentListing>

delete

abstract fun delete(id: String, header: HashMap<String, String>): Call<Any>

deleteMessage

abstract fun deleteMessage(id: String, header: HashMap<String, String>): Call<Any>

deleteSubredditToMulti

abstract fun deleteSubredditToMulti(username: String, multiname: String, subname: String, header: HashMap<String, String>): Call<Any?>

fetchComments

abstract fun fetchComments(submissionId: String, focusedCommentId: String? = null, focusedCommentParentsNum: Int? = null, sorting: String, limit: Long? = null, depth: Int? = null, rawJson: Int? = null, header: HashMap<String, String>): Call<List<EnvelopedContributionListing>>

fetchFrontpageSubmissionsSearch

abstract fun fetchFrontpageSubmissionsSearch(query: String, show: String? = null, sorting: String, timePeriod: String?, limit: Long, count: Int, after: String? = null, before: String? = null, restrictToSubreddit: Boolean? = null, rawJson: Int? = null, header: HashMap<String, String>): Call<EnvelopedSubmissionListing>

fetchMessages

abstract fun fetchMessages(where: String, limit: Long, count: Int, after: String? = null, before: String? = null, rawJson: Int? = null, header: HashMap<String, String>): Call<EnvelopedMessageListing>

fetchMultiSubmissions

abstract fun fetchMultiSubmissions(username: String, multiname: String, sorting: String, timePeriod: String?, limit: Long, count: Int, after: String? = null, before: String? = null, rawJson: Int? = null, header: HashMap<String, String>): Call<EnvelopedSubmissionListing>

fetchRedditorInfo

abstract fun fetchRedditorInfo(username: String, where: String, sorting: String, timePeriod: String?, limit: Long, count: Int, after: String? = null, before: String? = null, rawJson: Int? = null, header: HashMap<String, String>): Call<EnvelopedContributionListing>

fetchRedditorOverview

abstract fun fetchRedditorOverview(username: String, sorting: String, timePeriod: String?, limit: Long, count: Int, after: String? = null, before: String? = null, rawJson: Int? = null, header: HashMap<String, String>): Call<EnvelopedContributionListing>

fetchRedditorSearch

abstract fun fetchRedditorSearch(type: String = "user", query: String, show: String? = null, sorting: String, timePeriod: String?, limit: Long, count: Int, after: String? = null, before: String? = null, rawJson: Int? = null, header: HashMap<String, String>): Call<EnvelopedRedditorListing>

fetchRedditorSubreddits

abstract fun fetchRedditorSubreddits(where: String, limit: Long, count: Int, after: String? = null, before: String? = null, rawJson: Int? = null, header: HashMap<String, String>): Call<EnvelopedSubredditDataListing>

fetchSubmissions

abstract fun fetchSubmissions(sorting: String, timePeriod: String?, limit: Long, count: Int, after: String? = null, before: String? = null, rawJson: Int? = null, header: HashMap<String, String>): Call<EnvelopedSubmissionListing>
abstract fun fetchSubmissions(subreddit: String, sorting: String, timePeriod: String?, limit: Long, count: Int, after: String? = null, before: String? = null, rawJson: Int? = null, header: HashMap<String, String>): Call<EnvelopedSubmissionListing>

fetchSubmissionsSearch

abstract fun fetchSubmissionsSearch(subreddit: String, query: String, show: String? = null, sorting: String, timePeriod: String?, limit: Long, count: Int, after: String? = null, before: String? = null, restrictToSubreddit: Boolean? = null, rawJson: Int? = null, header: HashMap<String, String>): Call<EnvelopedSubmissionListing>

fetchSubmissionsSearchGeneral

abstract fun fetchSubmissionsSearchGeneral(type: String = "link", query: String, show: String? = null, sorting: String, timePeriod: String?, limit: Long, count: Int, after: String? = null, before: String? = null, rawJson: Int? = null, header: HashMap<String, String>): Call<EnvelopedSubmissionListing>

fetchSubredditsSearch

abstract fun fetchSubredditsSearch(type: String = "sr", query: String, show: String? = null, sorting: String, timePeriod: String?, limit: Long, count: Int, after: String? = null, before: String? = null, rawJson: Int? = null, header: HashMap<String, String>): Call<EnvelopedSubredditDataListing>

friend

abstract fun friend(id: String, header: HashMap<String, String>): Call<Any?>

getMultiDescription

abstract fun getMultiDescription(username: String, multiname: String, rawJson: Int? = null, header: HashMap<String, String>): Call<EnvelopedMultiDescription>

getMultiSubreddit

abstract fun getMultiSubreddit(username: String, multiname: String, subname: String, rawJson: Int? = null, header: HashMap<String, String>): Call<MultiSub>

hide

abstract fun hide(id: String, header: HashMap<String, String>): Call<Any?>

lock

abstract fun lock(id: String, header: HashMap<String, String>): Call<Any?>

markAsNsfw

abstract fun markAsNsfw(id: String, header: HashMap<String, String>): Call<Any?>

markAsSpoiler

abstract fun markAsSpoiler(id: String, header: HashMap<String, String>): Call<Any?>

me

abstract fun me(header: HashMap<String, String>): Call<Me>

moreChildren

abstract fun moreChildren(apiType: String = "json", children: String, limitChildren: Boolean? = null, sorting: String? = null, depth: Int? = null, id: String? = null, linkId: String, rawJson: Int? = null, header: HashMap<String, String>): Call<MoreChildrenResponse>

myBlocked

abstract fun myBlocked(header: HashMap<String, String>): Call<Any>

myFriends

abstract fun myFriends(header: HashMap<String, String>): Call<FriendList>

myKarma

abstract fun myKarma(header: HashMap<String, String>): Call<KarmaList>

myMultis

abstract fun myMultis(rawJson: Int? = null, header: HashMap<String, String>): Call<List<EnvelopedMulti>>

myPrefs

abstract fun myPrefs(header: HashMap<String, String>): Call<Prefs>

myTrophies

abstract fun myTrophies(header: HashMap<String, String>): Call<TrophyList>

obtainUploadContract

abstract fun obtainUploadContract(filepath: String, mimetype: String, header: HashMap<String, String>): Call<UploadContract>

readAllMessages

abstract fun readAllMessages(filters: String, header: HashMap<String, String>): Call<Any>

readMessage

abstract fun readMessage(id: String, header: HashMap<String, String>): Call<Any?>

redditor

abstract fun redditor(username: String, rawJson: Int? = null, header: HashMap<String, String>): Call<EnvelopedRedditorData>

redditorModeratedSubreddits

abstract fun redditorModeratedSubreddits(username: String, header: HashMap<String, String>): Call<ModeratedList>

redditorMultis

abstract fun redditorMultis(username: String, rawJson: Int? = null, header: HashMap<String, String>): Call<List<EnvelopedMulti>>

redditorTrophies

abstract fun redditorTrophies(username: String, rawJson: Int? = null, header: HashMap<String, String>): Call<TrophyList>

reply

abstract fun reply(apiType: String = "json", fullname: String, text: String, header: HashMap<String, String>): Call<Reply>

rules

abstract fun rules(subreddit: String, rawJson: Int? = null, header: HashMap<String, String>): Call<SubredditRules>

save

abstract fun save(id: String, header: HashMap<String, String>): Call<Any?>

search

abstract fun search(type: String? = null, sorting: String? = null, timePeriod: String? = null, show: Boolean? = null, limit: Long, count: Int, after: String? = null, before: String? = null, rawJson: Int? = null, header: HashMap<String, String>): Call<List<Listing<EnvelopedData>>>

searchSubreddits

abstract fun searchSubreddits(query: String, exact: Boolean? = null, includeOver18: Boolean? = null, includeUnadvertisable: Boolean? = null, rawJson: Int? = null, header: HashMap<String, String>): Call<SubredditSearchResult>

setMultiDescription

abstract fun setMultiDescription(): Call<Any?>

submission

abstract fun submission(submissionId: String, rawJson: Int? = null, header: HashMap<String, String>): Call<EnvelopedSubmissionListing>

submit

abstract fun submit(resubmit: Boolean? = null, rawJson: Int? = null, apiType: String = "json", extension: String? = null, subreddit: String, title: String, kind: String, text: String? = null, url: String? = null, submitType: String? = null, sendReplies: Boolean, isNsfw: Boolean, isSpoiler: Boolean, isOriginalContent: Boolean, validateOnSubmit: Boolean? = null, showErrorList: Boolean? = null, header: HashMap<String, String>): Call<SubmitResponse>

subreddit

abstract fun subreddit(subreddit: String, rawJson: Int? = null, header: HashMap<String, String>): Call<EnvelopedSubredditData>

subredditFlairs

abstract fun subredditFlairs(subreddit: String, rawJson: Int? = null, header: HashMap<String, String>): Call<List<Flair>>

subredditInfo

abstract fun subredditInfo(subreddit: String, where: String, rawJson: Int? = null, header: HashMap<String, String>): Call<UserList>

subreddits

abstract fun subreddits(subredditIds: String, rawJson: Int? = null, header: HashMap<String, String>): Call<EnvelopedSubredditDataListing>

subscribe

abstract fun subscribe(action: String, subredditIds: String? = null, subredditNames: String? = null, skipInitialDefaults: Boolean? = null, header: HashMap<String, String>): Call<Any?>

trendingSubreddits

abstract fun trendingSubreddits(url: String = "https://www.reddit.com/api/trending_subreddits/.json"): Call<TrendingSubreddits>

unfriend

abstract fun unfriend(id: String, header: HashMap<String, String>): Call<Any?>

unhide

abstract fun unhide(id: String, header: HashMap<String, String>): Call<Any?>

unlock

abstract fun unlock(id: String, header: HashMap<String, String>): Call<Any?>

unmarknsfw

abstract fun unmarknsfw(id: String, header: HashMap<String, String>): Call<Any?>

unreadMessage

abstract fun unreadMessage(id: String, header: HashMap<String, String>): Call<Any?>

unsave

abstract fun unsave(id: String, header: HashMap<String, String>): Call<Any?>

unspoiler

abstract fun unspoiler(id: String, header: HashMap<String, String>): Call<Any?>

uploadMedia

abstract fun uploadMedia(uploadUrl: String, acl: RequestBody, key: RequestBody, xAmzCredential: RequestBody, xAmzAlgorithm: RequestBody, xAmzDate: RequestBody, successActionStatus: RequestBody, contentType: RequestBody, xAmzStorageClass: RequestBody, xAmzMetaExt: RequestBody, policy: RequestBody, xAmzSignature: RequestBody, xAmzSecurityToken: RequestBody, file: Part): Call<ResponseBody>

vote

abstract fun vote(id: String, dir: Int, header: HashMap<String, String>): Call<Any?>

wiki

abstract fun wiki(subreddit: String, rawJson: Int? = null, header: HashMap<String, String>): Call<EnvelopedWikiPage>

wikiPage

abstract fun wikiPage(subreddit: String, page: String, rawJson: Int? = null, header: HashMap<String, String>): Call<EnvelopedWikiPage>

wikiPages

abstract fun wikiPages(subreddit: String, rawJson: Int? = null, header: HashMap<String, String>): Call<WikiPageList>

wikiRevision

abstract fun wikiRevision(subreddit: String, page: String, rawJson: Int? = null, header: HashMap<String, String>): Call<EnvelopedWikiRevisionListing>

wikiRevisions

abstract fun wikiRevisions(subreddit: String, rawJson: Int? = null, header: HashMap<String, String>): Call<EnvelopedWikiRevisionListing>