View Javadoc

1   package net.sourceforge.queried;
2   
3   /**
4    * Server information that is returned by the server query.
5    * 
6    * @author DeadEd
7    */
8   public class ServerInfo {
9   
10      private String name = "";
11      private String ip = "";
12      private String port = "";
13      private String game = "";
14      private String gameVersion = "";
15      private String map = "";
16      private String playerCount = "";
17      private String maxPlayers = "";
18      private String team1Tickets = "";
19      private String team2Tickets = "";
20      
21      private String pbEnabled = "";
22      private String autoBalance = "";
23      private String passworded = "";
24      private String teamDamage = "";
25      private String timeLimit = "";
26      private String fragLimit = "";
27      
28      private String fullResponse = "";
29      
30      /**
31       * Get the game type.
32       * 
33       * @return the game type.
34       */
35      public String getGame() {
36          return game;
37      }
38  
39      /**
40       * Get the game version.
41       * 
42       * @return the game version.
43       */
44      public String getGameVersion() {
45          return gameVersion;
46      }
47  
48      /**
49       * Get the server IP.
50       * 
51       * @return the server IP.
52       */
53      public String getIp() {
54          return ip;
55      }
56  
57      /**
58       * Get the map currently being played on the server.
59       * 
60       * @return the map.
61       */
62      public String getMap() {
63          return map;
64      }
65  
66      /**
67       * Get the maximum number of players allowed on the server.
68       * 
69       * @return max players.
70       */
71      public String getMaxPlayers() {
72          return maxPlayers;
73      }
74  
75      /**
76       * Get the name of the server.
77       * 
78       * @return the name.
79       */
80      public String getName() {
81          return name;
82      }
83  
84      /**
85       * Get how many players are currently on the server.
86       * 
87       * @return the player count.
88       */
89      public String getPlayerCount() {
90          return playerCount;
91      }
92  
93      /**
94       * Get the port the server is using.
95       * 
96       * @return the port.
97       */
98      public String getPort() {
99          return port;
100     }
101 
102     public String getAutoBalance()	{
103     	return autoBalance;
104     }
105     
106     public String getPassworded()	{
107     	return passworded;
108     }
109 
110     public String getTeamDamage()	{
111     	return teamDamage;
112     }
113     
114     public String getTimeLimit()	{
115     	return timeLimit;
116     }
117     
118     public String getFragLimit()	{
119     	return fragLimit;
120     }
121     
122     public void setGame(String string) {
123         game = string;
124     }
125 
126     public void setGameVersion(String string) {
127         gameVersion = string;
128     }
129 
130     public void setIp(String string) {
131         ip = string;
132     }
133 
134     public void setMap(String string) {
135         map = string;
136     }
137 
138     public void setMaxPlayers(String string) {
139         maxPlayers = string;
140     }
141 
142     public void setName(String string) {
143         name = string;
144     }
145 
146     public void setPlayerCount(String string) {
147         playerCount = string;
148     }
149 
150     public void setPort(String string) {
151         port = string;
152     }
153 
154     public String getTeam1Tickets() {
155         return team1Tickets;
156     }
157 
158     public String getTeam2Tickets() {
159         return team2Tickets;
160     }
161 
162     public void setTeam1Tickets(String string) {
163         team1Tickets = string;
164     }
165 
166     public void setTeam2Tickets(String string) {
167         team2Tickets = string;
168     }
169 
170     public void setAutoBalance(String string)	{
171     	autoBalance = string;
172     }
173     
174     public void setPassworded(String string)	{
175     	passworded = string;
176     }
177 
178     public void setTeamDamage(String string)	{
179     	teamDamage = string;
180     }
181     
182     public void setTimeLimit(String string)	{
183     	timeLimit = string;
184     }
185     
186     public void setFragLimit(String string)	{
187     	fragLimit = string;
188     }
189 
190 	public String getFullResponse() {
191 		return fullResponse;
192 	}
193 
194 	public void setFullResponse(String fullResponse) {
195 		this.fullResponse = fullResponse;
196 	}
197 
198 }