Skip to content

Commit

Permalink
support STI response
Browse files Browse the repository at this point in the history
  • Loading branch information
thehung111 committed Apr 12, 2023
1 parent fabc98d commit 48e3bf8
Show file tree
Hide file tree
Showing 3 changed files with 356 additions and 2 deletions.
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 48e3bf8

Please sign in to comment.