-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eb55851
commit d3a88d2
Showing
4 changed files
with
60 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
lib/src/main/java/com/kirkbushman/araw/models/PremiumSubreddit.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
package com.kirkbushman.araw.models | ||
|
||
import android.os.Parcelable | ||
import com.kirkbushman.araw.models.base.SubredditData | ||
import com.squareup.moshi.Json | ||
import com.squareup.moshi.JsonClass | ||
import kotlinx.parcelize.Parcelize | ||
|
||
@JsonClass(generateAdapter = true) | ||
@Parcelize | ||
data class PremiumSubreddit( | ||
|
||
@Json(name = "id") | ||
override val id: String, | ||
|
||
@Json(name = "name") | ||
override val fullname: String, | ||
|
||
@Json(name = "community_icon") | ||
val communityIcon: String, | ||
|
||
@Json(name = "created") | ||
override val created: Long, | ||
|
||
@Json(name = "created_utc") | ||
override val createdUtc: Long, | ||
|
||
@Json(name = "display_name") | ||
override val displayName: String, | ||
|
||
@Json(name = "display_name_prefixed") | ||
override val displayNamePrefixed: String, | ||
|
||
@Json(name = "public_description") | ||
val publicDescription: String, | ||
|
||
@Json(name = "public_description_html") | ||
val publicDescriptionHtml: String?, | ||
|
||
@Json(name = "subreddit_type") | ||
override val subredditType: String, | ||
|
||
@Json(name = "title") | ||
override val title: String, | ||
|
||
@Json(name = "url") | ||
override val url: String | ||
|
||
) : SubredditData, Parcelable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters