-
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.
🚀 product recommendation API integration, finishing (bug fix, etc)
- Loading branch information
1 parent
f1bc62d
commit 02af8fd
Showing
21 changed files
with
213 additions
and
64 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
42 changes: 42 additions & 0 deletions
42
app/src/main/java/academy/bangkit/trackmate/data/remote/response/RecommendationResponse.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,42 @@ | ||
package academy.bangkit.trackmate.data.remote.response | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
data class RecommendationResponse( | ||
|
||
@field:SerializedName("data") | ||
val data: DataRecommendation, | ||
|
||
@field:SerializedName("count") | ||
val count: Int, | ||
|
||
@field:SerializedName("error") | ||
val error: Boolean, | ||
|
||
@field:SerializedName("message") | ||
val message: String, | ||
|
||
@field:SerializedName("status") | ||
val status: String | ||
) | ||
|
||
data class DataRecommendation( | ||
|
||
@field:SerializedName("recommended_products") | ||
val recommendedProducts: List<RecommendedProductsItem?>? | ||
) | ||
|
||
data class RecommendedProductsItem( | ||
|
||
@field:SerializedName("product_id") | ||
val productId: String, | ||
|
||
@field:SerializedName("rating_x") | ||
val rating: String, | ||
|
||
@field:SerializedName("product_name") | ||
val productName: String, | ||
|
||
@field:SerializedName("product_link") | ||
val productLink: String | ||
) |
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
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
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
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
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
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
Oops, something went wrong.