Package com.google.gdata.client.calendar

Examples of com.google.gdata.client.calendar.CalendarQuery


      CalendarService myService = new CalendarService("openHAB");
            if (!StringUtils.isBlank(username) && !StringUtils.isBlank(password)) {
        myService.setUserCredentials(username, password);
            }
               
      CalendarQuery myQuery = new CalendarQuery(feedUrl);
      DateTime start = DateTime.now();
      DateTime end   = new DateTime(DateTime.now().getValue() + (2 * refreshInterval));
     
      myQuery.setMinimumStartTime(start);
      myQuery.setMaximumStartTime(end);
     
      // add the fulltext filter if it has been configured
      if (StringUtils.isNotBlank(filter)) {
        myQuery.setFullTextQuery(filter);
      }
 
      logger.debug("Downloading calendar feed for time interval: {} to  {} ", start, end);
      CalendarEventFeed feed = myService.getFeed(myQuery, CalendarEventFeed.class);
      if (feed != null) {
View Full Code Here

TOP

Related Classes of com.google.gdata.client.calendar.CalendarQuery

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.