Skip to content

Commit f471958

Browse files
authored
Merge pull request #99 from visenze/feature/box_type
[API-9548] add box_type in response
2 parents 9af4092 + 751d879 commit f471958

3 files changed

Lines changed: 28 additions & 1 deletion

File tree

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<groupId>com.visenze</groupId>
66
<artifactId>visearch-java-sdk</artifactId>
77
<name>ViSearch Java SDK</name>
8-
<version>1.13.5</version>
8+
<version>1.13.6</version>
99
<packaging>jar</packaging>
1010
<url>https://github.com/visenze/visearch-sdk-java</url>
1111
<description>ViSearch Java SDK</description>

src/main/java/com/visenze/productsearch/response/ObjectProductResult.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ public class ObjectProductResult {
2929
@JsonProperty("box")
3030
private List<Integer> box;
3131

32+
@JsonProperty("box_type")
33+
private String boxType;
34+
3235
@JsonProperty("attributes")
3336
public Map<String, String> attributes;
3437

@@ -63,6 +66,18 @@ public class ObjectProductResult {
6366

6467
public List<Integer> getBox() { return box; }
6568

69+
public void setBox(List<Integer> box) {
70+
this.box = box;
71+
}
72+
73+
public String getBoxType() {
74+
return boxType;
75+
}
76+
77+
public void setBoxType(String boxType) {
78+
this.boxType = boxType;
79+
}
80+
6681
public Map<String,String> getAttributes() { return attributes; }
6782

6883
public Integer getTotal() { return total; }

src/main/java/com/visenze/visearch/ObjectSearchResult.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ public class ObjectSearchResult {
1616
private Float score;
1717
private Float rerankScore;
1818
private List<Integer> box;
19+
20+
@JsonProperty("box_type")
21+
private String boxType;
22+
1923
private Map<String, List<String>> attributes;
2024
private Map<String, List<String>> attributesList;
2125
private int total;
@@ -48,6 +52,10 @@ public List<Integer> getBox() {
4852
return box;
4953
}
5054

55+
public String getBoxType() {
56+
return boxType;
57+
}
58+
5159
public Map<String, List<String>> getAttributes() {
5260
return attributes;
5361
}
@@ -84,6 +92,10 @@ public void setBox(List<Integer> box) {
8492
this.box = box;
8593
}
8694

95+
public void setBoxType(String boxType) {
96+
this.boxType = boxType;
97+
}
98+
8799
public void setAttributes(Map<String, List<String>> attributes) {
88100
this.attributes = attributes;
89101
}

0 commit comments

Comments
 (0)