Преглед изворни кода

Add the rest of the channel events

Change-Id: I9b28ce7e9d237f2dfe380f4ed5213b42d95ce3b8
Reviewed-on: http://gerrit.dmdirc.com/3480
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com>
pull/1/head
Greg Holmes пре 10 година
родитељ
комит
d7a581b6c5

+ 43
- 0
src/com/dmdirc/events/BaseChannelActionEvent.java Прегледај датотеку

@@ -0,0 +1,43 @@
1
+/*
2
+ * Copyright (c) 2006-2014 DMDirc Developers
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.events;
24
+
25
+import com.dmdirc.Channel;
26
+import com.dmdirc.parser.interfaces.ChannelClientInfo;
27
+
28
+/**
29
+ * Base class for channel action events.
30
+ */
31
+public class BaseChannelActionEvent extends BaseChannelTextEvent {
32
+
33
+    public BaseChannelActionEvent(final long timestamp, final Channel channel,
34
+            final ChannelClientInfo client, final String message) {
35
+        super(timestamp, channel, client, message);
36
+    }
37
+
38
+    public BaseChannelActionEvent(final Channel channel, final ChannelClientInfo client,
39
+            final String message) {
40
+        super(channel, client, message);
41
+    }
42
+
43
+}

+ 43
- 0
src/com/dmdirc/events/BaseChannelMessageEvent.java Прегледај датотеку

@@ -0,0 +1,43 @@
1
+/*
2
+ * Copyright (c) 2006-2014 DMDirc Developers
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.events;
24
+
25
+import com.dmdirc.Channel;
26
+import com.dmdirc.parser.interfaces.ChannelClientInfo;
27
+
28
+/**
29
+ * Base channel message event.
30
+ */
31
+public class BaseChannelMessageEvent extends BaseChannelTextEvent {
32
+
33
+    public BaseChannelMessageEvent(final long timestamp, final Channel channel,
34
+            final ChannelClientInfo client, final String message) {
35
+        super(timestamp, channel, client, message);
36
+    }
37
+
38
+    public BaseChannelMessageEvent(final Channel channel, final ChannelClientInfo client,
39
+            final String message) {
40
+        super(channel, client, message);
41
+    }
42
+
43
+}

+ 58
- 0
src/com/dmdirc/events/BaseChannelTextEvent.java Прегледај датотеку

@@ -0,0 +1,58 @@
1
+/*
2
+ * Copyright (c) 2006-2014 DMDirc Developers
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.events;
24
+
25
+import com.dmdirc.Channel;
26
+import com.dmdirc.parser.interfaces.ChannelClientInfo;
27
+
28
+/**
29
+ * Base class for channel text events.
30
+ */
31
+public class BaseChannelTextEvent extends ChannelDisplayableEvent {
32
+
33
+    private final ChannelClientInfo client;
34
+    private final String message;
35
+
36
+    public BaseChannelTextEvent(final long timestamp, final Channel channel,
37
+            final ChannelClientInfo client, final String message) {
38
+        super(timestamp, channel);
39
+        this.client = client;
40
+        this.message = message;
41
+    }
42
+
43
+    public BaseChannelTextEvent(final Channel channel,
44
+            final ChannelClientInfo client, final String message) {
45
+        super(channel);
46
+        this.client = client;
47
+        this.message = message;
48
+    }
49
+
50
+    public ChannelClientInfo getClient() {
51
+        return client;
52
+    }
53
+
54
+    public String getMessage() {
55
+        return message;
56
+    }
57
+
58
+}

+ 40
- 0
src/com/dmdirc/events/ChanelNotopicEvent.java Прегледај датотеку

@@ -0,0 +1,40 @@
1
+/*
2
+ * Copyright (c) 2006-2014 DMDirc Developers
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.events;
24
+
25
+import com.dmdirc.Channel;
26
+
27
+/**
28
+ * Fired when a channel topic is cleared.
29
+ */
30
+public class ChanelNotopicEvent extends ChannelDisplayableEvent {
31
+
32
+    public ChanelNotopicEvent(final long timestamp, final Channel channel) {
33
+        super(timestamp, channel);
34
+    }
35
+
36
+    public ChanelNotopicEvent(final Channel channel) {
37
+        super(channel);
38
+    }
39
+
40
+}

+ 43
- 0
src/com/dmdirc/events/ChannelActionEvent.java Прегледај датотеку

@@ -0,0 +1,43 @@
1
+/*
2
+ * Copyright (c) 2006-2014 DMDirc Developers
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.events;
24
+
25
+import com.dmdirc.Channel;
26
+import com.dmdirc.parser.interfaces.ChannelClientInfo;
27
+
28
+/**
29
+ * Fired when a channel action occurs.
30
+ */
31
+public class ChannelActionEvent extends BaseChannelActionEvent {
32
+
33
+    public ChannelActionEvent(final long timestamp, final Channel channel,
34
+            final ChannelClientInfo client, final String message) {
35
+        super(timestamp, channel, client, message);
36
+    }
37
+
38
+    public ChannelActionEvent(final Channel channel, final ChannelClientInfo client,
39
+            final String message) {
40
+        super(channel, client, message);
41
+    }
42
+
43
+}

+ 40
- 0
src/com/dmdirc/events/ChannelGotnamesEvent.java Прегледај датотеку

