刘嘉昕 | 88d3f7d | 2025-06-04 11:54:09 +0800 | [diff] [blame] | 1 | package com.pt5.pthouduan.entity; |
| 2 | |
| 3 | |
| 4 | import java.sql.Timestamp; |
| 5 | import java.time.LocalDateTime; |
| 6 | |
| 7 | public class PeerInfo { |
| 8 | private String username; |
| 9 | private long uploaded; |
| 10 | private long uploadSpeed; |
| 11 | private long downloaded; |
| 12 | private long downloadSpeed; |
| 13 | private String lastEvent; |
| 14 | private Timestamp lastUpdated; |
| 15 | private Timestamp createdAt; |
| 16 | private LocalDateTime completedtime; |
| 17 | private String client; |
| 18 | private int port; |
| 19 | |
| 20 | // Getters and Setters |
| 21 | public int getPort() { |
| 22 | return port; |
| 23 | } |
| 24 | |
| 25 | public void setPort(int port) { |
| 26 | this.port = port; |
| 27 | } |
| 28 | |
| 29 | public String getUsername() { |
| 30 | return username; |
| 31 | } |
| 32 | |
| 33 | public void setUsername(String username) { |
| 34 | this.username = username; |
| 35 | } |
| 36 | |
| 37 | public long getUploaded() { |
| 38 | return uploaded; |
| 39 | } |
| 40 | |
| 41 | public void setUploaded(long uploaded) { |
| 42 | this.uploaded = uploaded; |
| 43 | } |
| 44 | |
| 45 | public long getUploadSpeed() { |
| 46 | return uploadSpeed; |
| 47 | } |
| 48 | |
| 49 | public void setUploadSpeed(long uploadSpeed) { |
| 50 | this.uploadSpeed = uploadSpeed; |
| 51 | } |
| 52 | |
| 53 | public long getDownloaded() { |
| 54 | return downloaded; |
| 55 | } |
| 56 | |
| 57 | public void setDownloaded(long downloaded) { |
| 58 | this.downloaded = downloaded; |
| 59 | } |
| 60 | |
| 61 | public long getDownloadSpeed() { |
| 62 | return downloadSpeed; |
| 63 | } |
| 64 | |
| 65 | public void setDownloadSpeed(long downloadSpeed) { |
| 66 | this.downloadSpeed = downloadSpeed; |
| 67 | } |
| 68 | |
| 69 | public String getLastEvent() { |
| 70 | return lastEvent; |
| 71 | } |
| 72 | |
| 73 | public void setLastEvent(String lastEvent) { |
| 74 | this.lastEvent = lastEvent; |
| 75 | } |
| 76 | |
| 77 | public Timestamp getLastUpdated() { |
| 78 | return lastUpdated; |
| 79 | } |
| 80 | |
| 81 | public void setLastUpdated(Timestamp lastUpdated) { |
| 82 | this.lastUpdated = lastUpdated; |
| 83 | } |
| 84 | |
| 85 | public Timestamp getCreatedAt() { |
| 86 | return createdAt; |
| 87 | } |
| 88 | |
| 89 | public void setCreatedAt(Timestamp createdAt) { |
| 90 | this.createdAt = createdAt; |
| 91 | } |
| 92 | |
| 93 | public LocalDateTime getCompleted_time() { |
| 94 | return completedtime; |
| 95 | } |
| 96 | |
| 97 | public void setCompleted_time(LocalDateTime completed_time) { |
| 98 | this.completedtime = completed_time; |
| 99 | } |
| 100 | |
| 101 | public String getClient() { |
| 102 | return client; |
| 103 | } |
| 104 | |
| 105 | public void setClient(String client) { |
| 106 | this.client = client; |
| 107 | } |
| 108 | } |
| 109 | |