Add uptime command
[xudocci.git] / src / main / java / net / pterodactylus / xdcc / data / ConnectedNetwork.java
1 package net.pterodactylus.xdcc.data;
2
3 import java.time.Duration;
4 import java.util.Collection;
5
6 /**
7  * Collections information about a connected network.
8  *
9  * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
10  */
11 public class ConnectedNetwork {
12
13         private final Network network;
14         private final String hostname;
15         private final int port;
16         private final Duration uptime;
17         private final String nickname;
18         private final Collection<String> channels;
19         private final Collection<String> forcedChannels;
20         private final int botCount;
21         private final int packCount;
22
23         public ConnectedNetwork(Network network, String hostname, int port,
24                         Duration uptime, String nickname, Collection<String> channels,
25                         Collection<String> forcedChannels, int botCount, int packCount) {
26                 this.network = network;
27                 this.hostname = hostname;
28                 this.port = port;
29                 this.uptime = uptime;
30                 this.nickname = nickname;
31                 this.channels = channels;
32                 this.forcedChannels = forcedChannels;
33                 this.botCount = botCount;
34                 this.packCount = packCount;
35         }
36
37         public Network getNetwork() {
38                 return network;
39         }
40
41         public Duration getUptime() {
42                 return uptime;
43         }
44
45         public String getHostname() {
46                 return hostname;
47         }
48
49         public int getPort() {
50                 return port;
51         }
52
53         public String getNickname() {
54                 return nickname;
55         }
56
57         public Collection<String> getChannels() {
58                 return channels;
59         }
60
61         public Collection<String> getForcedChannels() {
62                 return forcedChannels;
63         }
64
65         public int getBotCount() {
66                 return botCount;
67         }
68
69         public int getPackCount() {
70                 return packCount;
71         }
72
73 }