@@ -0,0 +1,40 @@
1
+/*
2
+ * Copyright (c) 2006-2014 DMDirc Developers
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.events;
24
+
25
+import com.dmdirc.Channel;
26
+
27
+/**
28
+ * Fired when a channel names event is received.
29
+ */
30
+public class ChannelGotnamesEvent extends ChannelDisplayableEvent {
31
+
32
+    public ChannelGotnamesEvent(final long timestamp, final Channel channel) {
33
+        super(timestamp, channel);
34
+    }
35
+
36
+    public ChannelGotnamesEvent(final Channel channel) {
37
+        super(channel);
38
+    }
39
+
40
+}

+ 49
- 0
src/com/dmdirc/events/ChannelGottopicEvent.java Прегледај датотеку

@@ -0,0 +1,49 @@
1
+/*
2
+ * Copyright (c) 2006-2014 DMDirc Developers
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.events;
24
+
25
+import com.dmdirc.Channel;
26
+import com.dmdirc.Topic;
27
+
28
+/**
29
+ * Fired when a channel topic is changed.
30
+ */
31
+public class ChannelGottopicEvent extends ChannelDisplayableEvent {
32
+
33
+    private final Topic topic;
34
+
35
+    public ChannelGottopicEvent(final long timestamp, final Channel channel, final Topic topic) {
36
+        super(timestamp, channel);
37
+        this.topic = topic;
38
+    }
39
+
40
+    public ChannelGottopicEvent(final Channel channel, final Topic topic) {
41
+        super(channel);
42
+        this.topic = topic;
43
+    }
44
+
45
+    public Topic getTopic() {
46
+        return topic;
47
+    }
48
+
49
+}

+ 43
- 0
src/com/dmdirc/events/ChannelMessageEvent.java Прегледај датотеку

@@ -0,0 +1,43 @@
1
+/*
2
+ * Copyright (c) 2006-2014 DMDirc Developers
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.events;
24
+
25
+import com.dmdirc.Channel;
26
+import com.dmdirc.parser.interfaces.ChannelClientInfo;
27
+
28
+/**
29
+ * Fired when a channel message occurs.
30
+ */
31
+public class ChannelMessageEvent extends BaseChannelMessageEvent {
32
+
33
+    public ChannelMessageEvent(final long timestamp, final Channel channel,
34
+            final ChannelClientInfo client, final String message) {
35
+        super(timestamp, channel, client, message);
36
+    }
37
+
38
+    public ChannelMessageEvent(final Channel channel, final ChannelClientInfo client,
39
+            final String message) {
40
+        super(channel, client, message);
41
+    }
42
+
43
+}

+ 3
- 18
src/com/dmdirc/events/ChannelNoticeEvent.java Прегледај датотеку

@@ -28,31 +28,16 @@ import com.dmdirc.parser.interfaces.ChannelClientInfo;
28 28
 /**
29 29
  * Fired when a channel mode is received.
30 30
  */
31
-public class ChannelNoticeEvent extends ChannelDisplayableEvent {
32
-
33
-    private final ChannelClientInfo client;
34
-    private final String message;
31
+public class ChannelNoticeEvent extends BaseChannelTextEvent {
35 32
 
36 33
     public ChannelNoticeEvent(final long timestamp, final Channel channel,
37 34
             final ChannelClientInfo client, final String message) {
38
-        super(timestamp, channel);
39
-        this.client = client;
40
-        this.message = message;
35
+        super(timestamp, channel, client, message);
41 36
     }
42 37
 
43 38
     public ChannelNoticeEvent(final Channel channel, final ChannelClientInfo client,
44 39
             final String message) {
45
-        super(channel);
46
-        this.client = client;
47
-        this.message = message;
48
-    }
49
-
50
-    public ChannelClientInfo getClient() {
51
-        return client;
52
-    }
53
-
54
-    public String getMessage() {
55
-        return message;
40
+        super(channel, client, message);
56 41
     }
57 42
 
58 43
 }

+ 43
- 0
src/com/dmdirc/events/ChannelSelfActionEvent.java Прегледај датотеку

@@ -0,0 +1,43 @@
1
+/*
2
+ * Copyright (c) 2006-2014 DMDirc Developers
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.events;
24
+
25
+import com.dmdirc.Channel;
26
+import com.dmdirc.parser.interfaces.ChannelClientInfo;
27
+
28
+/**
29
+ * Fired when a channel self action occurs.
30
+ */
31
+public class ChannelSelfActionEvent extends BaseChannelActionEvent {
32
+
33
+    public ChannelSelfActionEvent(final long timestamp, final Channel channel,
34
+            final ChannelClientInfo client, final String message) {
35
+        super(timestamp, channel, client, message);
36
+    }
37
+
38
+    public ChannelSelfActionEvent(final Channel channel, final ChannelClientInfo client,
39
+            final String message) {
40
+        super(channel, client, message);
41
+    }
42
+
43
+}

+ 43
- 0
src/com/dmdirc/events/ChannelSelfMessageEvent.java Прегледај датотеку

@@ -0,0 +1,43 @@
1
+/*
2
+ * Copyright (c) 2006-2014 DMDirc Developers
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.events;
24
+
25
+import com.dmdirc.Channel;
26
+import com.dmdirc.parser.interfaces.ChannelClientInfo;
27
+
28
+/**
29
+ * Fired when a channel self message occurs.
30
+ */
31
+public class ChannelSelfMessageEvent extends BaseChannelMessageEvent {
32
+
33
+    public ChannelSelfMessageEvent(final long timestamp, final Channel channel,
34
+            final ChannelClientInfo client, final String message) {
35
+        super(timestamp, channel, client, message);
36
+    }
37
+
38
+    public ChannelSelfMessageEvent(final Channel channel, final ChannelClientInfo client,
39
+            final String message) {
40
+        super(channel, client, message);
41
+    }
42
+
43
+}

Loading…
Откажи
Сачувај