Package com.google.gdata.data.contacts

Examples of com.google.gdata.data.contacts.ContactGroupFeed


    if (parameters.getGroup() != null) {
      myQuery.setStringCustomParameter("group", parameters.getGroup());
    }
    try {
      if (parameters.isGroupFeed()) {
        ContactGroupFeed groupFeed = service.query(
            myQuery, ContactGroupFeed.class);
        for (ContactGroupEntry entry : groupFeed.getEntries()) {
          printGroup(entry);
        }
        System.err.println("Total: " + groupFeed.getEntries().size()
            + " entries found");
      } else {
        ContactFeed resultFeed = service.query(myQuery, ContactFeed.class);
        for (ContactEntry entry : resultFeed.getEntries()) {
          printContact(entry);
View Full Code Here


   * @param parameters
   */
  private void listEntries(ContactsExampleParameters parameters)
      throws IOException, ServiceException {
    if (parameters.isGroupFeed()) {
      ContactGroupFeed groupFeed =
          service.getFeed(feedUrl, ContactGroupFeed.class);   
      System.err.println(groupFeed.getTitle().getPlainText());
      for (ContactGroupEntry entry : groupFeed.getEntries()) {
        printGroup(entry);
      }
      System.err.println("Total: " + groupFeed.getEntries().size() +
          " groups found");
    } else {
      ContactFeed resultFeed = service.getFeed(feedUrl, ContactFeed.class);
      // Print the results
      System.err.println(resultFeed.getTitle().getPlainText());
View Full Code Here

TOP

Related Classes of com.google.gdata.data.contacts.ContactGroupFeed

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.