From 6263be286c1f1d9232f659d1720f02b041fbf497 Mon Sep 17 00:00:00 2001 From: Hung Date: Fri, 5 May 2023 19:25:19 +0800 Subject: [PATCH] add query product iinfo --- visearch-android/build.gradle | 4 ++-- .../visearch/android/ProductSearchByIdParams.java | 11 +++++++++++ .../visearch/android/model/ProductResponse.java | 12 ++++++++++++ 3 files changed, 25 insertions(+), 2 deletions(-) diff --git a/visearch-android/build.gradle b/visearch-android/build.gradle index 550f317..4f9365b 100644 --- a/visearch-android/build.gradle +++ b/visearch-android/build.gradle @@ -5,8 +5,8 @@ plugins { def versionMajor = 2 def versionMinor = 3 -def versionPatch = 2 -version = '2.3.2' +def versionPatch = 3 +version = '2.3.3' android { compileSdkVersion 29 diff --git a/visearch-android/src/main/java/com/visenze/visearch/android/ProductSearchByIdParams.java b/visearch-android/src/main/java/com/visenze/visearch/android/ProductSearchByIdParams.java index 123fa6e..894960c 100644 --- a/visearch-android/src/main/java/com/visenze/visearch/android/ProductSearchByIdParams.java +++ b/visearch-android/src/main/java/com/visenze/visearch/android/ProductSearchByIdParams.java @@ -16,6 +16,9 @@ public class ProductSearchByIdParams extends BaseProductSearchParams { @SerializedName("strategy_id") private Integer strategyId; + @SerializedName("return_product_info") + private Boolean returnProductInfo; + @SerializedName("show_pinned_pids") private Boolean showPinnedPids; @@ -75,6 +78,14 @@ public void setShowExcludedPids(Boolean showExcludedPids) { this.showExcludedPids = showExcludedPids; } + public Boolean getReturnProductInfo() { + return returnProductInfo; + } + + public void setReturnProductInfo(Boolean returnProductInfo) { + this.returnProductInfo = returnProductInfo; + } + public Integer getSetLimit() { return setLimit; } diff --git a/visearch-android/src/main/java/com/visenze/visearch/android/model/ProductResponse.java b/visearch-android/src/main/java/com/visenze/visearch/android/model/ProductResponse.java index 7178ea3..5438087 100644 --- a/visearch-android/src/main/java/com/visenze/visearch/android/model/ProductResponse.java +++ b/visearch-android/src/main/java/com/visenze/visearch/android/model/ProductResponse.java @@ -22,6 +22,10 @@ public class ProductResponse { @SerializedName("product_types") private List productTypes; + // query product + @SerializedName("product_info") + Product productInfo; + @SerializedName("result") private List products; @@ -223,4 +227,12 @@ public List getGroupResults() { public void setGroupResults(List groupResults) { this.groupResults = groupResults; } + + public Product getProductInfo() { + return productInfo; + } + + public void setProductInfo(Product productInfo) { + this.productInfo = productInfo; + } }