Package com.google.api.services.calendar.model

Examples of com.google.api.services.calendar.model.EventDateTime


      Event event = new Event();
      event.setSummary("New Event");
      Date startDate = new Date();
      Date endDate = new Date(startDate.getTime() + 3600000);
      DateTime start = new DateTime(startDate, TimeZone.getTimeZone("UTC"));
      event.setStart(new EventDateTime().setDateTime(start));
      DateTime end = new DateTime(endDate, TimeZone.getTimeZone("UTC"));
      event.setEnd(new EventDateTime().setDateTime(end));
      return event;
    }
View Full Code Here


  private DateTime convertToDate(final org.joda.time.DateTime date) {
    return new DateTime(true, date.getMillis(), null);
  }

  private EventDateTime convertToEventDateTime(final org.joda.time.DateTime date, final boolean isAllDay) {
    final EventDateTime result = new EventDateTime();
    if (isAllDay) {
      result.setDate(convertToDate(date));
    } else {
      result.setDateTime(convertToDateTime(date));
    }
    result.setTimeZone("UTC");
    return result;
  }
View Full Code Here

    if (location != null) {
      event.setLocation(location);
    }

    DateTime start = new DateTime(startDate, TimeZone.getTimeZone("UTC"));
    event.setStart(new EventDateTime().setDateTime(start));
    DateTime end = new DateTime(endDate, TimeZone.getTimeZone("UTC"));
    event.setEnd(new EventDateTime().setDateTime(end));

    List<EventAttendee> list = new ArrayList<EventAttendee>();
    for (Participant bean : attendeesList) {
      EventAttendee attendee = new EventAttendee();
      attendee.setDisplayName(bean.getName());
View Full Code Here

    if (location != null) {
      event.setLocation(location);
    }

    DateTime start = new DateTime(startDate, TimeZone.getTimeZone("UTC"));
    event.setStart(new EventDateTime().setDateTime(start));
    DateTime end = new DateTime(endDate, TimeZone.getTimeZone("UTC"));
    event.setEnd(new EventDateTime().setDateTime(end));

    List<EventAttendee> list = new ArrayList<EventAttendee>();
    for (Participant bean : attendeesList) {
      EventAttendee attendee = new EventAttendee();
      attendee.setDisplayName(bean.getName());
View Full Code Here

TOP

Related Classes of com.google.api.services.calendar.model.EventDateTime

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.