添加bt与tracker交互
Change-Id: I1327c2ed89a76bee8e2abeb8cb3014b56357689a
diff --git a/src/main/java/com/pt/entity/TorrentMeta.java b/src/main/java/com/pt/entity/TorrentMeta.java
index 3823181..2c690f7 100644
--- a/src/main/java/com/pt/entity/TorrentMeta.java
+++ b/src/main/java/com/pt/entity/TorrentMeta.java
@@ -17,6 +17,7 @@
private String infoHash;
private Long size;
private LocalDateTime uploadTime;
+ private byte[] torrentData;
public Long getId() {
return id;
@@ -57,4 +58,12 @@
public void setUploadTime(LocalDateTime uploadTime) {
this.uploadTime = uploadTime;
}
+
+ public byte[] getTorrentData() {
+ return torrentData;
+ }
+
+ public void setTorrentData(byte[] torrentData) {
+ this.torrentData = torrentData;
+ }
}
\ No newline at end of file