1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package org.xnap.plugin.opennap.net.msg;
22
23
24
25 public class MessageStrings {
26
27
28 public static String getMessageName(int id) {
29
30 String s;
31
32
33 switch (id) {
34 case 609:
35 s = "AcceptFailedMessage";
36 break;
37
38 case 207:
39 s = "AddHotlistEntry";
40 break;
41
42 case 500:
43 s = "AltDownloadRequest";
44 break;
45
46 case 211:
47 s = "BrowseRequest";
48 break;
49
50 case 703:
51 s = "ChangeDataPort";
52 break;
53
54 case 410:
55 s = "ChannelTopic";
56 break;
57
58 case 10118:
59 s = "ClientStatistics";
60 break;
61
62 case 641:
63 s = "DirectBrowseAck";
64 break;
65
66 case 640:
67 s = "DirectBrowseRequest";
68 break;
69
70 case 10300:
71 s = "ShareFile";
72 break;
73
74 case 219:
75 s = "DownloadComplete";
76 break;
77
78 case 203:
79 s = "DownloadRequest";
80 break;
81
82 case 218:
83 s = "DownloadingFile";
84 break;
85
86 case 824:
87 s = "Emote";
88 break;
89
90 case 400:
91 s = "JoinChannel";
92 break;
93
94 case 617:
95 s = "ListChannels";
96 break;
97
98 case 830:
99 s = "ListUsersInChannel";
100 break;
101
102 case 2:
103 s = "Login";
104 break;
105
106 case 7:
107 s = "NickCheck";
108 break;
109
110 case 401:
111 s = "PartChannel";
112 break;
113
114 case 750:
115 s = "PingServer";
116 break;
117
118 case 751:
119 s = "PingUser";
120 break;
121
122 case 752:
123 s = "Pong";
124 break;
125
126
127
128
129
130 case 205:
131 s = "Private";
132 break;
133
134 case 402:
135 s = "Public";
136 break;
137
138 case 619:
139 s = "QueueLimit";
140 break;
141
142 case 303:
143 s = "RemoveHotlistEntry";
144 break;
145
146 case 200:
147 s = "SearchRequest";
148 break;
149
150 case 10115:
151 s = "ServerStatistics";
152 break;
153
154 case 214:
155 s = "ServerStats";
156 break;
157
158 case 801:
159 s = "ServerVersion";
160 break;
161
162 case 100:
163 s = "ShareFile";
164 break;
165
166 case 827:
167 s = "ShowAllChannels";
168 break;
169
170 case 110:
171 s = "UnshareAllFiles";
172 break;
173
174 case 102:
175 s = "UnshareFile";
176 break;
177
178 case 608:
179 s = "UploadAck";
180 break;
181
182 case 221:
183 s = "UploadComplete";
184 break;
185
186 case 220:
187 s = "UploadingFile";
188 break;
189
190 case 603:
191 s = "WhoisRequest";
192 break;
193
194 default:
195 s = "Unknown Message Type!";
196 }
197 return s;
198 }
199 }