new
Change-Id: I09ebe0fb4cefb34a94fb26d777363231b81cc2af
diff --git a/src/main/java/com/pt/entity/Resource.java b/src/main/java/com/pt/entity/Resource.java
index 9b7da39..0ac7321 100644
--- a/src/main/java/com/pt/entity/Resource.java
+++ b/src/main/java/com/pt/entity/Resource.java
@@ -23,6 +23,7 @@
private String description;
private byte[] torrentData;
+ private String info_hash;
public Resource() {
}
@@ -78,6 +79,14 @@
this.torrentData = torrentData;
}
+ public String getInfo_hash() {
+ return info_hash;
+ }
+
+ public void setInfo_hash(String info_hash) {
+ this.info_hash = info_hash;
+ }
+
/*
* 重写toString方法,将资源信息以JSON字符串形式返回
*/