1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package org.xnap.plugin.gift.net.event;
21
22 /***
23 * OnlineEvent
24 *
25 * @author <a href="mailto:tvanlessen@taval.de">Tammo van Lessen</a>
26 * @version CVS $Id: OnlineEvent.java,v 1.1 2003/10/05 00:20:32 squig Exp $
27 */
28 public class OnlineEvent extends Event {
29
30
31 private String server;
32 private String version;
33
34
35
36 /***
37 * Constructor for OnlineEvent.
38 *
39 * @param server
40 * @param version
41 */
42 public OnlineEvent(String server, String version) {
43 super();
44 this.server = server;
45 this.version = version;
46 }
47
48
49
50 /***
51 * Returns the server.
52 *
53 * @return String
54 */
55 public String getServer() {
56 return server;
57 }
58
59 /***
60 * Returns the version.
61 *
62 * @return String
63 */
64 public String getVersion() {
65 return version;
66 }
67
68 /***
69 * @see java.lang.Object#toString()
70 */
71 public String toString() {
72 return server + "-" + version + "@OnlineEvent";
73 }
74 }