forked from TheHolyWaffle/TeamSpeak-3-Java-API
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTS3Config.java
86 lines (68 loc) · 1.88 KB
/
TS3Config.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
/*******************************************************************************
* Copyright (c) 2014 Bert De Geyter (https://github.com/TheHolyWaffle).
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Public License v3.0
* which accompanies this distribution, and is available at
* http://www.gnu.org/licenses/gpl.html
*
* Contributors:
* Bert De Geyter (https://github.com/TheHolyWaffle)
******************************************************************************/
package com.github.theholywaffle.teamspeak3;
import java.util.logging.Level;
import com.github.theholywaffle.teamspeak3.TS3Query.FloodRate;
public class TS3Config {
private String host = null;
private int queryPort = 10011;
private FloodRate floodRate = FloodRate.DEFAULT;
private Level level = Level.WARNING;
private String username = null;
private String password = null;
private boolean debugToFile = false;
public TS3Config setHost(String host) {
this.host = host;
return this;
}
String getHost() {
return host;
}
public TS3Config setQueryPort(int queryPort) {
this.queryPort = queryPort;
return this;
}
int getQueryPort() {
return queryPort;
}
public TS3Config setFloodRate(FloodRate rate) {
this.floodRate = rate;
return this;
}
FloodRate getFloodRate() {
return floodRate;
}
public TS3Config setDebugLevel(Level level) {
this.level = level;
return this;
}
Level getDebugLevel() {
return level;
}
public TS3Config setLoginCredentials(String username, String password) {
this.username = username;
this.password = password;
return this;
}
String getUsername() {
return username;
}
String getPassword() {
return password;
}
public TS3Config setDebugToFile(boolean debugToFile) {
this.debugToFile = debugToFile;
return this;
}
boolean getDebugToFile() {
return debugToFile;
}
}