瀏覽代碼

Expose away state in ClientInfo

Change-Id: Iafa0b38ea0f1f4dc39d153b9f6f8646389676ed5
Depends-On: I41638fedc08dbebdb89e8ad9f872536db5d3091f
Reviewed-on: http://gerrit.dmdirc.com/1983
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Shane Mc Cormack <shane@dmdirc.com>
tags/0.7rc1
Chris Smith 13 年之前
父節點
當前提交
be72c72ba0
共有 2 個檔案被更改,包括 11 行新增6 行删除
  1. 9
    1
      src/com/dmdirc/parser/interfaces/ClientInfo.java
  2. 2
    5
      src/com/dmdirc/parser/irc/IRCClientInfo.java

+ 9
- 1
src/com/dmdirc/parser/interfaces/ClientInfo.java 查看文件

@@ -22,13 +22,14 @@
22 22
 
23 23
 package com.dmdirc.parser.interfaces;
24 24
 
25
+import com.dmdirc.parser.common.AwayState;
26
+
25 27
 import java.util.Map;
26 28
 
27 29
 /**
28 30
  * Holds information about a client, and provides various methods for
29 31
  * interacting with that client.
30 32
  *
31
- * @author chris
32 33
  * @since 0.6.3m2
33 34
  */
34 35
 public interface ClientInfo {
@@ -68,6 +69,13 @@ public interface ClientInfo {
68 69
      */
69 70
     int getChannelCount();
70 71
 
72
+    /**
73
+     * Get the away state of a user.
74
+     *
75
+     * @return AwayState of the user.
76
+     */
77
+    AwayState getAwayState();
78
+
71 79
     /**
72 80
      * Retrieves a {@link Map} which can be used to store arbitrary data
73 81
      * about the client.

+ 2
- 5
src/com/dmdirc/parser/irc/IRCClientInfo.java 查看文件

@@ -246,11 +246,8 @@ public class IRCClientInfo implements LocalClientInfo {
246 246
         }
247 247
     }
248 248
 
249
-    /**
250
-     * Get the away state of a user.
251
-     *
252
-     * @return AwayState of the user.
253
-     */
249
+    /** {@inheritDoc} */
250
+    @Override
254 251
     public AwayState getAwayState() {
255 252
         return away;
256 253
     }

Loading…
取消
儲存