Skip to content

Commit

Permalink
♻️ remove redundant @SerializedName annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
kmkim2689 authored and ii2001 committed Jul 25, 2024
1 parent d779ddd commit 34dd931
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 33 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
package net.pengcook.android.data.model.feed.item

import com.google.gson.annotations.SerializedName

data class AuthorResponse(
@SerializedName("authorId")
val authorId: Long,
@SerializedName("authorImage")
val authorImage: String,
@SerializedName("authorName")
val authorName: String,
)
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
package net.pengcook.android.data.model.feed.item

import com.google.gson.annotations.SerializedName

data class CategoryResponse(
@SerializedName("categoryId")
val categoryId: Long,
@SerializedName("categoryName")
val categoryName: String,
)
Original file line number Diff line number Diff line change
@@ -1,26 +1,14 @@
package net.pengcook.android.data.model.feed.item

import com.google.gson.annotations.SerializedName

data class FeedItemResponse(
@SerializedName("author")
val author: AuthorResponse,
@SerializedName("category")
val category: List<CategoryResponse>,
@SerializedName("cookingTime")
val cookingTime: String,
@SerializedName("description")
val description: String,
@SerializedName("difficulty")
val difficulty: Int,
@SerializedName("ingredient")
val ingredient: List<IngredientResponse>,
@SerializedName("likeCount")
val likeCount: Int,
@SerializedName("recipeId")
val recipeId: Long,
@SerializedName("thumbnail")
val thumbnail: String,
@SerializedName("title")
val title: String,
)
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
package net.pengcook.android.data.model.feed.item

import com.google.gson.annotations.SerializedName

data class IngredientResponse(
@SerializedName("ingredientId")
val ingredientId: Long,
@SerializedName("ingredientName")
val ingredientName: String,
@SerializedName("requirement")
val requirement: String,
)
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
package net.pengcook.android.data.model.feed.step

import com.google.gson.annotations.SerializedName

data class RecipeStepResponse(
@SerializedName("description")
val description: String,
@SerializedName("id")
val id: Long,
@SerializedName("image")
val image: Any,
@SerializedName("recipeId")
val recipeId: Int,
@SerializedName("sequence")
val sequence: Int,
)

0 comments on commit 34dd931

Please sign in to comment.