package net.pterodactylus.xdcc.data;
+import java.time.Duration;
import java.util.Collection;
/**
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;
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;
return network;
}
+ public Duration getUptime() {
+ return uptime;
+ }
+
public String getHostname() {
return hostname;
}