コード例 #1
0
  /**
   * Adds the specified clients to this channel
   *
   * @param clients client list
   */
  public void addContacts(final Collection<ClientInfo> clients) {
    for (ClientInfo client : clients) {
      addClient(client.getNickname(), new MSNChannelClientInfo(this, client));
    }

    getParser().getCallbackManager().getCallbackType(ChannelNamesListener.class).call(this);
  }
コード例 #2
0
  /**
   * Removes the specified clients from this channel
   *
   * @param clients client list
   */
  public void removeContacts(final Collection<ClientInfo> clients) {
    for (ClientInfo client : clients) {
      removeClient(client.getNickname());
    }

    getParser().getCallbackManager().getCallbackType(ChannelNamesListener.class).call(this);
  }
コード例 #3
0
 /** {@inheritDoc} */
 @Override
 public ChannelClientInfo getChannelClient(final ClientInfo client) {
   return getClient(client.getNickname());
 }