Source code: sd/SD_UserAdd.java
1 //: SD_UserAdd.java
2 /* -------------------- JavaDoc Information ----------------------*/
3 /**
4 * Replace information on this file with your file's information.
5 * @author Joseph Monti
6 * @author countjoe@users.sourceforge.net
7 * @author http://www.42llamas.com/LlamaChat/
8 * @version 0.4
9 */
10 /* ---------------------- File Information ---------------------- */
11 /**
12 *<pre>
13 +-----------------------------------------------------------------+
14 | |
15 | Copyright (C) 2002 Joseph Monti, LlamaChat |
16 | countjoe@users.sourceforge.net |
17 | |
18 | This program is free software; you can redistribute it and/or |
19 | modify it under the terms of the GNU General Public License |
20 | as published by the Free Software Foundation; either version 2 |
21 | of the License, or (at your option) any later version. |
22 | |
23 | This program is distributed in the hope that it will be useful, |
24 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
25 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
26 | GNU General Public License for more details. |
27 | |
28 | A copy of the GNU General Public License may be found in the |
29 | installation directory named "GNUGPL.txt" |
30 | |
31 +-----------------------------------------------------------------+
32 *</pre>
33 */
34
35 package sd;
36
37 import java.io.Serializable;
38
39 public class SD_UserAdd implements SocketData, Serializable {
40 private String username;
41
42 public SD_UserAdd(String un) {
43 username = un;
44 }
45
46 public void performAction(SocketConnection sc) {
47 sc.userAdd(username);
48 }
49 }