Add uptime command
[xudocci.git] / src / main / java / net / pterodactylus / xdcc / data / ConnectedNetwork.java
index 183f1f3..49e2d5b 100644 (file)
@@ -1,5 +1,6 @@
 package net.pterodactylus.xdcc.data;
 
+import java.time.Duration;
 import java.util.Collection;
 
 /**
@@ -12,6 +13,7 @@ public class ConnectedNetwork {
        private final Network network;
        private final String hostname;
        private final int port;
+       private final Duration uptime;
        private final String nickname;
        private final Collection<String> channels;
        private final Collection<String> forcedChannels;
@@ -19,11 +21,12 @@ public class ConnectedNetwork {
        private final int packCount;
 
        public ConnectedNetwork(Network network, String hostname, int port,
-                       String nickname, Collection<String> channels,
+                       Duration uptime, String nickname, Collection<String> channels,
                        Collection<String> forcedChannels, int botCount, int packCount) {
                this.network = network;
                this.hostname = hostname;
                this.port = port;
+               this.uptime = uptime;
                this.nickname = nickname;
                this.channels = channels;
                this.forcedChannels = forcedChannels;
@@ -35,6 +38,10 @@ public class ConnectedNetwork {
                return network;
        }
 
+       public Duration getUptime() {
+               return uptime;
+       }
+
        public String getHostname() {
                return hostname;
        }