Examples of MutableGroup


Examples of net.kano.joustsim.oscar.oscar.service.ssi.MutableGroup

      List groupsList = buddyList.getGroups();
      groupNames = new String[groupsList.size()];
      int groupNum = 0;
      Iterator groupsIter = groupsList.iterator();
      while (groupsIter.hasNext()) {
        MutableGroup group = (MutableGroup) groupsIter.next();
        groupNames[groupNum++] = group.getName();
      }
    }
    else {
      groupNames = new String[0];
    }
View Full Code Here

Examples of net.kano.joustsim.oscar.oscar.service.ssi.MutableGroup

      SsiService ssiService = _conn.getSsiService();
      MutableBuddyList buddyList = ssiService.getBuddyList();
      List groupsList = buddyList.getGroups();
      Iterator groupsIter = groupsList.iterator();
      while (groupsIter.hasNext()) {
        MutableGroup group = (MutableGroup) groupsIter.next();
        if (groupName.equals(group.getName())) {
          List buddies = group.getBuddiesCopy();
          buddyNames = new String[buddies.size()];
          int buddyNum = 0;
          Iterator buddiesIter = buddies.iterator();
          while (buddiesIter.hasNext()) {
            MutableBuddy buddy = (MutableBuddy) buddiesIter.next();
View Full Code Here

Examples of net.kano.joustsim.oscar.oscar.service.ssi.MutableGroup

      SsiService ssiService = _conn.getSsiService();
      MutableBuddyList buddyList = ssiService.getBuddyList();
      List groups = buddyList.getGroups();
      Iterator groupsIter = groups.iterator();
      while (groupsIter.hasNext()) {
        MutableGroup group = (MutableGroup) groupsIter.next();
        Buddy matchingBuddy = null;
        Iterator buddiesIter = group.getBuddiesCopy().iterator();
        while (matchingBuddy == null && buddiesIter.hasNext()) {
          Buddy buddy = (Buddy) buddiesIter.next();
          if (buddy.getScreenname().equals(buddyScreenName)) {
            matchingBuddy = buddy;
          }
        }
        if (matchingBuddy != null) {
          group.deleteBuddy(matchingBuddy);
        }
      }
    }
  }
View Full Code Here

Examples of net.kano.joustsim.oscar.oscar.service.ssi.MutableGroup

        List groups = buddyList.getGroups();
        if (groups.size() == 0) {
          buddyList.addGroup("Buddies");
          groups = buddyList.getGroups();
        }
        MutableGroup group = (MutableGroup) groups.get(0);
        group.addBuddy(buddyName);

        for (int attempt = 0; attempt < 10 && !buddyInfo.isOnBuddyList(); attempt++) {
          try {
            Thread.sleep(100);
          }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.