Skip to content

Commit

Permalink
Merge pull request #99 from visenze/feature/sti
Browse files Browse the repository at this point in the history
[API-9128] Support new STI response fields
  • Loading branch information
thehung111 authored Apr 12, 2023
2 parents eb7993f + 48e3bf8 commit 00b67df
Show file tree
Hide file tree
Showing 6 changed files with 362 additions and 8 deletions.
4 changes: 2 additions & 2 deletions 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.0
> Current stable version: 2.3.1
> Minimum Android SDK Version: API 9, Android 2.3
Expand Down Expand Up @@ -65,7 +65,7 @@ include the dependency in your project using gradle. Please change the version t

```gradle
implementation 'com.github.visenze:visenze-tracking-android:0.2.3'
implementation 'com.github.visenze:visearch-sdk-android:2.3.0'
implementation 'com.github.visenze:visearch-sdk-android:2.3.1'
```

### 1.3 Add User Permissions
Expand Down
4 changes: 2 additions & 2 deletions doc/ViSearch.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ViSearch is an API that provides accurate, reliable and scalable image search. V

The ViSearch Android SDK is an open source software to provide easy integration of ViSearch Search API with your Android mobile applications. It provides three search methods based on the ViSearch Search API - pre-indexed search, color search and upload search. For source code and references, please visit the [Github Repository](https://github.com/visenze/visearch-sdk-android).

>Current stable version: 2.3.0
>Current stable version: 2.3.1
>Minimum Android SDK Version: API 9, Android 2.3
Expand Down Expand Up @@ -81,7 +81,7 @@ include the dependency in your project using gradle. Please change the version t

```gradle
implementation 'com.github.visenze:visenze-tracking-android:0.2.3'
implementation 'com.github.visenze:visearch-sdk-android:2.3.0'
implementation 'com.github.visenze:visearch-sdk-android:2.3.1'
```

### 1.3 Add User Permissions
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 = 0
version = '2.3.0'
def versionPatch = 1
version = '2.3.1'

android {
compileSdkVersion 29
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,21 @@ public class ObjectResult extends ProductType {
@SerializedName("total")
private Integer total;

@SerializedName("id")
private String id;

@SerializedName("category")
private String category;

@SerializedName("name")
private String name;

@SerializedName("excluded_im_names")
private List<String> excludedImNames;

@SerializedName("facets")
private List<Facet> facets;

public List<ImageResult> getResult() {
return result;
}
Expand All @@ -26,4 +41,44 @@ public Integer getTotal() {
public void setTotal(Integer total) {
this.total = total;
}

public String getId() {
return id;
}

public void setId(String id) {
this.id = id;
}

public String getCategory() {
return category;
}

public void setCategory(String category) {
this.category = category;
}

public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}

public List<String> getExcludedImNames() {
return excludedImNames;
}

public void setExcludedImNames(List<String> excludedImNames) {
this.excludedImNames = excludedImNames;
}

public List<Facet> getFacets() {
return facets;
}

public void setFacets(List<Facet> facets) {
this.facets = facets;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,20 @@ public class ProductObject extends ProductType {
@SerializedName("total")
private Integer total;

@SerializedName("id")
private String id;

@SerializedName("category")
private String category;

@SerializedName("name")
private String name;

@SerializedName("excluded_pids")
private List<String> excludedPids;

@SerializedName("facets")
private List<Facet> facets;

public List<Product> getResult() {
return result;
Expand All @@ -27,4 +41,44 @@ public Integer getTotal() {
public void setTotal(Integer total) {
this.total = total;
}

public String getId() {
return id;
}

public void setId(String id) {
this.id = id;
}

public String getCategory() {
return category;
}

public void setCategory(String category) {
this.category = category;
}

public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}

public List<String> getExcludedPids() {
return excludedPids;
}

public void setExcludedPids(List<String> excludedPids) {
this.excludedPids = excludedPids;
}

public List<Facet> getFacets() {
return facets;
}

public void setFacets(List<Facet> facets) {
this.facets = facets;
}
}
Loading

0 comments on commit 00b67df

Please sign in to comment.