-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
♻️ remove redundant @SerializedName annotations
- Loading branch information
Showing
5 changed files
with
0 additions
and
33 deletions.
There are no files selected for viewing
5 changes: 0 additions & 5 deletions
5
android/app/src/main/java/net/pengcook/android/data/model/feed/item/AuthorResponse.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 |
---|---|---|
@@ -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, | ||
) |
4 changes: 0 additions & 4 deletions
4
android/app/src/main/java/net/pengcook/android/data/model/feed/item/CategoryResponse.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 |
---|---|---|
@@ -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, | ||
) |
12 changes: 0 additions & 12 deletions
12
android/app/src/main/java/net/pengcook/android/data/model/feed/item/FeedItemResponse.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 |
---|---|---|
@@ -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, | ||
) |
5 changes: 0 additions & 5 deletions
5
android/app/src/main/java/net/pengcook/android/data/model/feed/item/IngredientResponse.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 |
---|---|---|
@@ -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, | ||
) |
7 changes: 0 additions & 7 deletions
7
android/app/src/main/java/net/pengcook/android/data/model/feed/step/RecipeStepResponse.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 |
---|---|---|
@@ -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, | ||
) |