Skip to content

Commit

Permalink
fix: remove unused lemmy parameters (closes #185)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bnyro committed Apr 9, 2024
1 parent beae674 commit 1a081dd
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 57 deletions.
24 changes: 0 additions & 24 deletions app/src/main/java/com/bnyro/wallpaper/api/le/obj/LemmyCommunity.kt

This file was deleted.

11 changes: 0 additions & 11 deletions app/src/main/java/com/bnyro/wallpaper/api/le/obj/LemmyCreator.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,5 @@ import com.fasterxml.jackson.annotation.JsonProperty

@JsonIgnoreProperties(ignoreUnknown = true)
data class LemmyCreator(
@JsonProperty("actor_id") val actorId: String = "",
@JsonProperty("admin") val admin: Boolean = false,
@JsonProperty("avatar") val avatar: String? = null,
@JsonProperty("banned") val banned: Boolean = false,
@JsonProperty("banner") val banner: String? = null,
@JsonProperty("bot_account") val botAccount: Boolean = false,
@JsonProperty("deleted") val deleted: Boolean = false,
@JsonProperty("id") val id: Int = 0,
@JsonProperty("instance_id") val instanceId: Int = 0,
@JsonProperty("local") val local: Boolean = false,
@JsonProperty("name") val name: String = "",
@JsonProperty("published") val published: String = ""
)
13 changes: 0 additions & 13 deletions app/src/main/java/com/bnyro/wallpaper/api/le/obj/LemmyPost.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,7 @@ import com.fasterxml.jackson.annotation.JsonProperty
@JsonIgnoreProperties(ignoreUnknown = true)
data class LemmyPost(
@JsonProperty("ap_id") val postUrl: String = "",
@JsonProperty("body") val body: String = "",
@JsonProperty("community_id") val communityId: Int = 0,
@JsonProperty("creator_id") val creatorId: Int = 0,
@JsonProperty("deleted") val deleted: Boolean = false,
@JsonProperty("featured_community") val featuredCommunity: Boolean = false,
@JsonProperty("featured_local") val featuredLocal: Boolean = false,
@JsonProperty("id") val id: Int = 0,
@JsonProperty("language_id") val languageId: Int = 0,
@JsonProperty("local") val local: Boolean = false,
@JsonProperty("locked") val locked: Boolean = false,
@JsonProperty("name") val name: String = "",
@JsonProperty("nsfw") val nsfw: Boolean = false,
@JsonProperty("published") val published: String = "",
@JsonProperty("removed") val removed: Boolean = false,
@JsonProperty("thumbnail_url") val thumbnailUrl: String? = null,
@JsonProperty("url") val url: String? = null
)
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,6 @@ import com.fasterxml.jackson.annotation.JsonProperty

@JsonIgnoreProperties(ignoreUnknown = true)
data class LemmyPostView(
@JsonProperty("community") val community: LemmyCommunity = LemmyCommunity(),
@JsonProperty("creator") val creator: LemmyCreator = LemmyCreator(),
@JsonProperty("creator_banned_from_community") val creatorBannedFromCommunity: Boolean = false,
@JsonProperty("creator_blocked") val creatorBlocked: Boolean = false,
@JsonProperty("post") val post: LemmyPost = LemmyPost(),
@JsonProperty("read") val read: Boolean = false,
@JsonProperty("saved") val saved: Boolean = false,
@JsonProperty("subscribed") val subscribed: String = "",
@JsonProperty("unread_comments") val unreadComments: Int = 0
)
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Mon Apr 08 21:07:25 IST 2024
#Tue Apr 09 21:28:06 CEST 2024
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

0 comments on commit 1a081dd

Please sign in to comment.