diff --git a/android/app/src/main/java/net/pengcook/android/data/model/feed/item/AuthorResponse.kt b/android/app/src/main/java/net/pengcook/android/data/model/feed/item/AuthorResponse.kt index 06054ad4..d2f84e82 100644 --- a/android/app/src/main/java/net/pengcook/android/data/model/feed/item/AuthorResponse.kt +++ b/android/app/src/main/java/net/pengcook/android/data/model/feed/item/AuthorResponse.kt @@ -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, ) diff --git a/android/app/src/main/java/net/pengcook/android/data/model/feed/item/CategoryResponse.kt b/android/app/src/main/java/net/pengcook/android/data/model/feed/item/CategoryResponse.kt index aa82b3d3..c04ebfd7 100644 --- a/android/app/src/main/java/net/pengcook/android/data/model/feed/item/CategoryResponse.kt +++ b/android/app/src/main/java/net/pengcook/android/data/model/feed/item/CategoryResponse.kt @@ -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, ) diff --git a/android/app/src/main/java/net/pengcook/android/data/model/feed/item/FeedItemResponse.kt b/android/app/src/main/java/net/pengcook/android/data/model/feed/item/FeedItemResponse.kt index e86ce1f8..911e11ff 100644 --- a/android/app/src/main/java/net/pengcook/android/data/model/feed/item/FeedItemResponse.kt +++ b/android/app/src/main/java/net/pengcook/android/data/model/feed/item/FeedItemResponse.kt @@ -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, - @SerializedName("cookingTime") val cookingTime: String, - @SerializedName("description") val description: String, - @SerializedName("difficulty") val difficulty: Int, - @SerializedName("ingredient") val ingredient: List, - @SerializedName("likeCount") val likeCount: Int, - @SerializedName("recipeId") val recipeId: Long, - @SerializedName("thumbnail") val thumbnail: String, - @SerializedName("title") val title: String, ) diff --git a/android/app/src/main/java/net/pengcook/android/data/model/feed/item/IngredientResponse.kt b/android/app/src/main/java/net/pengcook/android/data/model/feed/item/IngredientResponse.kt index bf9f5857..bf34d5aa 100644 --- a/android/app/src/main/java/net/pengcook/android/data/model/feed/item/IngredientResponse.kt +++ b/android/app/src/main/java/net/pengcook/android/data/model/feed/item/IngredientResponse.kt @@ -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, ) diff --git a/android/app/src/main/java/net/pengcook/android/data/model/feed/step/RecipeStepResponse.kt b/android/app/src/main/java/net/pengcook/android/data/model/feed/step/RecipeStepResponse.kt index 02b35c01..ff89999e 100644 --- a/android/app/src/main/java/net/pengcook/android/data/model/feed/step/RecipeStepResponse.kt +++ b/android/app/src/main/java/net/pengcook/android/data/model/feed/step/RecipeStepResponse.kt @@ -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, )