瀏覽代碼

Add a who type method to GroupChat

pull/537/head
Greg Holmes 9 年之前
父節點
當前提交
59171a7c2b
共有 3 個文件被更改,包括 11 次插入1 次删除
  1. 5
    0
      src/com/dmdirc/Channel.java
  2. 1
    1
      src/com/dmdirc/events/DisplayProperty.java
  3. 5
    0
      src/com/dmdirc/interfaces/GroupChat.java

+ 5
- 0
src/com/dmdirc/Channel.java 查看文件

@@ -563,4 +563,9 @@ public class Channel extends FrameContainer implements GroupChat {
563 563
         return channelInfo.getMode(mode);
564 564
     }
565 565
 
566
+    @Override
567
+    public void requestUsersInfo() {
568
+        channelInfo.sendWho();
569
+    }
570
+
566 571
 }

+ 1
- 1
src/com/dmdirc/events/DisplayProperty.java 查看文件

@@ -35,7 +35,7 @@ public interface DisplayProperty<T> {
35 35
     /** The background colour of text relating to the event. */
36 36
     DisplayProperty<Colour> BACKGROUND_COLOUR = new DisplayPropertyImpl<>();
37 37
     /** Whether to suppress display of the event. */
38
-    DisplayProperty<Void> DO_NOT_DISPLAY = new DisplayPropertyImpl<>();
38
+    DisplayProperty<Boolean> DO_NOT_DISPLAY = new DisplayPropertyImpl<>();
39 39
 
40 40
     final class DisplayPropertyImpl<T> implements DisplayProperty<T> {}
41 41
 

+ 5
- 0
src/com/dmdirc/interfaces/GroupChat.java 查看文件

@@ -182,4 +182,9 @@ public interface GroupChat extends Chat {
182 182
      * @return The current value of the mode.
183 183
      */
184 184
     String getModeValue(final char mode);
185
+
186
+    /**
187
+     * Requests information about all the {@link User}s in this GroupChat.
188
+     */
189
+    void requestUsersInfo();
185 190
 }

Loading…
取消
儲存