Browse Source

Expose getChannelClients in ClientInfo

pull/61/head
Greg Holmes 9 years ago
parent
commit
d3c1f74028

+ 8
- 0
common/src/com/dmdirc/parser/interfaces/ClientInfo.java View File

@@ -24,6 +24,7 @@ package com.dmdirc.parser.interfaces;
24 24
 
25 25
 import com.dmdirc.parser.common.AwayState;
26 26
 
27
+import java.util.List;
27 28
 import java.util.Map;
28 29
 
29 30
 /**
@@ -76,6 +77,13 @@ public interface ClientInfo {
76 77
      */
77 78
     int getChannelCount();
78 79
 
80
+    /**
81
+     * Get a list of channelClients that point to this object.
82
+     *
83
+     * @return int with the count of known channels
84
+     */
85
+    public List<ChannelClientInfo> getChannelClients();
86
+
79 87
     /**
80 88
      * Get the away state of a user.
81 89
      *

+ 3
- 6
irc/src/com/dmdirc/parser/irc/IRCClientInfo.java View File

@@ -23,6 +23,7 @@
23 23
 package com.dmdirc.parser.irc;
24 24
 
25 25
 import com.dmdirc.parser.common.AwayState;
26
+import com.dmdirc.parser.interfaces.ChannelClientInfo;
26 27
 import com.dmdirc.parser.interfaces.LocalClientInfo;
27 28
 import com.dmdirc.parser.interfaces.Parser;
28 29
 
@@ -372,12 +373,8 @@ public class IRCClientInfo implements LocalClientInfo {
372 373
         return clients.size();
373 374
     }
374 375
 
375
-    /**
376
-     * Get a list of channelClients that point to this object.
377
-     *
378
-     * @return int with the count of known channels
379
-     */
380
-    public List<IRCChannelClientInfo> getChannelClients() {
376
+    @Override
377
+    public List<ChannelClientInfo> getChannelClients() {
381 378
         return new ArrayList<>(clients.values());
382 379
     }
383 380
 

Loading…
Cancel
Save