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
 
24
 
25
 import com.dmdirc.parser.common.AwayState;
25
 import com.dmdirc.parser.common.AwayState;
26
 
26
 
27
+import java.util.List;
27
 import java.util.Map;
28
 import java.util.Map;
28
 
29
 
29
 /**
30
 /**
76
      */
77
      */
77
     int getChannelCount();
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
      * Get the away state of a user.
88
      * Get the away state of a user.
81
      *
89
      *

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

23
 package com.dmdirc.parser.irc;
23
 package com.dmdirc.parser.irc;
24
 
24
 
25
 import com.dmdirc.parser.common.AwayState;
25
 import com.dmdirc.parser.common.AwayState;
26
+import com.dmdirc.parser.interfaces.ChannelClientInfo;
26
 import com.dmdirc.parser.interfaces.LocalClientInfo;
27
 import com.dmdirc.parser.interfaces.LocalClientInfo;
27
 import com.dmdirc.parser.interfaces.Parser;
28
 import com.dmdirc.parser.interfaces.Parser;
28
 
29
 
372
         return clients.size();
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
         return new ArrayList<>(clients.values());
378
         return new ArrayList<>(clients.values());
382
     }
379
     }
383
 
380
 

Loading…
Cancel
Save