]> jfr.im git - irc/Ozafy/borknet_p10_irc_services.git/blob - core/User.java
Readme
[irc/Ozafy/borknet_p10_irc_services.git] / core / User.java
1 /**
2 #
3 # BorkNet Services Core
4 #
5
6 #
7 # Copyright (C) 2004 Ozafy - ozafy@borknet.org - http://www.borknet.org
8 #
9 # This program is free software; you can redistribute it and/or
10 # modify it under the terms of the GNU General Public License
11 # as published by the Free Software Foundation; either version 2
12 # of the License, or (at your option) any later version.
13 #
14 # This program is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
18 #
19 # You should have received a copy of the GNU General Public License
20 # along with this program; if not, write to the Free Software
21 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 #
23 */
24 package borknet_services.core;
25 import borknet_services.core.*;
26 import java.util.*;
27
28 public class User
29 {
30 private String numeric;
31 private String nick;
32 private String ident;
33 private String host;
34 private String modes;
35 private String auth;
36 private boolean operator;
37 private String server;
38 private String ip;
39 private String fakehost;
40 private ArrayList<String> channels = new ArrayList<String>();
41
42 public User(String numeric)
43 {
44 this.numeric = numeric;
45 }
46
47 public String getNumeric()
48 {
49 return numeric;
50 }
51
52 public void setNumeric(String s)
53 {
54 numeric = s;
55 }
56
57 public String getNick()
58 {
59 return nick;
60 }
61
62 public void setNick(String s)
63 {
64 nick = s;
65 }
66
67 public String getIdent()
68 {
69 return ident;
70 }
71
72 public void setIdent(String s)
73 {
74 ident = s;
75 }
76
77 public String getHost()
78 {
79 return host;
80 }
81
82 public void setHost(String s)
83 {
84 host = s;
85 }
86
87 public String getModes()
88 {
89 return modes;
90 }
91
92 public void setModes(String s)
93 {
94 modes = s;
95 }
96
97 public String getAuth()
98 {
99 return auth;
100 }
101
102 public void setAuth(String s)
103 {
104 auth = s;
105 }
106
107 public boolean getOperator()
108 {
109 return operator;
110 }
111
112 public void setOperator(boolean s)
113 {
114 operator = s;
115 }
116
117 public String getServer()
118 {
119 return server;
120 }
121
122 public void setServer(String s)
123 {
124 server = s;
125 }
126
127 public String getIp()
128 {
129 return ip;
130 }
131
132 public void setIp(String s)
133 {
134 ip = s;
135 }
136
137 public String getFakehost()
138 {
139 return fakehost;
140 }
141
142 public void setFakehost(String s)
143 {
144 fakehost = s;
145 }
146
147 public void joinChannel(String channel)
148 {
149 channels.add(channel.toLowerCase());
150 }
151
152 public void partChannel(String channel)
153 {
154 channels.remove(channel.toLowerCase());
155 }
156
157 public ArrayList<String> getChannels()
158 {
159 return channels;
160 }
161 }