1 package net.pterodactylus.xdcc.data;
3 import java.time.Duration;
4 import java.util.Collection;
7 * Collections information about a connected network.
9 * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
11 public class ConnectedNetwork {
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;
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;
30 this.nickname = nickname;
31 this.channels = channels;
32 this.forcedChannels = forcedChannels;
33 this.botCount = botCount;
34 this.packCount = packCount;
37 public Network getNetwork() {
41 public Duration getUptime() {
45 public String getHostname() {
49 public int getPort() {
53 public String getNickname() {
57 public Collection<String> getChannels() {
61 public Collection<String> getForcedChannels() {
62 return forcedChannels;
65 public int getBotCount() {
69 public int getPackCount() {