Skip to content

Commit

Permalink
Merge pull request #103 from visenze/feature/non_product_based_recs
Browse files Browse the repository at this point in the history
[API-9725] add non_product_based_recs
  • Loading branch information
thehung111 authored Jul 25, 2023
2 parents 657be34 + bf2ef77 commit 79891a6
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 3 deletions.
2 changes: 1 addition & 1 deletion doc/ProductSearch.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ With the release of ViSenze's Catalog system, ViSearch Android SDK will now incl
- Aggregate search results on a product level instead of image level
- Consistent data type in API response with Catalog’s schema

> Current stable version: 2.3.2
> Current stable version: 2.3.5
> Minimum Android SDK Version: API 9, Android 2.3
Expand Down
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 = 4
version = '2.3.4'
def versionPatch = 5
version = '2.3.5'

android {
compileSdkVersion 29
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public class IdSearchParams extends SearchParams {
private Integer setLimit;
private Boolean useSetBasedCtl;
private Boolean showBestProductImages;
private Boolean nonProductBasedRecs;

private List<String> box;

Expand Down Expand Up @@ -102,6 +103,14 @@ public void setShowExcludedImNames(Boolean showExcludedImNames) {
this.showExcludedImNames = showExcludedImNames;
}

public Boolean getNonProductBasedRecs() {
return nonProductBasedRecs;
}

public void setNonProductBasedRecs(Boolean nonProductBasedRecs) {
this.nonProductBasedRecs = nonProductBasedRecs;
}

public Integer getSetLimit() {
return setLimit;
}
Expand Down Expand Up @@ -171,6 +180,10 @@ public Map<String, List<String> > toMap() {
putStringInMap(map, "show_best_product_images", showBestProductImages.toString());
}

if (nonProductBasedRecs != null) {
putStringInMap(map, "non_product_based_recs", nonProductBasedRecs.toString());
}

if (box != null && box.size() > 0) {
map.put("box" , box);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ public class ProductSearchByIdParams extends BaseProductSearchParams {
@SerializedName("show_best_product_images")
private Boolean showBestProductImages;

@SerializedName("non_product_based_recs")
private Boolean nonProductBasedRecs;

@SerializedName("box")
@Expose(deserialize = false, serialize = false)
private List<String> box;
Expand Down Expand Up @@ -78,6 +81,14 @@ public void setShowExcludedPids(Boolean showExcludedPids) {
this.showExcludedPids = showExcludedPids;
}

public Boolean getNonProductBasedRecs() {
return nonProductBasedRecs;
}

public void setNonProductBasedRecs(Boolean nonProductBasedRecs) {
this.nonProductBasedRecs = nonProductBasedRecs;
}

public Boolean getReturnProductInfo() {
return returnProductInfo;
}
Expand Down

0 comments on commit 79891a6

Please sign in to comment.