├── lib
├── .gitignore
├── src
│ └── main
│ │ ├── res
│ │ └── values
│ │ │ └── strings.xml
│ │ ├── AndroidManifest.xml
│ │ └── java
│ │ └── com
│ │ └── kirkbushman
│ │ └── araw
│ │ ├── http
│ │ ├── base
│ │ │ ├── Envelope.kt
│ │ │ └── Listing.kt
│ │ ├── EnvelopedData.kt
│ │ ├── EnvelopedContribution.kt
│ │ ├── EnvelopedCommentData.kt
│ │ ├── EnvelopedTrophyList.kt
│ │ ├── EnvelopedMulti.kt
│ │ ├── EnvelopedTrophy.kt
│ │ ├── EnvelopedMessage.kt
│ │ ├── EnvelopedSubreddit.kt
│ │ ├── EnvelopedRedditorData.kt
│ │ ├── EnvelopedSubmission.kt
│ │ ├── EnvelopedMessageListing.kt
│ │ ├── EnvelopedMultiDescription.kt
│ │ ├── EnvelopedRedditorListing.kt
│ │ ├── EnvelopedSubredditData.kt
│ │ ├── EnvelopedSubredditListing.kt
│ │ ├── EnvelopedSubmissionListing.kt
│ │ ├── EnvelopedContributionListing.kt
│ │ ├── EnvelopedRedditorDataListing.kt
│ │ ├── EnvelopedWikiRevisionListing.kt
│ │ ├── EnvelopedSubredditDataListing.kt
│ │ ├── EnvelopedRedditor.kt
│ │ ├── EnvelopedComment.kt
│ │ ├── EnvelopedCommentListing.kt
│ │ ├── EnvelopedMoreComment.kt
│ │ ├── EnvelopedWikiPage.kt
│ │ ├── EnvelopedCommentDataListing.kt
│ │ └── listings
│ │ │ └── MessageListing.kt
│ │ ├── exceptions
│ │ ├── WikiDisabledException.kt
│ │ └── UploadContractFieldMissingException.kt
│ │ └── models
│ │ ├── base
│ │ ├── RedditorData.kt
│ │ ├── Replyable.kt
│ │ ├── Thing.kt
│ │ ├── Created.kt
│ │ ├── Contribution.kt
│ │ ├── SubredditData.kt
│ │ ├── Saveable.kt
│ │ ├── Sorting.kt
│ │ ├── Gildable.kt
│ │ ├── Editable.kt
│ │ └── Distinguishable.kt
│ │ ├── enums
│ │ ├── Distinguished.kt
│ │ ├── RedditorSearchSorting.kt
│ │ ├── SubredditSearchSorting.kt
│ │ ├── ContributionsSorting.kt
│ │ ├── SearchSorting.kt
│ │ ├── TimePeriod.kt
│ │ ├── SubmissionsSorting.kt
│ │ ├── Vote.kt
│ │ └── CommentsSorting.kt
│ │ ├── UploadFile.kt
│ │ ├── UserlessSelf.kt
│ │ ├── commons
│ │ ├── MediaEmbed.kt
│ │ ├── FlairRichtext.kt
│ │ └── SubmissionKind.kt
│ │ └── TrendingSubreddits.kt
├── .settings
│ └── org.eclipse.buildship.core.prefs
├── .classpath
└── .project
├── sampleapp
├── .gitignore
├── .settings
│ └── org.eclipse.buildship.core.prefs
├── src
│ ├── main
│ │ ├── res
│ │ │ ├── mipmap-hdpi
│ │ │ │ ├── ic_launcher.png
│ │ │ │ └── ic_launcher_round.png
│ │ │ ├── mipmap-mdpi
│ │ │ │ ├── ic_launcher.png
│ │ │ │ └── ic_launcher_round.png
│ │ │ ├── mipmap-xhdpi
│ │ │ │ ├── ic_launcher.png
│ │ │ │ └── ic_launcher_round.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ │ ├── ic_launcher.png
│ │ │ │ └── ic_launcher_round.png
│ │ │ ├── mipmap-xxxhdpi
│ │ │ │ ├── ic_launcher.png
│ │ │ │ └── ic_launcher_round.png
│ │ │ ├── values
│ │ │ │ ├── ids.xml
│ │ │ │ ├── colors.xml
│ │ │ │ └── styles.xml
│ │ │ ├── mipmap-anydpi-v26
│ │ │ │ ├── ic_launcher.xml
│ │ │ │ └── ic_launcher_round.xml
│ │ │ └── layout
│ │ │ │ ├── item_rule.xml
│ │ │ │ ├── item_empty.xml
│ │ │ │ ├── activity_api_detail.xml
│ │ │ │ ├── fragment_epoxy.xml
│ │ │ │ ├── item_suspended_redditor.xml
│ │ │ │ └── item_trophy.xml
│ │ └── java
│ │ │ └── com
│ │ │ └── kirkbushman
│ │ │ └── sampleapp
│ │ │ ├── controllers
│ │ │ ├── base
│ │ │ │ └── BaseCallback.kt
│ │ │ ├── TrophiesController.kt
│ │ │ └── RulesController.kt
│ │ │ ├── TestApplication.kt
│ │ │ ├── TestCredentials.kt
│ │ │ ├── activities
│ │ │ ├── MultiSearchActivity.kt
│ │ │ └── base
│ │ │ │ └── BaseActivity.kt
│ │ │ └── models
│ │ │ └── EmptyModel.kt
│ ├── androidTest
│ │ └── java
│ │ │ └── com
│ │ │ └── kirkbushman
│ │ │ └── sampleapp
│ │ │ └── instrumented
│ │ │ ├── TestCredentials.kt
│ │ │ └── BasicTestIntegration.kt
│ └── test
│ │ └── java
│ │ └── com
│ │ └── kirkbushman
│ │ └── sampleapp
│ │ └── local
│ │ └── BasicTest.kt
├── .classpath
└── .project
├── settings.gradle
├── jitpack.yml
├── gradle
└── wrapper
│ ├── gradle-wrapper.jar
│ └── gradle-wrapper.properties
├── .editorconfig
├── docs
├── index.html
└── lib
│ ├── com.kirkbushman.araw.models.enums
│ ├── -vote
│ │ ├── -n-o-n-e.html
│ │ ├── -u-p-v-o-t-e.html
│ │ └── -d-o-w-n-v-o-t-e.html
│ ├── -comments-sorting
│ │ ├── -q-a.html
│ │ ├── -n-e-w.html
│ │ ├── -o-l-d.html
│ │ ├── -t-o-p.html
│ │ ├── -b-e-s-t.html
│ │ ├── -l-i-v-e.html
│ │ ├── -r-a-n-d-o-m.html
│ │ ├── -c-o-n-f-i-d-e-n-c-e.html
│ │ └── -c-o-n-t-r-o-v-e-r-s-i-a-l.html
│ ├── -search-sorting
│ │ ├── -h-o-t.html
│ │ ├── -n-e-w.html
│ │ ├── -t-o-p.html
│ │ ├── -c-o-m-m-e-n-t-s.html
│ │ └── -r-e-l-e-v-a-n-c-e.html
│ ├── -distinguished
│ │ ├── -a-d-m-i-n.html
│ │ ├── -s-p-e-c-i-a-l.html
│ │ ├── -m-o-d-e-r-a-t-o-r.html
│ │ └── -n-o-t_-d-i-s-t-i-n-g-u-i-s-h-e-d.html
│ ├── -submissions-sorting
│ │ ├── -h-o-t.html
│ │ ├── -n-e-w.html
│ │ ├── -t-o-p.html
│ │ ├── -b-e-s-t.html
│ │ ├── -r-i-s-i-n-g.html
│ │ └── -c-o-n-t-r-o-v-e-r-s-i-a-l.html
│ ├── -contributions-sorting
│ │ ├── -h-o-t.html
│ │ ├── -n-e-w.html
│ │ ├── -t-o-p.html
│ │ └── -c-o-n-t-r-o-v-e-r-s-i-a-l.html
│ ├── -time-period
│ │ ├── -a-l-l_-t-i-m-e.html
│ │ ├── -l-a-s-t_-d-a-y.html
│ │ ├── -l-a-s-t_-h-o-u-r.html
│ │ ├── -l-a-s-t_-w-e-e-k.html
│ │ ├── -l-a-s-t_-y-e-a-r.html
│ │ └── -l-a-s-t_-m-o-n-t-h.html
│ ├── -redditor-search-sorting
│ │ ├── -a-l-l.html
│ │ └── -r-e-l-e-v-a-n-c-e.html
│ └── -subreddit-search-sorting
│ │ ├── -a-l-l.html
│ │ └── -r-e-l-e-v-a-n-c-e.html
│ ├── com.kirkbushman.araw.models.general
│ ├── -vote
│ │ ├── -n-o-n-e.html
│ │ ├── -u-p-v-o-t-e.html
│ │ └── -d-o-w-n-v-o-t-e.html
│ ├── -comments-sorting
│ │ ├── -q-a.html
│ │ ├── -n-e-w.html
│ │ ├── -o-l-d.html
│ │ ├── -t-o-p.html
│ │ ├── -b-e-s-t.html
│ │ ├── -l-i-v-e.html
│ │ ├── -r-a-n-d-o-m.html
│ │ ├── -c-o-n-f-i-d-e-n-c-e.html
│ │ └── -c-o-n-t-r-o-v-e-r-s-i-a-l.html
│ ├── -search-sorting
│ │ ├── -h-o-t.html
│ │ ├── -n-e-w.html
│ │ ├── -t-o-p.html
│ │ ├── -c-o-m-m-e-n-t-s.html
│ │ └── -r-e-l-e-v-a-n-c-e.html
│ ├── -submission-kind
│ │ ├── link.html
│ │ ├── self.html
│ │ ├── image.html
│ │ ├── video.html
│ │ └── videogif.html
│ ├── -distinguished
│ │ ├── -a-d-m-i-n.html
│ │ ├── -s-p-e-c-i-a-l.html
│ │ ├── -m-o-d-e-r-a-t-o-r.html
│ │ └── -n-o-t_-d-i-s-t-i-n-g-u-i-s-h-e-d.html
│ ├── -submissions-sorting
│ │ ├── -h-o-t.html
│ │ ├── -n-e-w.html
│ │ ├── -t-o-p.html
│ │ ├── -b-e-s-t.html
│ │ ├── -r-i-s-i-n-g.html
│ │ └── -c-o-n-t-r-o-v-e-r-s-i-a-l.html
│ ├── -contributions-sorting
│ │ ├── -h-o-t.html
│ │ ├── -n-e-w.html
│ │ ├── -t-o-p.html
│ │ └── -c-o-n-t-r-o-v-e-r-s-i-a-l.html
│ ├── -time-period
│ │ ├── -a-l-l_-t-i-m-e.html
│ │ ├── -l-a-s-t_-d-a-y.html
│ │ ├── -l-a-s-t_-h-o-u-r.html
│ │ ├── -l-a-s-t_-w-e-e-k.html
│ │ ├── -l-a-s-t_-y-e-a-r.html
│ │ └── -l-a-s-t_-m-o-n-t-h.html
│ ├── -redditor-search-sorting
│ │ ├── -a-l-l.html
│ │ └── -r-e-l-e-v-a-n-c-e.html
│ ├── -subreddit-search-sorting
│ │ ├── -a-l-l.html
│ │ └── -r-e-l-e-v-a-n-c-e.html
│ ├── -gallery-image
│ │ └── s.html
│ ├── -images
│ │ └── source.html
│ ├── -poll-option
│ │ └── id.html
│ ├── -gallery-media
│ │ ├── e.html
│ │ └── s.html
│ ├── -media
│ │ └── o-embed.html
│ ├── -image-variants
│ │ ├── gif.html
│ │ └── mp4.html
│ └── -gallery-image-data
│ │ └── x.html
│ ├── com.kirkbushman.araw.http.base
│ ├── -envelope-kind
│ │ ├── -link.html
│ │ ├── -more.html
│ │ ├── -award.html
│ │ ├── -account.html
│ │ ├── -comment.html
│ │ ├── -listing.html
│ │ ├── -message.html
│ │ ├── -user-list.html
│ │ ├── -wikipage.html
│ │ ├── -subreddit.html
│ │ ├── -karma-list.html
│ │ ├── -trophy-list.html
│ │ ├── -labeled-multi.html
│ │ ├── -moderated-list.html
│ │ ├── -wikipage-listing.html
│ │ └── -labeled-multi-description.html
│ └── -envelope
│ │ └── data.html
│ ├── com.kirkbushman.araw.models.commons
│ ├── -submission-kind
│ │ ├── -l-i-n-k.html
│ │ ├── -s-e-l-f.html
│ │ ├── -i-m-a-g-e.html
│ │ ├── -v-i-d-e-o.html
│ │ └── -v-i-d-e-o-g-i-f.html
│ ├── -images
│ │ └── source.html
│ ├── -media
│ │ └── o-embed.html
│ └── -image-variants
│ │ ├── gif.html
│ │ └── mp4.html
│ ├── com.kirkbushman.araw.models
│ ├── -reply
│ │ └── json.html
│ ├── -reply-json
│ │ └── data.html
│ ├── -user-list
│ │ ├── data.html
│ │ └── kind.html
│ ├── -user
│ │ ├── id.html
│ │ ├── date.html
│ │ ├── name.html
│ │ └── rel-id.html
│ ├── -flair
│ │ ├── id.html
│ │ ├── text.html
│ │ ├── type.html
│ │ └── css-class.html
│ ├── -friend-list
│ │ ├── data.html
│ │ └── kind.html
│ ├── -me
│ │ ├── coins.html
│ │ ├── verified.html
│ │ ├── is-sponsor.html
│ │ ├── num-friends.html
│ │ └── subreddit.html
│ ├── -trophy-list
│ │ ├── data.html
│ │ └── kind.html
│ ├── -multi
│ │ ├── name.html
│ │ ├── path.html
│ │ ├── over18.html
│ │ ├── can-edit.html
│ │ ├── icon-url.html
│ │ └── owner-id.html
│ ├── -prefs
│ │ ├── lang.html
│ │ ├── beta.html
│ │ ├── media.html
│ │ ├── over18.html
│ │ ├── hide-ads.html
│ │ ├── hide-ups.html
│ │ ├── num-sites.html
│ │ ├── compress.html
│ │ └── research.html
│ ├── -poll-option
│ │ ├── id.html
│ │ └── text.html
│ ├── -poll-vote-res
│ │ └── data.html
│ ├── -friend
│ │ ├── added.html
│ │ └── rel-id.html
│ ├── -gallery-media
│ │ └── s.html
│ ├── -subreddit
│ │ ├── url.html
│ │ ├── lang.html
│ │ └── title.html
│ ├── -awarding
│ │ └── count.html
│ ├── -karma-list
│ │ └── kind.html
│ ├── -multi-sub
│ │ └── name.html
│ ├── -submission
│ │ └── url.html
│ ├── -upload-contract
│ │ └── args.html
│ ├── -upload-data
│ │ ├── acl.html
│ │ └── key.html
│ ├── -wiki-revision
│ │ ├── id.html
│ │ ├── author.html
│ │ └── page.html
│ ├── -poll-vote-state
│ │ └── poll.html
│ ├── -moderated-sub
│ │ └── url.html
│ ├── -poll-vote-req
│ │ └── id.html
│ ├── -submit-response
│ │ └── json.html
│ ├── -upload-file
│ │ └── file.html
│ ├── -gallery-media-item
│ │ └── id.html
│ └── -wiki-page-list
│ │ └── kind.html
│ ├── com.kirkbushman.araw.helpers
│ ├── -auth-app-helper
│ │ └── auth.html
│ ├── -auth-userless-helper
│ │ └── auth.html
│ └── -auth-helper
│ │ ├── auth.html
│ │ └── bearer.html
│ ├── com.kirkbushman.araw.exceptions
│ └── -wiki-disabled-exception
│ │ └── -init-.html
│ ├── com.kirkbushman.araw.http
│ ├── -enveloped-multi
│ │ ├── data.html
│ │ └── kind.html
│ ├── -enveloped-trophy
│ │ ├── data.html
│ │ └── kind.html
│ ├── -enveloped-comment
│ │ └── data.html
│ ├── -enveloped-message
│ │ └── data.html
│ ├── -enveloped-redditor
│ │ └── data.html
│ └── -enveloped-subreddit
│ │ └── data.html
│ └── com.kirkbushman.araw.models.responses
│ └── -poll-vote-res
│ └── data.html
├── gradle.properties
├── .project
├── .gitignore
├── .travis.yml
└── .github
└── dependabot.yml
/lib/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/sampleapp/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':lib', ':sampleapp'
2 |
--------------------------------------------------------------------------------
/lib/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/lib/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/jitpack.yml:
--------------------------------------------------------------------------------
1 | jdk:
2 | - openjdk11
3 | install:
4 | - ./gradlew build :lib:publishToMavenLocal
--------------------------------------------------------------------------------
/lib/.settings/org.eclipse.buildship.core.prefs:
--------------------------------------------------------------------------------
1 | connection.project.dir=..
2 | eclipse.preferences.version=1
3 |
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KirkBushman/ARAW/HEAD/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/sampleapp/.settings/org.eclipse.buildship.core.prefs:
--------------------------------------------------------------------------------
1 | connection.project.dir=..
2 | eclipse.preferences.version=1
3 |
--------------------------------------------------------------------------------
/sampleapp/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KirkBushman/ARAW/HEAD/sampleapp/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/sampleapp/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KirkBushman/ARAW/HEAD/sampleapp/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/sampleapp/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KirkBushman/ARAW/HEAD/sampleapp/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/sampleapp/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KirkBushman/ARAW/HEAD/sampleapp/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/sampleapp/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KirkBushman/ARAW/HEAD/sampleapp/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/sampleapp/src/main/res/values/ids.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/sampleapp/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KirkBushman/ARAW/HEAD/sampleapp/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/sampleapp/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KirkBushman/ARAW/HEAD/sampleapp/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/sampleapp/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KirkBushman/ARAW/HEAD/sampleapp/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/sampleapp/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KirkBushman/ARAW/HEAD/sampleapp/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/sampleapp/src/main/java/com/kirkbushman/sampleapp/controllers/base/BaseCallback.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.sampleapp.controllers.base
2 |
3 | interface BaseCallback
4 |
--------------------------------------------------------------------------------
/sampleapp/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KirkBushman/ARAW/HEAD/sampleapp/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/.editorconfig:
--------------------------------------------------------------------------------
1 | [*.{kt,kts}]
2 | # allow wild cards input
3 | ktlint_disabled_rules=no-wildcard-imports,import-ordering,spacing-between-declarations-with-annotations,no-empty-first-line-in-method-block
--------------------------------------------------------------------------------
/lib/src/main/java/com/kirkbushman/araw/http/base/Envelope.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.araw.http.base
2 |
3 | interface Envelope {
4 |
5 | val kind: EnvelopeKind?
6 |
7 | val data: T?
8 | }
9 |
--------------------------------------------------------------------------------
/lib/src/main/java/com/kirkbushman/araw/exceptions/WikiDisabledException.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.araw.exceptions
2 |
3 | class WikiDisabledException : Exception("The wiki for this subreddit has been disabled!")
4 |
--------------------------------------------------------------------------------
/docs/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | ARAW - Android Reddit Api Wrapper
5 |
6 |
7 | Api Documentation
8 |
9 |
10 |
--------------------------------------------------------------------------------
/lib/src/main/java/com/kirkbushman/araw/models/base/RedditorData.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.araw.models.base
2 |
3 | import android.os.Parcelable
4 |
5 | interface RedditorData : Parcelable {
6 |
7 | val fullname: String
8 | }
9 |
--------------------------------------------------------------------------------
/lib/src/main/java/com/kirkbushman/araw/models/enums/Distinguished.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.araw.models.enums
2 |
3 | enum class Distinguished {
4 |
5 | NOT_DISTINGUISHED,
6 | MODERATOR,
7 | ADMIN,
8 | SPECIAL
9 | }
10 |
--------------------------------------------------------------------------------
/sampleapp/src/main/java/com/kirkbushman/sampleapp/TestApplication.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.sampleapp
2 |
3 | import android.app.Application
4 | import dagger.hilt.android.HiltAndroidApp
5 |
6 | @HiltAndroidApp
7 | class TestApplication : Application()
8 |
--------------------------------------------------------------------------------
/sampleapp/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #0277BD
4 | #0277BD
5 | #FFB300
6 |
7 |
--------------------------------------------------------------------------------
/lib/src/main/java/com/kirkbushman/araw/exceptions/UploadContractFieldMissingException.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.araw.exceptions
2 |
3 | class UploadContractFieldMissingException(field: String) :
4 | Exception("The field '$field' was not found while creating UploadData!")
5 |
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Sun Apr 21 14:41:42 CEST 2019
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-all.zip
7 |
--------------------------------------------------------------------------------
/lib/src/main/java/com/kirkbushman/araw/http/base/Listing.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.araw.http.base
2 |
3 | interface Listing {
4 |
5 | val modhash: String?
6 | val dist: Int?
7 |
8 | val children: List
9 |
10 | val after: String?
11 | val before: String?
12 | }
13 |
--------------------------------------------------------------------------------
/lib/src/main/java/com/kirkbushman/araw/http/EnvelopedData.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.araw.http
2 |
3 | import com.kirkbushman.araw.http.base.EnvelopeKind
4 | import com.kirkbushman.araw.models.base.Thing
5 |
6 | interface EnvelopedData {
7 |
8 | val kind: EnvelopeKind
9 |
10 | val data: Thing
11 | }
12 |
--------------------------------------------------------------------------------
/sampleapp/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/sampleapp/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/gradle.properties:
--------------------------------------------------------------------------------
1 | GROUP=com.kirkbushman.araw
2 |
3 | org.gradle.jvmargs=-Xmx3G
4 |
5 | org.gradle.daemon=true
6 | org.gradle.parallel=true
7 | org.gradle.caching=true
8 | org.gradle.configureondemand=true
9 |
10 | org.gradle.vfs.watch=true
11 |
12 | android.useAndroidX=true
13 |
14 | kapt.incremental.apt=true
15 |
16 | kotlin.code.style=official
--------------------------------------------------------------------------------
/lib/src/main/java/com/kirkbushman/araw/models/base/Replyable.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.araw.models.base
2 |
3 | /**
4 | * Base interface for all items that be replied to,
5 | * including Submission and Comment.
6 | *
7 | * @property fullname Fullname of the item, e.g. "t1_c3v7f8u"
8 | *
9 | */
10 | interface Replyable {
11 |
12 | val fullname: String
13 | }
14 |
--------------------------------------------------------------------------------
/lib/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/lib/src/main/java/com/kirkbushman/araw/http/EnvelopedContribution.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.araw.http
2 |
3 | import com.kirkbushman.araw.http.base.EnvelopeKind
4 | import com.kirkbushman.araw.models.base.Contribution
5 |
6 | interface EnvelopedContribution : EnvelopedData {
7 |
8 | override val kind: EnvelopeKind
9 |
10 | override val data: Contribution
11 | }
12 |
--------------------------------------------------------------------------------
/sampleapp/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/sampleapp/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/sampleapp/src/main/java/com/kirkbushman/sampleapp/TestCredentials.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.sampleapp
2 |
3 | data class TestCredentials(
4 |
5 | val clientId: String,
6 | val redirectUrl: String,
7 |
8 | val scriptClientId: String,
9 | val scriptClientSecret: String,
10 | val username: String,
11 | val password: String,
12 |
13 | val scopes: List
14 | )
15 |
--------------------------------------------------------------------------------
/lib/src/main/java/com/kirkbushman/araw/models/UploadFile.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.araw.models
2 |
3 | import android.os.Parcelable
4 | import com.squareup.moshi.Json
5 | import com.squareup.moshi.JsonClass
6 | import kotlinx.parcelize.Parcelize
7 |
8 | @JsonClass(generateAdapter = true)
9 | @Parcelize
10 | data class UploadFile(
11 |
12 | @Json(name = "file")
13 | val file: String
14 |
15 | ) : Parcelable
16 |
--------------------------------------------------------------------------------
/lib/src/main/java/com/kirkbushman/araw/http/EnvelopedCommentData.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.araw.http
2 |
3 | import android.os.Parcelable
4 | import com.kirkbushman.araw.http.base.EnvelopeKind
5 | import com.kirkbushman.araw.models.base.CommentData
6 |
7 | interface EnvelopedCommentData : EnvelopedContribution, Parcelable {
8 |
9 | override val kind: EnvelopeKind
10 |
11 | override val data: CommentData
12 | }
13 |
--------------------------------------------------------------------------------
/lib/src/main/java/com/kirkbushman/araw/models/enums/RedditorSearchSorting.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.araw.models.enums
2 |
3 | import com.kirkbushman.araw.models.base.Sorting
4 |
5 | enum class RedditorSearchSorting(
6 |
7 | override val requiresTimePeriod: Boolean = false,
8 | override val sortingStr: String
9 |
10 | ) : Sorting {
11 |
12 | RELEVANCE(false, "relevance"),
13 | ALL(false, "all")
14 | }
15 |
--------------------------------------------------------------------------------
/lib/src/main/java/com/kirkbushman/araw/models/enums/SubredditSearchSorting.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.araw.models.enums
2 |
3 | import com.kirkbushman.araw.models.base.Sorting
4 |
5 | enum class SubredditSearchSorting(
6 |
7 | override val requiresTimePeriod: Boolean = false,
8 | override val sortingStr: String
9 |
10 | ) : Sorting {
11 |
12 | RELEVANCE(false, "relevance"),
13 | ALL(false, "all")
14 | }
15 |
--------------------------------------------------------------------------------
/sampleapp/src/androidTest/java/com/kirkbushman/sampleapp/instrumented/TestCredentials.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.sampleapp.instrumented
2 |
3 | data class TestCredentials(
4 |
5 | val clientId: String,
6 | val redirectUrl: String,
7 |
8 | val scriptClientId: String,
9 | val scriptClientSecret: String,
10 | val username: String,
11 | val password: String,
12 |
13 | val scopes: List
14 | )
15 |
--------------------------------------------------------------------------------
/sampleapp/src/main/res/layout/item_rule.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/lib/src/main/java/com/kirkbushman/araw/models/base/Thing.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.araw.models.base
2 |
3 | import android.os.Parcelable
4 |
5 | /**
6 | * Base class for every class of the Reddit API,
7 | *
8 | * @property id this item identifier, e.g. "8xwlg"
9 | *
10 | * @property fullname Fullname of the item, e.g. "t1_c3v7f8u"
11 | *
12 | */
13 | interface Thing : Parcelable {
14 |
15 | val id: String
16 |
17 | val fullname: String
18 | }
19 |
--------------------------------------------------------------------------------
/sampleapp/src/main/res/layout/item_empty.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/lib/src/main/java/com/kirkbushman/araw/models/UserlessSelf.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.araw.models
2 |
3 | import android.os.Parcelable
4 | import com.squareup.moshi.Json
5 | import com.squareup.moshi.JsonClass
6 | import kotlinx.parcelize.Parcelize
7 | import kotlinx.parcelize.RawValue
8 |
9 | @JsonClass(generateAdapter = true)
10 | @Parcelize
11 | data class UserlessSelf(
12 |
13 | @Json(name = "features")
14 | val features: @RawValue Map
15 |
16 | ) : Parcelable
17 |
--------------------------------------------------------------------------------
/lib/src/main/java/com/kirkbushman/araw/models/base/Created.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.araw.models.base
2 |
3 | /**
4 | * Base interface for keeping track of when a Thing was created.
5 | *
6 | * @property created The unix-time Long representing the creation date of the item.
7 | *
8 | * @property createdUtc The unix-time Long representing the UTC creation date of the item.
9 | *
10 | */
11 | interface Created {
12 |
13 | val created: Long
14 |
15 | val createdUtc: Long
16 | }
17 |
--------------------------------------------------------------------------------
/lib/src/main/java/com/kirkbushman/araw/models/enums/ContributionsSorting.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.araw.models.enums
2 |
3 | import com.kirkbushman.araw.models.base.Sorting
4 |
5 | enum class ContributionsSorting(
6 |
7 | override val requiresTimePeriod: Boolean = false,
8 | override val sortingStr: String
9 |
10 | ) : Sorting {
11 |
12 | HOT(sortingStr = "hot"),
13 | NEW(sortingStr = "new"),
14 | CONTROVERSIAL(true, "controversial"),
15 | TOP(true, "top")
16 | }
17 |
--------------------------------------------------------------------------------
/lib/src/main/java/com/kirkbushman/araw/models/base/Contribution.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.araw.models.base
2 |
3 | /**
4 | * Base interface for all the data submitted by a user.
5 | * e.g. Submission, Comment, Message
6 | *
7 | * @property id This item identifier, e.g. "8xwlg"
8 | *
9 | * @property fullname Fullname of comment, e.g. "t1_c3v7f8u"
10 | *
11 | */
12 | interface Contribution : Thing {
13 |
14 | override val id: String
15 |
16 | override val fullname: String
17 | }
18 |
--------------------------------------------------------------------------------
/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | ARAW
4 | Project ARAW created by Buildship.
5 |
6 |
7 |
8 |
9 | org.eclipse.buildship.core.gradleprojectbuilder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.buildship.core.gradleprojectnature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/lib/src/main/java/com/kirkbushman/araw/http/EnvelopedTrophyList.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.araw.http
2 |
3 | import com.kirkbushman.araw.http.base.EnvelopeKind
4 | import com.kirkbushman.araw.models.TrophyList
5 | import com.squareup.moshi.Json
6 | import com.squareup.moshi.JsonClass
7 |
8 | @JsonClass(generateAdapter = true)
9 | class EnvelopedTrophyList(
10 |
11 | @Json(name = "kind")
12 | val kind: EnvelopeKind,
13 |
14 | @Json(name = "data")
15 | val data: TrophyList
16 |
17 | )
18 |
--------------------------------------------------------------------------------
/lib/src/main/java/com/kirkbushman/araw/models/base/SubredditData.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.araw.models.base
2 |
3 | interface SubredditData : Thing, Created {
4 |
5 | override val id: String
6 |
7 | override val fullname: String
8 |
9 | override val created: Long
10 |
11 | override val createdUtc: Long
12 |
13 | val displayName: String
14 |
15 | val displayNamePrefixed: String
16 |
17 | val subredditType: String
18 |
19 | val title: String
20 |
21 | val url: String
22 | }
23 |
--------------------------------------------------------------------------------
/lib/src/main/java/com/kirkbushman/araw/models/enums/SearchSorting.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.araw.models.enums
2 |
3 | import com.kirkbushman.araw.models.base.Sorting
4 |
5 | enum class SearchSorting(
6 |
7 | override val requiresTimePeriod: Boolean = false,
8 | override val sortingStr: String
9 |
10 | ) : Sorting {
11 |
12 | RELEVANCE(true, sortingStr = "relevance"),
13 | HOT(sortingStr = "hot"),
14 | NEW(sortingStr = "new"),
15 | TOP(true, "top"),
16 | COMMENTS(true, "comments")
17 | }
18 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 |
3 | #built applications
4 | *.apk
5 | *.ap_
6 |
7 | #Files for the VM
8 | *.dex
9 |
10 | #credentials
11 | /lib/src/debug/res/xml/credentials.xml
12 | /lib/detekt-report.html
13 | /sampleapp/src/main/res/xml/credentials.xml
14 | /sampleapp/detekt-report.html
15 |
16 | /bin
17 | /gen
18 | /out
19 |
20 | .gradle
21 | !gradle-wrapper.jar
22 | /build
23 | /lib/build
24 | /sampleapp/build
25 |
26 | /local.properties
27 |
28 | /.idea
29 | /.settings
30 | .DS_Store
31 | /captures
32 | .externalNativeBuild
33 |
--------------------------------------------------------------------------------
/lib/src/main/java/com/kirkbushman/araw/models/base/Saveable.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.araw.models.base
2 |
3 | /**
4 | * Base interface for all the items that can be saved,
5 | *
6 | * @property id This item identifier, e.g. "8xwlg"
7 | *
8 | * @property fullname Fullname of item, e.g. "t1_c3v7f8u"
9 | *
10 | * @property isSaved if this item is saved in the current user account
11 | *
12 | */
13 | interface Saveable {
14 |
15 | val id: String
16 |
17 | val fullname: String
18 |
19 | val isSaved: Boolean
20 | }
21 |
--------------------------------------------------------------------------------
/lib/src/main/java/com/kirkbushman/araw/models/enums/TimePeriod.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.araw.models.enums
2 |
3 | /**
4 | * This enum defines the time options for filtering, searching or ordering items in the Reddit Api:
5 | *
6 | * @property timePeriodStr the raw string as seen by Reddit.
7 | *
8 | */
9 | enum class TimePeriod(val timePeriodStr: String) {
10 |
11 | LAST_HOUR("hour"),
12 | LAST_DAY("day"),
13 | LAST_WEEK("week"),
14 | LAST_MONTH("month"),
15 | LAST_YEAR("year"),
16 | ALL_TIME("all")
17 | }
18 |
--------------------------------------------------------------------------------
/sampleapp/src/test/java/com/kirkbushman/sampleapp/local/BasicTest.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.sampleapp.local
2 |
3 | import org.junit.Assert.*
4 | import org.junit.Test
5 |
6 | class BasicTest {
7 |
8 | @Test
9 | fun basicTest() {
10 | val sum = 2 + 2
11 | assertEquals("Assert basic sum of two numbers", 4, sum)
12 | }
13 |
14 | @Test
15 | fun basicTest2() {
16 | assertEquals("Assert basic replacing of string", "Hello World!".replace("World", "Universe"), "Hello Universe!")
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/lib/src/main/java/com/kirkbushman/araw/models/base/Sorting.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.araw.models.base
2 |
3 | /**
4 | * Base interface to group all sorting options in the Reddit Api
5 | *
6 | * @property requiresTimePeriod If this sorting option needs
7 | * to be combined also with a TimePeriod, to be sent to the Api.
8 | * e.g. Top / Last Month
9 | *
10 | * @property sortingStr raw string as seen by the Api.
11 | *
12 | */
13 | interface Sorting {
14 |
15 | val requiresTimePeriod: Boolean
16 |
17 | val sortingStr: String
18 | }
19 |
--------------------------------------------------------------------------------
/lib/src/main/java/com/kirkbushman/araw/models/enums/SubmissionsSorting.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.araw.models.enums
2 |
3 | import com.kirkbushman.araw.models.base.Sorting
4 |
5 | enum class SubmissionsSorting(
6 |
7 | override val requiresTimePeriod: Boolean = false,
8 | override val sortingStr: String
9 |
10 | ) : Sorting {
11 |
12 | HOT(sortingStr = "hot"),
13 | BEST(sortingStr = "best"),
14 | NEW(sortingStr = "new"),
15 | RISING(sortingStr = "rising"),
16 | CONTROVERSIAL(true, "controversial"),
17 | TOP(true, "top")
18 | }
19 |
--------------------------------------------------------------------------------
/lib/src/main/java/com/kirkbushman/araw/models/commons/MediaEmbed.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.araw.models.commons
2 |
3 | import android.os.Parcelable
4 | import com.squareup.moshi.Json
5 | import com.squareup.moshi.JsonClass
6 | import kotlinx.parcelize.Parcelize
7 |
8 | @JsonClass(generateAdapter = true)
9 | @Parcelize
10 | data class MediaEmbed(
11 |
12 | @Json(name = "content")
13 | val content: String?,
14 |
15 | @Json(name = "width")
16 | val width: Int?,
17 |
18 | @Json(name = "height")
19 | val height: Int?
20 |
21 | ) : Parcelable
22 |
--------------------------------------------------------------------------------
/lib/src/main/java/com/kirkbushman/araw/http/EnvelopedMulti.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.araw.http
2 |
3 | import com.kirkbushman.araw.http.base.Envelope
4 | import com.kirkbushman.araw.http.base.EnvelopeKind
5 | import com.kirkbushman.araw.models.Multi
6 | import com.squareup.moshi.Json
7 | import com.squareup.moshi.JsonClass
8 |
9 | @JsonClass(generateAdapter = true)
10 | class EnvelopedMulti(
11 |
12 | @Json(name = "kind")
13 | override val kind: EnvelopeKind,
14 |
15 | @Json(name = "data")
16 | override val data: Multi
17 |
18 | ) : Envelope
19 |
--------------------------------------------------------------------------------
/lib/src/main/java/com/kirkbushman/araw/models/enums/Vote.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.araw.models.enums
2 |
3 | /**
4 | * This enum defines the possible states of an item the logged in user has voted,
5 | * represented by the inteface Votable
6 | *
7 | * There are 3 states: UPVOTE, DOWNVOTE and the default NONE,
8 | *
9 | * @property dir the vote as seen by the Reddit Api,
10 | * 1 for UPVOTE,
11 | * -1 for DOWNVOTE and
12 | * 0 for NONE
13 | *
14 | */
15 | enum class Vote(val dir: Int) {
16 |
17 | UPVOTE(1),
18 | DOWNVOTE(-1),
19 | NONE(0)
20 | }
21 |
--------------------------------------------------------------------------------
/sampleapp/src/main/java/com/kirkbushman/sampleapp/activities/MultiSearchActivity.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.sampleapp.activities
2 |
3 | import android.os.Bundle
4 | import androidx.appcompat.app.AppCompatActivity
5 | import com.kirkbushman.sampleapp.R
6 | import dagger.hilt.android.AndroidEntryPoint
7 |
8 | @AndroidEntryPoint
9 | class MultiSearchActivity : AppCompatActivity() {
10 |
11 | override fun onCreate(savedInstanceState: Bundle?) {
12 | super.onCreate(savedInstanceState)
13 | setContentView(R.layout.activity_multi_search)
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/lib/src/main/java/com/kirkbushman/araw/http/EnvelopedTrophy.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.araw.http
2 |
3 | import com.kirkbushman.araw.http.base.Envelope
4 | import com.kirkbushman.araw.http.base.EnvelopeKind
5 | import com.kirkbushman.araw.models.Trophy
6 | import com.squareup.moshi.Json
7 | import com.squareup.moshi.JsonClass
8 |
9 | @JsonClass(generateAdapter = true)
10 | class EnvelopedTrophy(
11 |
12 | @Json(name = "kind")
13 | override val kind: EnvelopeKind,
14 |
15 | @Json(name = "data")
16 | override val data: Trophy
17 |
18 | ) : Envelope
19 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.enums/-vote/-n-o-n-e.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Vote.NONE - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.enums / Vote / NONE
9 |
10 | NONE
11 |
12 | NONE
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.general/-vote/-n-o-n-e.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Vote.NONE - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.commons / Vote / NONE
9 |
10 | NONE
11 |
12 | NONE
13 |
14 |
15 |
--------------------------------------------------------------------------------
/lib/src/main/java/com/kirkbushman/araw/http/EnvelopedMessage.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.araw.http
2 |
3 | import com.kirkbushman.araw.http.base.Envelope
4 | import com.kirkbushman.araw.http.base.EnvelopeKind
5 | import com.kirkbushman.araw.models.Message
6 | import com.squareup.moshi.Json
7 | import com.squareup.moshi.JsonClass
8 |
9 | @JsonClass(generateAdapter = true)
10 | class EnvelopedMessage(
11 |
12 | @Json(name = "kind")
13 | override val kind: EnvelopeKind,
14 |
15 | @Json(name = "data")
16 | override val data: Message
17 |
18 | ) : Envelope, EnvelopedData
19 |
--------------------------------------------------------------------------------
/lib/src/main/java/com/kirkbushman/araw/http/EnvelopedSubreddit.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.araw.http
2 |
3 | import com.kirkbushman.araw.http.base.Envelope
4 | import com.kirkbushman.araw.http.base.EnvelopeKind
5 | import com.kirkbushman.araw.models.Subreddit
6 | import com.squareup.moshi.Json
7 | import com.squareup.moshi.JsonClass
8 |
9 | @JsonClass(generateAdapter = true)
10 | class EnvelopedSubreddit(
11 |
12 | @Json(name = "kind")
13 | override val kind: EnvelopeKind,
14 |
15 | @Json(name = "data")
16 | override val data: Subreddit
17 |
18 | ) : Envelope, EnvelopedData
19 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.http.base/-envelope-kind/-link.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | EnvelopeKind.Link - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.http.base / EnvelopeKind / Link
9 |
10 | Link
11 |
12 | Link
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.http.base/-envelope-kind/-more.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | EnvelopeKind.More - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.http.base / EnvelopeKind / More
9 |
10 | More
11 |
12 | More
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.enums/-vote/-u-p-v-o-t-e.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Vote.UPVOTE - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.enums / Vote / UPVOTE
9 |
10 | UPVOTE
11 |
12 | UPVOTE
13 |
14 |
15 |
--------------------------------------------------------------------------------
/lib/src/main/java/com/kirkbushman/araw/http/EnvelopedRedditorData.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.araw.http
2 |
3 | import com.kirkbushman.araw.http.base.Envelope
4 | import com.kirkbushman.araw.http.base.EnvelopeKind
5 | import com.kirkbushman.araw.models.base.RedditorData
6 | import com.squareup.moshi.Json
7 | import com.squareup.moshi.JsonClass
8 |
9 | @JsonClass(generateAdapter = true)
10 | class EnvelopedRedditorData(
11 |
12 | @Json(name = "kind")
13 | override val kind: EnvelopeKind,
14 |
15 | @Json(name = "data")
16 | override val data: RedditorData
17 |
18 | ) : Envelope
19 |
--------------------------------------------------------------------------------
/lib/src/main/java/com/kirkbushman/araw/models/TrendingSubreddits.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.araw.models
2 |
3 | import android.os.Parcelable
4 | import com.squareup.moshi.Json
5 | import com.squareup.moshi.JsonClass
6 | import kotlinx.parcelize.Parcelize
7 |
8 | @JsonClass(generateAdapter = true)
9 | @Parcelize
10 | data class TrendingSubreddits(
11 |
12 | @Json(name = "subreddit_names")
13 | val subredditNames: List,
14 |
15 | @Json(name = "comment_count")
16 | val commentCount: Int,
17 |
18 | @Json(name = "comment_url")
19 | val commentUrl: String
20 |
21 | ) : Parcelable
22 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.general/-vote/-u-p-v-o-t-e.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Vote.UPVOTE - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.commons / Vote / UPVOTE
9 |
10 | UPVOTE
11 |
12 | UPVOTE
13 |
14 |
15 |
--------------------------------------------------------------------------------
/lib/src/main/java/com/kirkbushman/araw/http/EnvelopedSubmission.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.araw.http
2 |
3 | import com.kirkbushman.araw.http.base.Envelope
4 | import com.kirkbushman.araw.http.base.EnvelopeKind
5 | import com.kirkbushman.araw.models.Submission
6 | import com.squareup.moshi.Json
7 | import com.squareup.moshi.JsonClass
8 |
9 | @JsonClass(generateAdapter = true)
10 | class EnvelopedSubmission(
11 |
12 | @Json(name = "kind")
13 | override val kind: EnvelopeKind,
14 |
15 | @Json(name = "data")
16 | override val data: Submission
17 |
18 | ) : Envelope, EnvelopedContribution
19 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.http.base/-envelope-kind/-award.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | EnvelopeKind.Award - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.http.base / EnvelopeKind / Award
9 |
10 | Award
11 |
12 | Award
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.enums/-comments-sorting/-q-a.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | CommentsSorting.QA - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.enums / CommentsSorting / QA
9 |
10 | QA
11 |
12 | QA
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.enums/-search-sorting/-h-o-t.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | SearchSorting.HOT - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.enums / SearchSorting / HOT
9 |
10 | HOT
11 |
12 | HOT
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.enums/-search-sorting/-n-e-w.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | SearchSorting.NEW - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.enums / SearchSorting / NEW
9 |
10 | NEW
11 |
12 | NEW
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.enums/-search-sorting/-t-o-p.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | SearchSorting.TOP - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.enums / SearchSorting / TOP
9 |
10 | TOP
11 |
12 | TOP
13 |
14 |
15 |
--------------------------------------------------------------------------------
/lib/src/main/java/com/kirkbushman/araw/http/EnvelopedMessageListing.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.araw.http
2 |
3 | import com.kirkbushman.araw.http.base.Envelope
4 | import com.kirkbushman.araw.http.base.EnvelopeKind
5 | import com.kirkbushman.araw.http.listings.MessageListing
6 | import com.squareup.moshi.Json
7 | import com.squareup.moshi.JsonClass
8 |
9 | @JsonClass(generateAdapter = true)
10 | class EnvelopedMessageListing(
11 |
12 | @Json(name = "kind")
13 | override val kind: EnvelopeKind,
14 |
15 | @Json(name = "data")
16 | override val data: MessageListing
17 |
18 | ) : Envelope
19 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.general/-comments-sorting/-q-a.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | CommentsSorting.QA - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.commons / CommentsSorting / QA
9 |
10 | QA
11 |
12 | QA
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.general/-search-sorting/-h-o-t.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | SearchSorting.HOT - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.commons / SearchSorting / HOT
9 |
10 | HOT
11 |
12 | HOT
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.general/-search-sorting/-n-e-w.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | SearchSorting.NEW - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.commons / SearchSorting / NEW
9 |
10 | NEW
11 |
12 | NEW
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.general/-search-sorting/-t-o-p.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | SearchSorting.TOP - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.commons / SearchSorting / TOP
9 |
10 | TOP
11 |
12 | TOP
13 |
14 |
15 |
--------------------------------------------------------------------------------
/lib/src/main/java/com/kirkbushman/araw/http/EnvelopedMultiDescription.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.araw.http
2 |
3 | import com.kirkbushman.araw.http.base.Envelope
4 | import com.kirkbushman.araw.http.base.EnvelopeKind
5 | import com.kirkbushman.araw.models.MultiDescription
6 | import com.squareup.moshi.Json
7 | import com.squareup.moshi.JsonClass
8 |
9 | @JsonClass(generateAdapter = true)
10 | class EnvelopedMultiDescription(
11 |
12 | @Json(name = "kind")
13 | override val kind: EnvelopeKind,
14 |
15 | @Json(name = "data")
16 | override val data: MultiDescription
17 |
18 | ) : Envelope
19 |
--------------------------------------------------------------------------------
/lib/src/main/java/com/kirkbushman/araw/http/EnvelopedRedditorListing.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.araw.http
2 |
3 | import com.kirkbushman.araw.http.base.Envelope
4 | import com.kirkbushman.araw.http.base.EnvelopeKind
5 | import com.kirkbushman.araw.http.listings.RedditorListing
6 | import com.squareup.moshi.Json
7 | import com.squareup.moshi.JsonClass
8 |
9 | @JsonClass(generateAdapter = true)
10 | class EnvelopedRedditorListing(
11 |
12 | @Json(name = "kind")
13 | override val kind: EnvelopeKind,
14 |
15 | @Json(name = "data")
16 | override val data: RedditorListing
17 |
18 | ) : Envelope
19 |
--------------------------------------------------------------------------------
/sampleapp/src/main/java/com/kirkbushman/sampleapp/models/EmptyModel.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.sampleapp.models
2 |
3 | import android.view.View
4 | import com.airbnb.epoxy.EpoxyHolder
5 | import com.airbnb.epoxy.EpoxyModelClass
6 | import com.airbnb.epoxy.EpoxyModelWithHolder
7 | import com.kirkbushman.sampleapp.R
8 |
9 | @EpoxyModelClass
10 | abstract class EmptyModel : EpoxyModelWithHolder() {
11 |
12 | override fun getDefaultLayout(): Int {
13 | return R.layout.item_empty
14 | }
15 | }
16 |
17 | class EmptyHolder : EpoxyHolder() {
18 | override fun bindView(itemView: View) = Unit
19 | }
20 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.http.base/-envelope-kind/-account.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | EnvelopeKind.Account - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.http.base / EnvelopeKind / Account
9 |
10 | Account
11 |
12 | Account
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.http.base/-envelope-kind/-comment.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | EnvelopeKind.Comment - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.http.base / EnvelopeKind / Comment
9 |
10 | Comment
11 |
12 | Comment
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.http.base/-envelope-kind/-listing.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | EnvelopeKind.Listing - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.http.base / EnvelopeKind / Listing
9 |
10 | Listing
11 |
12 | Listing
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.http.base/-envelope-kind/-message.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | EnvelopeKind.Message - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.http.base / EnvelopeKind / Message
9 |
10 | Message
11 |
12 | Message
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.enums/-comments-sorting/-n-e-w.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | CommentsSorting.NEW - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.enums / CommentsSorting / NEW
9 |
10 | NEW
11 |
12 | NEW
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.enums/-comments-sorting/-o-l-d.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | CommentsSorting.OLD - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.enums / CommentsSorting / OLD
9 |
10 | OLD
11 |
12 | OLD
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.enums/-comments-sorting/-t-o-p.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | CommentsSorting.TOP - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.enums / CommentsSorting / TOP
9 |
10 | TOP
11 |
12 | TOP
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.enums/-vote/-d-o-w-n-v-o-t-e.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Vote.DOWNVOTE - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.enums / Vote / DOWNVOTE
9 |
10 | DOWNVOTE
11 |
12 | DOWNVOTE
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.general/-submission-kind/link.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | SubmissionKind.link - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.commons / SubmissionKind / link
9 |
10 | link
11 |
12 | link
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.general/-submission-kind/self.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | SubmissionKind.self - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.commons / SubmissionKind / self
9 |
10 | self
11 |
12 | self
13 |
14 |
15 |
--------------------------------------------------------------------------------
/lib/src/main/java/com/kirkbushman/araw/http/EnvelopedSubredditData.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.araw.http
2 |
3 | import com.kirkbushman.araw.http.base.Envelope
4 | import com.kirkbushman.araw.http.base.EnvelopeKind
5 | import com.kirkbushman.araw.models.base.SubredditData
6 | import com.squareup.moshi.Json
7 | import com.squareup.moshi.JsonClass
8 |
9 | @JsonClass(generateAdapter = true)
10 | class EnvelopedSubredditData(
11 |
12 | @Json(name = "kind")
13 | override val kind: EnvelopeKind,
14 |
15 | @Json(name = "data")
16 | override val data: SubredditData
17 |
18 | ) : Envelope, EnvelopedData
19 |
--------------------------------------------------------------------------------
/lib/src/main/java/com/kirkbushman/araw/http/EnvelopedSubredditListing.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.araw.http
2 |
3 | import com.kirkbushman.araw.http.base.Envelope
4 | import com.kirkbushman.araw.http.base.EnvelopeKind
5 | import com.kirkbushman.araw.http.listings.SubredditListing
6 | import com.squareup.moshi.Json
7 | import com.squareup.moshi.JsonClass
8 |
9 | @JsonClass(generateAdapter = true)
10 | class EnvelopedSubredditListing(
11 |
12 | @Json(name = "kind")
13 | override val kind: EnvelopeKind,
14 |
15 | @Json(name = "data")
16 | override val data: SubredditListing
17 |
18 | ) : Envelope
19 |
--------------------------------------------------------------------------------
/lib/src/main/java/com/kirkbushman/araw/models/commons/FlairRichtext.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.araw.models.commons
2 |
3 | import android.os.Parcelable
4 | import com.squareup.moshi.Json
5 | import com.squareup.moshi.JsonClass
6 | import kotlinx.parcelize.Parcelize
7 |
8 | @JsonClass(generateAdapter = true)
9 | @Parcelize
10 | data class FlairRichtext(
11 |
12 | @Json(name = "a")
13 | val textRepresentation: String?,
14 |
15 | @Json(name = "e")
16 | val type: String?,
17 |
18 | @Json(name = "t")
19 | val text: String?,
20 |
21 | @Json(name = "u")
22 | val url: String?
23 |
24 | ) : Parcelable
25 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.general/-comments-sorting/-n-e-w.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | CommentsSorting.NEW - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.commons / CommentsSorting / NEW
9 |
10 | NEW
11 |
12 | NEW
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.general/-comments-sorting/-o-l-d.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | CommentsSorting.OLD - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.commons / CommentsSorting / OLD
9 |
10 | OLD
11 |
12 | OLD
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.general/-comments-sorting/-t-o-p.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | CommentsSorting.TOP - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.commons / CommentsSorting / TOP
9 |
10 | TOP
11 |
12 | TOP
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.general/-vote/-d-o-w-n-v-o-t-e.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Vote.DOWNVOTE - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.commons / Vote / DOWNVOTE
9 |
10 | DOWNVOTE
11 |
12 | DOWNVOTE
13 |
14 |
15 |
--------------------------------------------------------------------------------
/lib/src/main/java/com/kirkbushman/araw/http/EnvelopedSubmissionListing.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.araw.http
2 |
3 | import com.kirkbushman.araw.http.base.Envelope
4 | import com.kirkbushman.araw.http.base.EnvelopeKind
5 | import com.kirkbushman.araw.http.listings.SubmissionListing
6 | import com.squareup.moshi.Json
7 | import com.squareup.moshi.JsonClass
8 |
9 | @JsonClass(generateAdapter = true)
10 | class EnvelopedSubmissionListing(
11 |
12 | @Json(name = "kind")
13 | override val kind: EnvelopeKind,
14 |
15 | @Json(name = "data")
16 | override val data: SubmissionListing
17 |
18 | ) : Envelope
19 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.http.base/-envelope-kind/-user-list.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | EnvelopeKind.UserList - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.http.base / EnvelopeKind / UserList
9 |
10 | UserList
11 |
12 | UserList
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.http.base/-envelope-kind/-wikipage.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | EnvelopeKind.Wikipage - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.http.base / EnvelopeKind / Wikipage
9 |
10 | Wikipage
11 |
12 | Wikipage
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.commons/-submission-kind/-l-i-n-k.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | SubmissionKind.LINK - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.commons / SubmissionKind / LINK
9 |
10 | LINK
11 |
12 | LINK
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.commons/-submission-kind/-s-e-l-f.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | SubmissionKind.SELF - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.commons / SubmissionKind / SELF
9 |
10 | SELF
11 |
12 | SELF
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.enums/-comments-sorting/-b-e-s-t.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | CommentsSorting.BEST - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.enums / CommentsSorting / BEST
9 |
10 | BEST
11 |
12 | BEST
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.enums/-comments-sorting/-l-i-v-e.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | CommentsSorting.LIVE - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.enums / CommentsSorting / LIVE
9 |
10 | LIVE
11 |
12 | LIVE
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.enums/-distinguished/-a-d-m-i-n.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Distinguished.ADMIN - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.enums / Distinguished / ADMIN
9 |
10 | ADMIN
11 |
12 | ADMIN
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.enums/-submissions-sorting/-h-o-t.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | SubmissionsSorting.HOT - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.enums / SubmissionsSorting / HOT
9 |
10 | HOT
11 |
12 | HOT
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.enums/-submissions-sorting/-n-e-w.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | SubmissionsSorting.NEW - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.enums / SubmissionsSorting / NEW
9 |
10 | NEW
11 |
12 | NEW
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.enums/-submissions-sorting/-t-o-p.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | SubmissionsSorting.TOP - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.enums / SubmissionsSorting / TOP
9 |
10 | TOP
11 |
12 | TOP
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.general/-comments-sorting/-b-e-s-t.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | CommentsSorting.BEST - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.commons / CommentsSorting / BEST
9 |
10 | BEST
11 |
12 | BEST
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.general/-comments-sorting/-l-i-v-e.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | CommentsSorting.LIVE - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.commons / CommentsSorting / LIVE
9 |
10 | LIVE
11 |
12 | LIVE
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.general/-distinguished/-a-d-m-i-n.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Distinguished.ADMIN - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.commons / Distinguished / ADMIN
9 |
10 | ADMIN
11 |
12 | ADMIN
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.general/-submission-kind/image.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | SubmissionKind.image - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.commons / SubmissionKind / image
9 |
10 | image
11 |
12 | image
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.general/-submission-kind/video.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | SubmissionKind.video - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.commons / SubmissionKind / video
9 |
10 | video
11 |
12 | video
13 |
14 |
15 |
--------------------------------------------------------------------------------
/lib/src/main/java/com/kirkbushman/araw/models/base/Gildable.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.araw.models.base
2 |
3 | import com.kirkbushman.araw.models.commons.Gildings
4 |
5 | /**
6 | * Base interface for all the item that can be given Gildings
7 | *
8 | * @property canGild whether this item can be given a gilding or not.
9 | *
10 | * @property gildings the number of times this comment received reddit gold, silver, platinum.
11 | *
12 | */
13 | interface Gildable : Thing {
14 |
15 | override val id: String
16 |
17 | override val fullname: String
18 |
19 | val canGild: Boolean
20 |
21 | val gildings: Gildings
22 | }
23 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.http.base/-envelope-kind/-subreddit.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | EnvelopeKind.Subreddit - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.http.base / EnvelopeKind / Subreddit
9 |
10 | Subreddit
11 |
12 | Subreddit
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.general/-submissions-sorting/-h-o-t.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | SubmissionsSorting.HOT - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.commons / SubmissionsSorting / HOT
9 |
10 | HOT
11 |
12 | HOT
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.general/-submissions-sorting/-n-e-w.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | SubmissionsSorting.NEW - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.commons / SubmissionsSorting / NEW
9 |
10 | NEW
11 |
12 | NEW
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.general/-submissions-sorting/-t-o-p.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | SubmissionsSorting.TOP - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.commons / SubmissionsSorting / TOP
9 |
10 | TOP
11 |
12 | TOP
13 |
14 |
15 |
--------------------------------------------------------------------------------
/lib/src/main/java/com/kirkbushman/araw/http/EnvelopedContributionListing.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.araw.http
2 |
3 | import com.kirkbushman.araw.http.base.Envelope
4 | import com.kirkbushman.araw.http.base.EnvelopeKind
5 | import com.kirkbushman.araw.http.listings.ContributionListing
6 | import com.squareup.moshi.Json
7 | import com.squareup.moshi.JsonClass
8 |
9 | @JsonClass(generateAdapter = true)
10 | class EnvelopedContributionListing(
11 |
12 | @Json(name = "kind")
13 | override val kind: EnvelopeKind,
14 |
15 | @Json(name = "data")
16 | override val data: ContributionListing
17 |
18 | ) : Envelope
19 |
--------------------------------------------------------------------------------
/lib/src/main/java/com/kirkbushman/araw/http/EnvelopedRedditorDataListing.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.araw.http
2 |
3 | import com.kirkbushman.araw.http.base.Envelope
4 | import com.kirkbushman.araw.http.base.EnvelopeKind
5 | import com.kirkbushman.araw.http.listings.RedditorDataListing
6 | import com.squareup.moshi.Json
7 | import com.squareup.moshi.JsonClass
8 |
9 | @JsonClass(generateAdapter = true)
10 | class EnvelopedRedditorDataListing(
11 |
12 | @Json(name = "kind")
13 | override val kind: EnvelopeKind,
14 |
15 | @Json(name = "data")
16 | override val data: RedditorDataListing
17 |
18 | ) : Envelope
19 |
--------------------------------------------------------------------------------
/lib/src/main/java/com/kirkbushman/araw/http/EnvelopedWikiRevisionListing.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.araw.http
2 |
3 | import com.kirkbushman.araw.http.base.Envelope
4 | import com.kirkbushman.araw.http.base.EnvelopeKind
5 | import com.kirkbushman.araw.http.listings.WikiRevisionListing
6 | import com.squareup.moshi.Json
7 | import com.squareup.moshi.JsonClass
8 |
9 | @JsonClass(generateAdapter = true)
10 | class EnvelopedWikiRevisionListing(
11 |
12 | @Json(name = "kind")
13 | override val kind: EnvelopeKind,
14 |
15 | @Json(name = "data")
16 | override val data: WikiRevisionListing
17 |
18 | ) : Envelope
19 |
--------------------------------------------------------------------------------
/lib/src/main/java/com/kirkbushman/araw/models/base/Editable.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.araw.models.base
2 |
3 | /**
4 | * Base interface to keep track of when a Thing was edited.
5 | *
6 | * @property editedRaw false if not edited, edit date in UTC epoch-seconds otherwise.
7 | * NOTE: for some old edited comments on reddit.com, this will be set to true instead of edit date.
8 | * Since this field can be a Boolean or a Long value, it's kept as Any, use the field in the Editable
9 | * interface to get a nullable Long version, which is more practical to use.
10 | *
11 | */
12 | interface Editable {
13 |
14 | val editedRaw: Any
15 | }
16 |
--------------------------------------------------------------------------------
/sampleapp/src/main/java/com/kirkbushman/sampleapp/controllers/TrophiesController.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.sampleapp.controllers
2 |
3 | import com.kirkbushman.araw.models.Trophy
4 | import com.kirkbushman.sampleapp.controllers.base.BaseCallback
5 | import com.kirkbushman.sampleapp.controllers.base.BaseController2
6 | import com.kirkbushman.sampleapp.models.trophy
7 |
8 | class TrophiesController : BaseController2() {
9 |
10 | override fun itemModel(index: Int, it: Trophy, callback: BaseCallback?) {
11 |
12 | trophy {
13 | id(it.id)
14 | nameText(it.fullname ?: "")
15 | }
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.http.base/-envelope-kind/-karma-list.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | EnvelopeKind.KarmaList - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.http.base / EnvelopeKind / KarmaList
9 |
10 | KarmaList
11 |
12 | KarmaList
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.commons/-submission-kind/-i-m-a-g-e.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | SubmissionKind.IMAGE - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.commons / SubmissionKind / IMAGE
9 |
10 | IMAGE
11 |
12 | IMAGE
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.commons/-submission-kind/-v-i-d-e-o.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | SubmissionKind.VIDEO - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.commons / SubmissionKind / VIDEO
9 |
10 | VIDEO
11 |
12 | VIDEO
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.enums/-contributions-sorting/-h-o-t.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | ContributionsSorting.HOT - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.enums / ContributionsSorting / HOT
9 |
10 | HOT
11 |
12 | HOT
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.enums/-contributions-sorting/-n-e-w.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | ContributionsSorting.NEW - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.enums / ContributionsSorting / NEW
9 |
10 | NEW
11 |
12 | NEW
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.enums/-contributions-sorting/-t-o-p.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | ContributionsSorting.TOP - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.enums / ContributionsSorting / TOP
9 |
10 | TOP
11 |
12 | TOP
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.enums/-submissions-sorting/-b-e-s-t.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | SubmissionsSorting.BEST - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.enums / SubmissionsSorting / BEST
9 |
10 | BEST
11 |
12 | BEST
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.enums/-time-period/-a-l-l_-t-i-m-e.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | TimePeriod.ALL_TIME - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.enums / TimePeriod / ALL_TIME
9 |
10 | ALL_TIME
11 |
12 | ALL_TIME
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.enums/-time-period/-l-a-s-t_-d-a-y.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | TimePeriod.LAST_DAY - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.enums / TimePeriod / LAST_DAY
9 |
10 | LAST_DAY
11 |
12 | LAST_DAY
13 |
14 |
15 |
--------------------------------------------------------------------------------
/lib/src/main/java/com/kirkbushman/araw/http/EnvelopedSubredditDataListing.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.araw.http
2 |
3 | import com.kirkbushman.araw.http.base.Envelope
4 | import com.kirkbushman.araw.http.base.EnvelopeKind
5 | import com.kirkbushman.araw.http.listings.SubredditDataListing
6 | import com.squareup.moshi.Json
7 | import com.squareup.moshi.JsonClass
8 |
9 | @JsonClass(generateAdapter = true)
10 | class EnvelopedSubredditDataListing(
11 |
12 | @Json(name = "kind")
13 | override val kind: EnvelopeKind,
14 |
15 | @Json(name = "data")
16 | override val data: SubredditDataListing
17 |
18 | ) : Envelope
19 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.http.base/-envelope-kind/-trophy-list.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | EnvelopeKind.TrophyList - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.http.base / EnvelopeKind / TrophyList
9 |
10 | TrophyList
11 |
12 | TrophyList
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.enums/-comments-sorting/-r-a-n-d-o-m.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | CommentsSorting.RANDOM - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.enums / CommentsSorting / RANDOM
9 |
10 | RANDOM
11 |
12 | RANDOM
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.enums/-distinguished/-s-p-e-c-i-a-l.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Distinguished.SPECIAL - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.enums / Distinguished / SPECIAL
9 |
10 | SPECIAL
11 |
12 | SPECIAL
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.enums/-redditor-search-sorting/-a-l-l.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | RedditorSearchSorting.ALL - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.enums / RedditorSearchSorting / ALL
9 |
10 | ALL
11 |
12 | ALL
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.general/-contributions-sorting/-h-o-t.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | ContributionsSorting.HOT - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.commons / ContributionsSorting / HOT
9 |
10 | HOT
11 |
12 | HOT
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.general/-contributions-sorting/-n-e-w.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | ContributionsSorting.NEW - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.commons / ContributionsSorting / NEW
9 |
10 | NEW
11 |
12 | NEW
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.general/-contributions-sorting/-t-o-p.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | ContributionsSorting.TOP - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.commons / ContributionsSorting / TOP
9 |
10 | TOP
11 |
12 | TOP
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.general/-submissions-sorting/-b-e-s-t.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | SubmissionsSorting.BEST - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.commons / SubmissionsSorting / BEST
9 |
10 | BEST
11 |
12 | BEST
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.general/-time-period/-a-l-l_-t-i-m-e.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | TimePeriod.ALL_TIME - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.commons / TimePeriod / ALL_TIME
9 |
10 | ALL_TIME
11 |
12 | ALL_TIME
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.general/-time-period/-l-a-s-t_-d-a-y.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | TimePeriod.LAST_DAY - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.commons / TimePeriod / LAST_DAY
9 |
10 | LAST_DAY
11 |
12 | LAST_DAY
13 |
14 |
15 |
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | language: android
2 | jdk: openjdk8
3 |
4 | os: linux
5 | dist: xenial
6 |
7 | android:
8 | components:
9 | - tools
10 | - platform-tools-30.0.2
11 | - android-30
12 | - extra-google-google_play_services
13 | - extra-google-m2repository
14 | - extra-android-m2repository
15 | - extra
16 |
17 | before_install:
18 | - echo yes | sdkmanager "build-tools;30.0.2"
19 |
20 | cache:
21 | directories:
22 | - $HOME/.gradle/caches/
23 | - $HOME/.gradle/wrapper/
24 | - $HOME/.android/build-cache
25 |
26 | before_script:
27 | - chmod +x gradlew
28 |
29 | script:
30 | - ./gradlew clean build
31 | - ./gradlew test
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.enums/-subreddit-search-sorting/-a-l-l.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | SubredditSearchSorting.ALL - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.enums / SubredditSearchSorting / ALL
9 |
10 | ALL
11 |
12 | ALL
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.enums/-time-period/-l-a-s-t_-h-o-u-r.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | TimePeriod.LAST_HOUR - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.enums / TimePeriod / LAST_HOUR
9 |
10 | LAST_HOUR
11 |
12 | LAST_HOUR
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.enums/-time-period/-l-a-s-t_-w-e-e-k.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | TimePeriod.LAST_WEEK - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.enums / TimePeriod / LAST_WEEK
9 |
10 | LAST_WEEK
11 |
12 | LAST_WEEK
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.enums/-time-period/-l-a-s-t_-y-e-a-r.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | TimePeriod.LAST_YEAR - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.enums / TimePeriod / LAST_YEAR
9 |
10 | LAST_YEAR
11 |
12 | LAST_YEAR
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.general/-comments-sorting/-r-a-n-d-o-m.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | CommentsSorting.RANDOM - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.commons / CommentsSorting / RANDOM
9 |
10 | RANDOM
11 |
12 | RANDOM
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.general/-distinguished/-s-p-e-c-i-a-l.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Distinguished.SPECIAL - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.commons / Distinguished / SPECIAL
9 |
10 | SPECIAL
11 |
12 | SPECIAL
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.general/-redditor-search-sorting/-a-l-l.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | RedditorSearchSorting.ALL - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.commons / RedditorSearchSorting / ALL
9 |
10 | ALL
11 |
12 | ALL
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.general/-submission-kind/videogif.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | SubmissionKind.videogif - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.commons / SubmissionKind / videogif
9 |
10 | videogif
11 |
12 | videogif
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.general/-subreddit-search-sorting/-a-l-l.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | SubredditSearchSorting.ALL - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.commons / SubredditSearchSorting / ALL
9 |
10 | ALL
11 |
12 | ALL
13 |
14 |
15 |
--------------------------------------------------------------------------------
/sampleapp/src/main/res/layout/activity_api_detail.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
15 |
16 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.enums/-search-sorting/-c-o-m-m-e-n-t-s.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | SearchSorting.COMMENTS - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.enums / SearchSorting / COMMENTS
9 |
10 | COMMENTS
11 |
12 | COMMENTS
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.general/-time-period/-l-a-s-t_-h-o-u-r.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | TimePeriod.LAST_HOUR - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.commons / TimePeriod / LAST_HOUR
9 |
10 | LAST_HOUR
11 |
12 | LAST_HOUR
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.general/-time-period/-l-a-s-t_-w-e-e-k.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | TimePeriod.LAST_WEEK - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.commons / TimePeriod / LAST_WEEK
9 |
10 | LAST_WEEK
11 |
12 | LAST_WEEK
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.general/-time-period/-l-a-s-t_-y-e-a-r.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | TimePeriod.LAST_YEAR - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.commons / TimePeriod / LAST_YEAR
9 |
10 | LAST_YEAR
11 |
12 | LAST_YEAR
13 |
14 |
15 |
--------------------------------------------------------------------------------
/lib/src/main/java/com/kirkbushman/araw/models/base/Distinguishable.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.araw.models.base
2 |
3 | /**
4 | * Base interface for all items that can be distingushed
5 | * by moderators, admins or else.
6 | *
7 | * @property distinguishedRaw to allow determining whether they have been distinguished by moderators/admins.
8 | * null = not distinguished.
9 | * moderator = the green.
10 | * admin = the red.
11 | * special = various other special distinguishes.
12 | * NOTE: use the extensions in Distinguishable to have an enum representation.
13 | *
14 | */
15 | interface Distinguishable {
16 |
17 | val distinguishedRaw: String?
18 | }
19 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.http.base/-envelope-kind/-labeled-multi.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | EnvelopeKind.LabeledMulti - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.http.base / EnvelopeKind / LabeledMulti
9 |
10 | LabeledMulti
11 |
12 | LabeledMulti
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.enums/-submissions-sorting/-r-i-s-i-n-g.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | SubmissionsSorting.RISING - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.enums / SubmissionsSorting / RISING
9 |
10 | RISING
11 |
12 | RISING
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.enums/-time-period/-l-a-s-t_-m-o-n-t-h.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | TimePeriod.LAST_MONTH - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.enums / TimePeriod / LAST_MONTH
9 |
10 | LAST_MONTH
11 |
12 | LAST_MONTH
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.general/-search-sorting/-c-o-m-m-e-n-t-s.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | SearchSorting.COMMENTS - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.commons / SearchSorting / COMMENTS
9 |
10 | COMMENTS
11 |
12 | COMMENTS
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.general/-submissions-sorting/-r-i-s-i-n-g.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | SubmissionsSorting.RISING - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.commons / SubmissionsSorting / RISING
9 |
10 | RISING
11 |
12 | RISING
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.http.base/-envelope-kind/-moderated-list.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | EnvelopeKind.ModeratedList - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.http.base / EnvelopeKind / ModeratedList
9 |
10 | ModeratedList
11 |
12 | ModeratedList
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.commons/-submission-kind/-v-i-d-e-o-g-i-f.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | SubmissionKind.VIDEOGIF - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.commons / SubmissionKind / VIDEOGIF
9 |
10 | VIDEOGIF
11 |
12 | VIDEOGIF
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.enums/-distinguished/-m-o-d-e-r-a-t-o-r.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Distinguished.MODERATOR - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.enums / Distinguished / MODERATOR
9 |
10 | MODERATOR
11 |
12 | MODERATOR
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.enums/-search-sorting/-r-e-l-e-v-a-n-c-e.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | SearchSorting.RELEVANCE - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.enums / SearchSorting / RELEVANCE
9 |
10 | RELEVANCE
11 |
12 | RELEVANCE
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.general/-time-period/-l-a-s-t_-m-o-n-t-h.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | TimePeriod.LAST_MONTH - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.commons / TimePeriod / LAST_MONTH
9 |
10 | LAST_MONTH
11 |
12 | LAST_MONTH
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.general/-distinguished/-m-o-d-e-r-a-t-o-r.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Distinguished.MODERATOR - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.commons / Distinguished / MODERATOR
9 |
10 | MODERATOR
11 |
12 | MODERATOR
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.general/-search-sorting/-r-e-l-e-v-a-n-c-e.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | SearchSorting.RELEVANCE - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.commons / SearchSorting / RELEVANCE
9 |
10 | RELEVANCE
11 |
12 | RELEVANCE
13 |
14 |
15 |
--------------------------------------------------------------------------------
/sampleapp/src/main/res/layout/fragment_epoxy.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/lib/src/main/java/com/kirkbushman/araw/models/enums/CommentsSorting.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.araw.models.enums
2 |
3 | import com.kirkbushman.araw.models.base.Sorting
4 |
5 | enum class CommentsSorting(
6 |
7 | override val requiresTimePeriod: Boolean = false,
8 | override val sortingStr: String
9 |
10 | ) : Sorting {
11 |
12 | BEST(sortingStr = "best"),
13 | CONFIDENCE(sortingStr = "confidence"),
14 | TOP(sortingStr = "top"),
15 | NEW(sortingStr = "new"),
16 | CONTROVERSIAL(sortingStr = "controversial"),
17 | OLD(sortingStr = "old"),
18 | RANDOM(sortingStr = "random"),
19 | QA(sortingStr = "qa"),
20 | LIVE(sortingStr = "live")
21 | }
22 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.http.base/-envelope-kind/-wikipage-listing.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | EnvelopeKind.WikipageListing - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.http.base / EnvelopeKind / WikipageListing
9 |
10 | WikipageListing
11 |
12 | WikipageListing
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.enums/-comments-sorting/-c-o-n-f-i-d-e-n-c-e.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | CommentsSorting.CONFIDENCE - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.enums / CommentsSorting / CONFIDENCE
9 |
10 | CONFIDENCE
11 |
12 | CONFIDENCE
13 |
14 |
15 |
--------------------------------------------------------------------------------
/lib/src/main/java/com/kirkbushman/araw/models/commons/SubmissionKind.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.araw.models.commons
2 |
3 | /**
4 | * Enum class that defines the kind of submissions.
5 | * There are additional properties inside of Submission,
6 | * to specify whether it's a video, an image, if it's hosted on reddit.com domain or not...
7 | *
8 | * videogif,
9 | * video,
10 | * image,
11 | * link, which bears a link to media, images, websites
12 | * self, which is only a text post.
13 | */
14 | enum class SubmissionKind(val kindStr: String) {
15 |
16 | VIDEOGIF("videogif"),
17 | VIDEO("video"),
18 | IMAGE("image"),
19 | LINK("link"),
20 | SELF("self")
21 | }
22 |
--------------------------------------------------------------------------------
/sampleapp/src/androidTest/java/com/kirkbushman/sampleapp/instrumented/BasicTestIntegration.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.sampleapp.instrumented
2 |
3 | import androidx.test.ext.junit.runners.AndroidJUnit4
4 |
5 | import org.junit.Assert.*
6 | import org.junit.Test
7 | import org.junit.runner.RunWith
8 |
9 | @RunWith(AndroidJUnit4::class)
10 | class BasicTestIntegration {
11 |
12 | @Test
13 | fun basicTest() {
14 | assertEquals("Assert basic sum of two numbers", 4, 2 + 2)
15 | }
16 |
17 | @Test
18 | fun basicTest2() {
19 | assertEquals("Assert basic replacing of string", "Hello World!".replace("World", "Universe"), "Hello Universe!")
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.general/-comments-sorting/-c-o-n-f-i-d-e-n-c-e.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | CommentsSorting.CONFIDENCE - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.commons / CommentsSorting / CONFIDENCE
9 |
10 | CONFIDENCE
11 |
12 | CONFIDENCE
13 |
14 |
15 |
--------------------------------------------------------------------------------
/lib/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | lib
4 | Project lib created by Buildship.
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 | org.eclipse.buildship.core.gradleprojectbuilder
15 |
16 |
17 |
18 |
19 |
20 | org.eclipse.jdt.core.javanature
21 | org.eclipse.buildship.core.gradleprojectnature
22 |
23 |
24 |
--------------------------------------------------------------------------------
/lib/src/main/java/com/kirkbushman/araw/http/EnvelopedRedditor.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.araw.http
2 |
3 | import android.os.Parcelable
4 | import com.kirkbushman.araw.http.base.Envelope
5 | import com.kirkbushman.araw.http.base.EnvelopeKind
6 | import com.kirkbushman.araw.models.Redditor
7 | import com.squareup.moshi.Json
8 | import com.squareup.moshi.JsonClass
9 | import kotlinx.parcelize.Parcelize
10 |
11 | @JsonClass(generateAdapter = true)
12 | @Parcelize
13 | class EnvelopedRedditor(
14 |
15 | @Json(name = "kind")
16 | override val kind: EnvelopeKind,
17 |
18 | @Json(name = "data")
19 | override val data: Redditor
20 |
21 | ) : Envelope, EnvelopedData, Parcelable
22 |
--------------------------------------------------------------------------------
/sampleapp/src/main/java/com/kirkbushman/sampleapp/controllers/RulesController.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.sampleapp.controllers
2 |
3 | import com.kirkbushman.araw.models.SubredditRule
4 | import com.kirkbushman.sampleapp.controllers.base.BaseCallback
5 | import com.kirkbushman.sampleapp.controllers.base.BaseController2
6 | import com.kirkbushman.sampleapp.models.rule
7 |
8 | class RulesController : BaseController2() {
9 |
10 | override fun itemModel(index: Int, it: SubredditRule, callback: BaseCallback?) {
11 |
12 | rule {
13 | id(it.priority)
14 | priority(it.priority)
15 | shortName(it.shortName)
16 | }
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/sampleapp/src/main/res/layout/item_suspended_redditor.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
15 |
16 |
--------------------------------------------------------------------------------
/lib/src/main/java/com/kirkbushman/araw/http/EnvelopedComment.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.araw.http
2 |
3 | import android.os.Parcelable
4 | import com.kirkbushman.araw.http.base.Envelope
5 | import com.kirkbushman.araw.http.base.EnvelopeKind
6 | import com.kirkbushman.araw.models.Comment
7 | import com.squareup.moshi.Json
8 | import com.squareup.moshi.JsonClass
9 | import kotlinx.parcelize.Parcelize
10 |
11 | @JsonClass(generateAdapter = true)
12 | @Parcelize
13 | class EnvelopedComment(
14 |
15 | @Json(name = "kind")
16 | override val kind: EnvelopeKind,
17 |
18 | @Json(name = "data")
19 | override val data: Comment
20 |
21 | ) : Envelope, EnvelopedCommentData, Parcelable
22 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.enums/-redditor-search-sorting/-r-e-l-e-v-a-n-c-e.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | RedditorSearchSorting.RELEVANCE - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.enums / RedditorSearchSorting / RELEVANCE
9 |
10 | RELEVANCE
11 |
12 | RELEVANCE
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.enums/-subreddit-search-sorting/-r-e-l-e-v-a-n-c-e.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | SubredditSearchSorting.RELEVANCE - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.enums / SubredditSearchSorting / RELEVANCE
9 |
10 | RELEVANCE
11 |
12 | RELEVANCE
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.general/-redditor-search-sorting/-r-e-l-e-v-a-n-c-e.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | RedditorSearchSorting.RELEVANCE - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.commons / RedditorSearchSorting / RELEVANCE
9 |
10 | RELEVANCE
11 |
12 | RELEVANCE
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.general/-subreddit-search-sorting/-r-e-l-e-v-a-n-c-e.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | SubredditSearchSorting.RELEVANCE - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.commons / SubredditSearchSorting / RELEVANCE
9 |
10 | RELEVANCE
11 |
12 | RELEVANCE
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models/-reply/json.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Reply.json - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models / Reply / json
9 |
10 | json
11 |
12 | val json: ReplyJson
13 |
14 |
15 |
--------------------------------------------------------------------------------
/sampleapp/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | sampleapp
4 | Project sampleapp created by Buildship.
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 | org.eclipse.buildship.core.gradleprojectbuilder
15 |
16 |
17 |
18 |
19 |
20 | org.eclipse.jdt.core.javanature
21 | org.eclipse.buildship.core.gradleprojectnature
22 |
23 |
24 |
--------------------------------------------------------------------------------
/.github/dependabot.yml:
--------------------------------------------------------------------------------
1 | # To get started with Dependabot version updates, you'll need to specify which
2 | # package ecosystems to update and where the package manifests are located.
3 | # Please see the documentation for all configuration options:
4 | # https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5 |
6 | version: 2
7 | updates:
8 | - package-ecosystem: "gradle"
9 | directory: "/"
10 | schedule:
11 | interval: "daily"
12 | - package-ecosystem: "gradle"
13 | directory: "lib/"
14 | schedule:
15 | interval: "daily"
16 | - package-ecosystem: "gradle"
17 | directory: "sampleapp/"
18 | schedule:
19 | interval: "daily"
20 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.enums/-comments-sorting/-c-o-n-t-r-o-v-e-r-s-i-a-l.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | CommentsSorting.CONTROVERSIAL - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.enums / CommentsSorting / CONTROVERSIAL
9 |
10 | CONTROVERSIAL
11 |
12 | CONTROVERSIAL
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.general/-comments-sorting/-c-o-n-t-r-o-v-e-r-s-i-a-l.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | CommentsSorting.CONTROVERSIAL - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.commons / CommentsSorting / CONTROVERSIAL
9 |
10 | CONTROVERSIAL
11 |
12 | CONTROVERSIAL
13 |
14 |
15 |
--------------------------------------------------------------------------------
/lib/src/main/java/com/kirkbushman/araw/http/EnvelopedCommentListing.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.araw.http
2 |
3 | import android.os.Parcelable
4 | import com.kirkbushman.araw.http.base.Envelope
5 | import com.kirkbushman.araw.http.base.EnvelopeKind
6 | import com.kirkbushman.araw.http.listings.CommentListing
7 | import com.squareup.moshi.Json
8 | import com.squareup.moshi.JsonClass
9 | import kotlinx.parcelize.Parcelize
10 |
11 | @JsonClass(generateAdapter = true)
12 | @Parcelize
13 | class EnvelopedCommentListing(
14 |
15 | @Json(name = "kind")
16 | override val kind: EnvelopeKind,
17 |
18 | @Json(name = "data")
19 | override val data: CommentListing
20 |
21 | ) : Envelope, Parcelable
22 |
--------------------------------------------------------------------------------
/lib/src/main/java/com/kirkbushman/araw/http/EnvelopedMoreComment.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.araw.http
2 |
3 | import android.os.Parcelable
4 | import com.kirkbushman.araw.http.base.Envelope
5 | import com.kirkbushman.araw.http.base.EnvelopeKind
6 | import com.kirkbushman.araw.models.MoreComments
7 | import com.squareup.moshi.Json
8 | import com.squareup.moshi.JsonClass
9 | import kotlinx.parcelize.Parcelize
10 |
11 | @JsonClass(generateAdapter = true)
12 | @Parcelize
13 | class EnvelopedMoreComment(
14 |
15 | @Json(name = "kind")
16 | override val kind: EnvelopeKind,
17 |
18 | @Json(name = "data")
19 | override val data: MoreComments
20 |
21 | ) : Envelope, EnvelopedCommentData, Parcelable
22 |
--------------------------------------------------------------------------------
/sampleapp/src/main/res/layout/item_trophy.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
16 |
17 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.enums/-submissions-sorting/-c-o-n-t-r-o-v-e-r-s-i-a-l.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | SubmissionsSorting.CONTROVERSIAL - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.enums / SubmissionsSorting / CONTROVERSIAL
9 |
10 | CONTROVERSIAL
11 |
12 | CONTROVERSIAL
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models/-reply-json/data.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | ReplyJson.data - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models / ReplyJson / data
9 |
10 | data
11 |
12 | val data: ReplyData
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.general/-submissions-sorting/-c-o-n-t-r-o-v-e-r-s-i-a-l.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | SubmissionsSorting.CONTROVERSIAL - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.commons / SubmissionsSorting / CONTROVERSIAL
9 |
10 | CONTROVERSIAL
11 |
12 | CONTROVERSIAL
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models/-user-list/data.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | UserList.data - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models / UserList / data
9 |
10 | data
11 |
12 | val data: UserChildren
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.enums/-contributions-sorting/-c-o-n-t-r-o-v-e-r-s-i-a-l.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | ContributionsSorting.CONTROVERSIAL - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.enums / ContributionsSorting / CONTROVERSIAL
9 |
10 | CONTROVERSIAL
11 |
12 | CONTROVERSIAL
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models/-user/id.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | User.id - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models / User / id
9 |
10 | id
11 |
12 | val id: String
13 |
14 |
15 |
--------------------------------------------------------------------------------
/lib/src/main/java/com/kirkbushman/araw/http/EnvelopedWikiPage.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.araw.http
2 |
3 | import com.kirkbushman.araw.http.base.Envelope
4 | import com.kirkbushman.araw.http.base.EnvelopeKind
5 | import com.kirkbushman.araw.models.WikiPage
6 | import com.squareup.moshi.Json
7 | import com.squareup.moshi.JsonClass
8 |
9 | @JsonClass(generateAdapter = true)
10 | class EnvelopedWikiPage(
11 |
12 | @Json(name = "kind")
13 | override val kind: EnvelopeKind?,
14 |
15 | @Json(name = "data")
16 | override val data: WikiPage?,
17 |
18 | @Json(name = "reason")
19 | val reason: String? = null,
20 |
21 | @Json(name = "message")
22 | val message: String? = null
23 |
24 | ) : Envelope
25 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.enums/-distinguished/-n-o-t_-d-i-s-t-i-n-g-u-i-s-h-e-d.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Distinguished.NOT_DISTINGUISHED - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.enums / Distinguished / NOT_DISTINGUISHED
9 |
10 | NOT_DISTINGUISHED
11 |
12 | NOT_DISTINGUISHED
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.general/-contributions-sorting/-c-o-n-t-r-o-v-e-r-s-i-a-l.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | ContributionsSorting.CONTROVERSIAL - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.commons / ContributionsSorting / CONTROVERSIAL
9 |
10 | CONTROVERSIAL
11 |
12 | CONTROVERSIAL
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models/-flair/id.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Flair.id - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models / Flair / id
9 |
10 | id
11 |
12 | val id: String
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models/-friend-list/data.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | FriendList.data - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models / FriendList / data
9 |
10 | data
11 |
12 | val data: FriendListData
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models/-me/coins.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Me.coins - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models / Me / coins
9 |
10 | coins
11 |
12 | val coins: Int
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models/-trophy-list/data.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | TrophyList.data - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models / TrophyList / data
9 |
10 | data
11 |
12 | val data: TrophyChildren
13 |
14 |
15 |
--------------------------------------------------------------------------------
/lib/src/main/java/com/kirkbushman/araw/http/EnvelopedCommentDataListing.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.araw.http
2 |
3 | import android.os.Parcelable
4 | import com.kirkbushman.araw.http.base.Envelope
5 | import com.kirkbushman.araw.http.base.EnvelopeKind
6 | import com.kirkbushman.araw.http.listings.CommentDataListing
7 | import com.squareup.moshi.Json
8 | import com.squareup.moshi.JsonClass
9 | import kotlinx.parcelize.Parcelize
10 |
11 | @JsonClass(generateAdapter = true)
12 | @Parcelize
13 | class EnvelopedCommentDataListing(
14 |
15 | @Json(name = "kind")
16 | override val kind: EnvelopeKind,
17 |
18 | @Json(name = "data")
19 | override val data: CommentDataListing
20 |
21 | ) : Envelope, Parcelable
22 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.helpers/-auth-app-helper/auth.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | AuthAppHelper.auth - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.helpers / AuthAppHelper / auth
9 |
10 | auth
11 |
12 | protected val auth: RedditAuth
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.http.base/-envelope-kind/-labeled-multi-description.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | EnvelopeKind.LabeledMultiDescription - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.http.base / EnvelopeKind / LabeledMultiDescription
9 |
10 | LabeledMultiDescription
11 |
12 | LabeledMultiDescription
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.general/-distinguished/-n-o-t_-d-i-s-t-i-n-g-u-i-s-h-e-d.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Distinguished.NOT_DISTINGUISHED - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.commons / Distinguished / NOT_DISTINGUISHED
9 |
10 | NOT_DISTINGUISHED
11 |
12 | NOT_DISTINGUISHED
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models/-user/date.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | User.date - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models / User / date
9 |
10 | date
11 |
12 | val date: Long
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.exceptions/-wiki-disabled-exception/-init-.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | WikiDisabledException. - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.exceptions / WikiDisabledException / <init>
9 |
10 | <init>
11 |
12 | WikiDisabledException()
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.http.base/-envelope/data.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Envelope.data - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.http.base / Envelope / data
9 |
10 | data
11 |
12 | abstract val data: T?
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models/-flair/text.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Flair.text - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models / Flair / text
9 |
10 | text
11 |
12 | val text: String
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models/-flair/type.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Flair.type - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models / Flair / type
9 |
10 | type
11 |
12 | val type: String
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models/-multi/name.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Multi.name - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models / Multi / name
9 |
10 | name
11 |
12 | val name: String
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models/-multi/path.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Multi.path - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models / Multi / path
9 |
10 | path
11 |
12 | val path: String
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models/-prefs/lang.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Prefs.lang - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models / Prefs / lang
9 |
10 | lang
11 |
12 | val lang: String
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models/-user/name.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | User.name - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models / User / name
9 |
10 | name
11 |
12 | val name: String
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.commons/-images/source.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Images.source - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.commons / Images / source
9 |
10 | source
11 |
12 | val source: ImageDetail
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.general/-gallery-image/s.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | GalleryImage.s - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.commons / GalleryImage / s
9 |
10 | s
11 |
12 | val s: GalleryImageData
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.general/-images/source.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Images.source - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.commons / Images / source
9 |
10 | source
11 |
12 | val source: ImageDetail
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models/-poll-option/id.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | PollOption.id - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models / PollOption / id
9 |
10 | id
11 |
12 | val id: Long
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models/-poll-vote-res/data.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | PollVoteRes.data - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models / PollVoteRes / data
9 |
10 | data
11 |
12 | val data: PollVoteData
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models/-prefs/beta.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Prefs.beta - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models / Prefs / beta
9 |
10 | beta
11 |
12 | val beta: Boolean
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models/-user/rel-id.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | User.relId - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models / User / relId
9 |
10 | relId
11 |
12 | val relId: String
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models/-friend/added.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Friend.added - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models / Friend / added
9 |
10 | added
11 |
12 | val added: Long
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models/-gallery-media/s.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | GalleryMedia.s - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models / GalleryMedia / s
9 |
10 | s
11 |
12 | val s: GalleryImageData?
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models/-prefs/media.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Prefs.media - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models / Prefs / media
9 |
10 | media
11 |
12 | val media: String
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models/-subreddit/url.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Subreddit.url - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models / Subreddit / url
9 |
10 | url
11 |
12 | val url: String
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.helpers/-auth-userless-helper/auth.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | AuthUserlessHelper.auth - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.helpers / AuthUserlessHelper / auth
9 |
10 | auth
11 |
12 | protected val auth: RedditAuth
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.http/-enveloped-multi/data.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | EnvelopedMulti.data - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.http / EnvelopedMulti / data
9 |
10 | data
11 |
12 | val data: Multi
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models/-awarding/count.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Awarding.count - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models / Awarding / count
9 |
10 | count
11 |
12 | val count: Int
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models/-friend/rel-id.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Friend.relId - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models / Friend / relId
9 |
10 | relId
11 |
12 | val relId: String
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models/-karma-list/kind.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | KarmaList.kind - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models / KarmaList / kind
9 |
10 | kind
11 |
12 | val kind: EnvelopeKind
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models/-multi-sub/name.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | MultiSub.name - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models / MultiSub / name
9 |
10 | name
11 |
12 | val name: String
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models/-submission/url.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Submission.url - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models / Submission / url
9 |
10 | url
11 |
12 | val url: String
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models/-upload-contract/args.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | UploadContract.args - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models / UploadContract / args
9 |
10 | args
11 |
12 | val args: UploadContractArgs
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models/-upload-data/acl.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | UploadData.acl - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models / UploadData / acl
9 |
10 | acl
11 |
12 | val acl: String
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models/-upload-data/key.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | UploadData.key - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models / UploadData / key
9 |
10 | key
11 |
12 | val key: String
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models/-user-list/kind.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | UserList.kind - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models / UserList / kind
9 |
10 | kind
11 |
12 | val kind: EnvelopeKind
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models/-wiki-revision/id.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | WikiRevision.id - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models / WikiRevision / id
9 |
10 | id
11 |
12 | val id: String
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.helpers/-auth-helper/auth.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | AuthHelper.auth - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.helpers / AuthHelper / auth
9 |
10 | auth
11 |
12 | protected abstract val auth: RedditAuth
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.http/-enveloped-trophy/data.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | EnvelopedTrophy.data - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.http / EnvelopedTrophy / data
9 |
10 | data
11 |
12 | val data: Trophy
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.general/-poll-option/id.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | PollOption.id - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.commons / PollOption / id
9 |
10 | id
11 |
12 | val id: Long
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models/-friend-list/kind.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | FriendList.kind - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models / FriendList / kind
9 |
10 | kind
11 |
12 | val kind: EnvelopeKind
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models/-me/verified.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Me.verified - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models / Me / verified
9 |
10 | verified
11 |
12 | val verified: Boolean
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models/-multi/over18.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Multi.over18 - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models / Multi / over18
9 |
10 | over18
11 |
12 | val over18: Boolean
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models/-poll-vote-state/poll.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | PollVoteState.poll - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models / PollVoteState / poll
9 |
10 | poll
11 |
12 | val poll: PollVoteStatePoll
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models/-prefs/over18.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Prefs.over18 - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models / Prefs / over18
9 |
10 | over18
11 |
12 | val over18: Boolean
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models/-subreddit/lang.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Subreddit.lang - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models / Subreddit / lang
9 |
10 | lang
11 |
12 | val lang: String
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models/-trophy-list/kind.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | TrophyList.kind - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models / TrophyList / kind
9 |
10 | kind
11 |
12 | val kind: EnvelopeKind
13 |
14 |
15 |
--------------------------------------------------------------------------------
/sampleapp/src/main/java/com/kirkbushman/sampleapp/activities/base/BaseActivity.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.sampleapp.activities.base
2 |
3 | import android.view.MenuItem
4 | import androidx.annotation.LayoutRes
5 | import androidx.appcompat.app.AppCompatActivity
6 |
7 | abstract class BaseActivity : AppCompatActivity {
8 |
9 | constructor(@LayoutRes contentLayoutId: Int) : super(contentLayoutId)
10 | constructor() : super()
11 |
12 | override fun onOptionsItemSelected(item: MenuItem): Boolean {
13 | when (item.itemId) {
14 |
15 | android.R.id.home -> {
16 |
17 | onBackPressed()
18 | return true
19 | }
20 | }
21 |
22 | return super.onOptionsItemSelected(item)
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.http/-enveloped-comment/data.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | EnvelopedComment.data - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.http / EnvelopedComment / data
9 |
10 | data
11 |
12 | val data: Comment
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.http/-enveloped-message/data.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | EnvelopedMessage.data - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.http / EnvelopedMessage / data
9 |
10 | data
11 |
12 | val data: Message
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.commons/-media/o-embed.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Media.oEmbed - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.commons / Media / oEmbed
9 |
10 | oEmbed
11 |
12 | val oEmbed: OEmbed?
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.general/-gallery-media/e.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | GalleryMedia.e - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.commons / GalleryMedia / e
9 |
10 | e
11 |
12 | val e: String
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.general/-media/o-embed.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Media.oEmbed - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.commons / Media / oEmbed
9 |
10 | oEmbed
11 |
12 | val oEmbed: OEmbed?
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.responses/-poll-vote-res/data.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | PollVoteRes.data - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.responses / PollVoteRes / data
9 |
10 | data
11 |
12 | val data: PollVoteData
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models/-moderated-sub/url.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | ModeratedSub.url - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models / ModeratedSub / url
9 |
10 | url
11 |
12 | val url: String
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models/-multi/can-edit.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Multi.canEdit - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models / Multi / canEdit
9 |
10 | canEdit
11 |
12 | val canEdit: Boolean
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models/-multi/icon-url.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Multi.iconUrl - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models / Multi / iconUrl
9 |
10 | iconUrl
11 |
12 | val iconUrl: String
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models/-multi/owner-id.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Multi.ownerId - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models / Multi / ownerId
9 |
10 | ownerId
11 |
12 | val ownerId: String
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models/-poll-option/text.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | PollOption.text - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models / PollOption / text
9 |
10 | text
11 |
12 | val text: String
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models/-poll-vote-req/id.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | PollVoteReq.id - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models / PollVoteReq / id
9 |
10 | id
11 |
12 | val id: String
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models/-prefs/hide-ads.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Prefs.hideAds - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models / Prefs / hideAds
9 |
10 | hideAds
11 |
12 | val hideAds: Boolean
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models/-prefs/hide-ups.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Prefs.hideUps - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models / Prefs / hideUps
9 |
10 | hideUps
11 |
12 | val hideUps: Boolean
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models/-prefs/num-sites.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Prefs.numSites - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models / Prefs / numSites
9 |
10 | numSites
11 |
12 | val numSites: Int
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models/-submit-response/json.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | SubmitResponse.json - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models / SubmitResponse / json
9 |
10 | json
11 |
12 | val json: SubmitResponseJson
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models/-subreddit/title.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Subreddit.title - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models / Subreddit / title
9 |
10 | title
11 |
12 | val title: String
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models/-upload-file/file.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | UploadFile.file - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models / UploadFile / file
9 |
10 | file
11 |
12 | val file: String
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.helpers/-auth-helper/bearer.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | AuthHelper.bearer - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.helpers / AuthHelper / bearer
9 |
10 | bearer
11 |
12 | protected var bearer: TokenBearer?
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.http/-enveloped-multi/kind.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | EnvelopedMulti.kind - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.http / EnvelopedMulti / kind
9 |
10 | kind
11 |
12 | val kind: EnvelopeKind
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.http/-enveloped-redditor/data.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | EnvelopedRedditor.data - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.http / EnvelopedRedditor / data
9 |
10 | data
11 |
12 | val data: Redditor
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.commons/-image-variants/gif.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | ImageVariants.gif - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.commons / ImageVariants / gif
9 |
10 | gif
11 |
12 | val gif: Images?
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.commons/-image-variants/mp4.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | ImageVariants.mp4 - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.commons / ImageVariants / mp4
9 |
10 | mp4
11 |
12 | val mp4: Images?
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.general/-gallery-media/s.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | GalleryMedia.s - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.commons / GalleryMedia / s
9 |
10 | s
11 |
12 | val s: GalleryImageData?
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.general/-image-variants/gif.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | ImageVariants.gif - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.commons / ImageVariants / gif
9 |
10 | gif
11 |
12 | val gif: Images?
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.general/-image-variants/mp4.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | ImageVariants.mp4 - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.commons / ImageVariants / mp4
9 |
10 | mp4
11 |
12 | val mp4: Images?
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models/-flair/css-class.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Flair.cssClass - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models / Flair / cssClass
9 |
10 | cssClass
11 |
12 | val cssClass: String
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models/-gallery-media-item/id.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | GalleryMediaItem.id - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models / GalleryMediaItem / id
9 |
10 | id
11 |
12 | val id: Long
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models/-me/is-sponsor.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Me.isSponsor - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models / Me / isSponsor
9 |
10 | isSponsor
11 |
12 | val isSponsor: Boolean
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models/-me/num-friends.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Me.numFriends - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models / Me / numFriends
9 |
10 | numFriends
11 |
12 | val numFriends: Int
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models/-me/subreddit.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Me.subreddit - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models / Me / subreddit
9 |
10 | subreddit
11 |
12 | val subreddit: RedditorSubreddit?
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models/-prefs/compress.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Prefs.compress - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models / Prefs / compress
9 |
10 | compress
11 |
12 | val compress: Boolean
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models/-prefs/research.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Prefs.research - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models / Prefs / research
9 |
10 | research
11 |
12 | val research: Boolean
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models/-wiki-page-list/kind.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | WikiPageList.kind - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models / WikiPageList / kind
9 |
10 | kind
11 |
12 | val kind: EnvelopeKind
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models/-wiki-revision/author.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | WikiRevision.author - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models / WikiRevision / author
9 |
10 | author
11 |
12 | val author: Redditor?
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models/-wiki-revision/page.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | WikiRevision.page - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models / WikiRevision / page
9 |
10 | page
11 |
12 | val page: String
13 |
14 |
15 |
--------------------------------------------------------------------------------
/lib/src/main/java/com/kirkbushman/araw/http/listings/MessageListing.kt:
--------------------------------------------------------------------------------
1 | package com.kirkbushman.araw.http.listings
2 |
3 | import com.kirkbushman.araw.http.EnvelopedMessage
4 | import com.kirkbushman.araw.http.base.Listing
5 | import com.squareup.moshi.Json
6 | import com.squareup.moshi.JsonClass
7 |
8 | @JsonClass(generateAdapter = true)
9 | class MessageListing(
10 |
11 | @Json(name = "modhash")
12 | override val modhash: String?,
13 | @Json(name = "dist")
14 | override val dist: Int?,
15 |
16 | @Json(name = "children")
17 | override val children: List,
18 |
19 | @Json(name = "after")
20 | override val after: String?,
21 | @Json(name = "before")
22 | override val before: String?
23 |
24 | ) : Listing
25 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.http/-enveloped-subreddit/data.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | EnvelopedSubreddit.data - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.http / EnvelopedSubreddit / data
9 |
10 | data
11 |
12 | val data: Subreddit
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.http/-enveloped-trophy/kind.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | EnvelopedTrophy.kind - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.http / EnvelopedTrophy / kind
9 |
10 | kind
11 |
12 | val kind: EnvelopeKind
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/lib/com.kirkbushman.araw.models.general/-gallery-image-data/x.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | GalleryImageData.x - lib
5 |
6 |
7 |
8 | lib / com.kirkbushman.araw.models.commons / GalleryImageData / x
9 |
10 | x
11 |
12 | val x: Int
13 |
14 |
15 |
--------------------------------------------------------------------------------