Package com.huangzhimin.contacts

Examples of com.huangzhimin.contacts.Contact


                                if (node.getAttributes().getNamedItem("class") != null &&
                                        node.getAttributes().getNamedItem("class").getNodeValue().equals("nobottom")) {
                                    String username = node.getChildNodes().item(1).getTextContent().trim();
                                    i++;
                                    String email = nodes.item(i).getChildNodes().item(1).getChildNodes().item(1).getTextContent().trim();
                                    contacts.add(new Contact(username, email));
        }
      }
      return contacts;
    } catch (Exception e) {
      throw new ContactsException("Yahoo protocol has changed", e);
View Full Code Here


      List<Contact> contacts = new ArrayList<Contact>(jsonContacts
          .length());
      for (int i = 0; i < jsonContacts.length(); i++) {
        jsonObj = jsonContacts.getJSONObject(i);
        if (jsonObj.has("nickname") && jsonObj.has("email")) {
          contacts.add(new Contact(jsonObj.getString("nickname"), jsonObj
              .getString("email")));
        }

      }
      return contacts;
View Full Code Here

TOP

Related Classes of com.huangzhimin.contacts.Contact

Copyright © 2018 www.massapicom. 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.