Ejemplo n.º 1
0
 /**
  * Finds the <tt>ChatRoomWrapper</tt> instance associated with the chat room.
  *
  * @param chatRoomID the id of the chat room.
  * @param pps the provider of the chat room.
  * @return the <tt>ChatRoomWrapper</tt> instance.
  */
 public ChatRoomWrapper findChatRoomWrapperFromChatRoomID(
     String chatRoomID, ProtocolProviderService pps) {
   return chatRoomList.findChatRoomWrapperFromChatRoomID(chatRoomID, pps);
 }
Ejemplo n.º 2
0
 /**
  * Finds the <tt>ChatRoomWrapper</tt> instance associated with the source contact.
  *
  * @param contact the source contact.
  * @return the <tt>ChatRoomWrapper</tt> instance.
  */
 public ChatRoomWrapper findChatRoomWrapperFromSourceContact(SourceContact contact) {
   if (!(contact instanceof ChatRoomSourceContact)) return null;
   ChatRoomSourceContact chatRoomContact = (ChatRoomSourceContact) contact;
   return chatRoomList.findChatRoomWrapperFromChatRoomID(
       chatRoomContact.getChatRoomID(), chatRoomContact.getProvider());
 }