|
@@ -13,17 +13,20 @@ public class Item {
|
|
|
private List<String> categories;
|
|
private List<String> categories;
|
|
|
private String timestamp;
|
|
private String timestamp;
|
|
|
private String comment;
|
|
private String comment;
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
+ private Integer score;
|
|
|
|
|
+
|
|
|
public Item() {
|
|
public Item() {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public Item(String itemId, Boolean isHidden, List<String> labels, List<String> categories, String timestamp, String comment) {
|
|
|
|
|
|
|
+ public Item(String itemId, Boolean isHidden, List<String> labels, List<String> categories, String timestamp, String comment,Integer score) {
|
|
|
this.itemId = itemId;
|
|
this.itemId = itemId;
|
|
|
this.isHidden = isHidden;
|
|
this.isHidden = isHidden;
|
|
|
this.labels = labels;
|
|
this.labels = labels;
|
|
|
this.categories = categories;
|
|
this.categories = categories;
|
|
|
this.timestamp = timestamp;
|
|
this.timestamp = timestamp;
|
|
|
this.comment = comment;
|
|
this.comment = comment;
|
|
|
|
|
+ this.score = score;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@JsonProperty("ItemId")
|
|
@JsonProperty("ItemId")
|
|
@@ -56,16 +59,27 @@ public class Item {
|
|
|
return comment;
|
|
return comment;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @Override
|
|
|
|
|
|
|
+ @JsonProperty("Score")
|
|
|
|
|
+ public Integer getScore() {
|
|
|
|
|
+ return score;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @Override
|
|
|
public boolean equals(Object o) {
|
|
public boolean equals(Object o) {
|
|
|
if (this == o) return true;
|
|
if (this == o) return true;
|
|
|
if (o == null || getClass() != o.getClass()) return false;
|
|
if (o == null || getClass() != o.getClass()) return false;
|
|
|
Item item = (Item) o;
|
|
Item item = (Item) o;
|
|
|
- return Objects.equals(itemId, item.itemId) && Objects.equals(isHidden, item.isHidden) && Objects.equals(labels, item.labels) && Objects.equals(categories, item.categories) && Objects.equals(timestamp, item.timestamp) && Objects.equals(comment, item.comment);
|
|
|
|
|
|
|
+ return Objects.equals(itemId, item.itemId)
|
|
|
|
|
+ && Objects.equals(isHidden, item.isHidden)
|
|
|
|
|
+ && Objects.equals(labels, item.labels)
|
|
|
|
|
+ && Objects.equals(categories, item.categories)
|
|
|
|
|
+ && Objects.equals(timestamp, item.timestamp)
|
|
|
|
|
+ && Objects.equals(comment, item.comment)
|
|
|
|
|
+ && Objects.equals(score, item.score);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
public int hashCode() {
|
|
public int hashCode() {
|
|
|
- return Objects.hash(itemId, isHidden, labels, categories, timestamp, comment);
|
|
|
|
|
|
|
+ return Objects.hash(itemId, isHidden, labels, categories, timestamp, comment, score);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|