|
@@ -27,6 +27,7 @@ import com.dmdirc.events.DisplayPropertyMap;
|
27
|
27
|
import com.dmdirc.interfaces.GroupChat;
|
28
|
28
|
import com.dmdirc.interfaces.GroupChatUser;
|
29
|
29
|
import com.dmdirc.interfaces.User;
|
|
30
|
+import com.dmdirc.parser.interfaces.ChannelClientInfo;
|
30
|
31
|
|
31
|
32
|
import java.util.Optional;
|
32
|
33
|
|
|
@@ -37,11 +38,14 @@ public class ChannelClient implements GroupChatUser {
|
37
|
38
|
|
38
|
39
|
private final User user;
|
39
|
40
|
private final GroupChat groupChat;
|
|
41
|
+ private final ChannelClientInfo clientInfo;
|
40
|
42
|
private final DisplayPropertyMap properties;
|
41
|
43
|
|
42
|
|
- public ChannelClient(final User user, final GroupChat groupChat) {
|
|
44
|
+ public ChannelClient(final User user, final GroupChat groupChat,
|
|
45
|
+ final ChannelClientInfo clientInfo) {
|
43
|
46
|
this.user = user;
|
44
|
47
|
this.groupChat = groupChat;
|
|
48
|
+ this.clientInfo = clientInfo;
|
45
|
49
|
properties = new DisplayPropertyMap();
|
46
|
50
|
}
|
47
|
51
|
|
|
@@ -57,14 +61,12 @@ public class ChannelClient implements GroupChatUser {
|
57
|
61
|
|
58
|
62
|
@Override
|
59
|
63
|
public String getImportantMode() {
|
60
|
|
- return "";
|
61
|
|
- // TODO: Implement this.
|
|
64
|
+ return clientInfo.getImportantModePrefix();
|
62
|
65
|
}
|
63
|
66
|
|
64
|
67
|
@Override
|
65
|
68
|
public String getAllModes() {
|
66
|
|
- // TODO: Implement this.
|
67
|
|
- return "";
|
|
69
|
+ return clientInfo.getAllModes();
|
68
|
70
|
}
|
69
|
71
|
|
70
|
72
|
@Override
|
|
@@ -87,6 +89,10 @@ public class ChannelClient implements GroupChatUser {
|
87
|
89
|
return getUser().getRealname();
|
88
|
90
|
}
|
89
|
91
|
|
|
92
|
+ public ChannelClientInfo getClientInfo() {
|
|
93
|
+ return clientInfo;
|
|
94
|
+ }
|
|
95
|
+
|
90
|
96
|
@Override
|
91
|
97
|
public <T> void setDisplayProperty(final DisplayProperty<T> property, final T value) {
|
92
|
98
|
properties.put(property, value);
|