Skip to content

Commit

Permalink
Merge pull request #101 from visenze/feature/query_prod
Browse files Browse the repository at this point in the history
[API-9252] add query product info
  • Loading branch information
thehung111 authored May 5, 2023
2 parents 1721535 + 6263be2 commit 54a743c
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
4 changes: 2 additions & 2 deletions visearch-android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ public class ProductResponse {
@SerializedName("product_types")
private List<ProductType> productTypes;

// query product
@SerializedName("product_info")
Product productInfo;

@SerializedName("result")
private List<Product> products;

Expand Down Expand Up @@ -223,4 +227,12 @@ public List<GroupProductResult> getGroupResults() {
public void setGroupResults(List<GroupProductResult> groupResults) {
this.groupResults = groupResults;
}

public Product getProductInfo() {
return productInfo;
}

public void setProductInfo(Product productInfo) {
this.productInfo = productInfo;
}
}

0 comments on commit 54a743c

Please sign in to comment.