congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Event.setEnd
Code IndexAdd Tabnine to your IDE (free)

How to use
setEnd
method
in
com.google.api.services.calendar.model.Event

Best Java code snippets using com.google.api.services.calendar.model.Event.setEnd (Showing top 12 results out of 315)

origin: google/data-transfer-project

static Event convertToGoogleCalendarEvent(CalendarEventModel eventModel) {
 Event event = new Event()
   .setLocation(eventModel.getLocation())
   .setDescription(eventModel.getTitle())
   .setSummary(eventModel.getNotes())
   .setStart(getEventDateTime(eventModel.getStartTime()))
   .setEnd(getEventDateTime(eventModel.getEndTime()));
 if (eventModel.getAttendees() != null) {
  event.setAttendees(eventModel.getAttendees().stream()
    .map(GoogleCalendarImporter::transformToEventAttendee)
    .collect(Collectors.toList()));
 }
 return event;
}
origin: google/google-api-java-client-samples

private static Event newEvent() {
 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;
}
origin: io.syndesis.connector/connector-google-calendar

  Date endMidDate = dateFormat.parse(composedTime);
  DateTime end = new DateTime(endMidDate);
  event.setEnd(new EventDateTime().setDateTime(end));
} else {
  composedTime = endDate;
  DateTime endDateTime = new DateTime(composedTime);
  EventDateTime endEventDateTime = new EventDateTime().setDate(endDateTime);
  event.setEnd(endEventDateTime);
origin: io.syndesis.connector/connector-google-calendar

  Date endMidDate = dateFormat.parse(composedTime);
  DateTime end = new DateTime(endMidDate);
  event.setEnd(new EventDateTime().setDateTime(end));
} else {
  composedTime = endDate;
  DateTime endDateTime = new DateTime(composedTime);
  EventDateTime endEventDateTime = new EventDateTime().setDate(endDateTime);
  event.setEnd(endEventDateTime);
origin: NovaFox161/DisCal-Discord-Bot

event.setEnd(end.setTimeZone(cal.getTimeZone()));
origin: NovaFox161/DisCal-Discord-Bot

event.setEnd(end.setTimeZone(cal.getTimeZone()));
origin: NovaFox161/DisCal-Discord-Bot

event.setEnd(end.setTimeZone(cal.getTimeZone()));
origin: NovaFox161/DisCal-Discord-Bot

event.setEnd(end.setTimeZone(cal.getTimeZone()));
origin: NovaFox161/DisCal-Discord-Bot

event.setEnd(end.setTimeZone(cal.getTimeZone()));
origin: NovaFox161/DisCal-Discord-Bot

event.setEnd(end.setTimeZone(cal.getTimeZone()));
origin: synyx/urlaubsverwaltung

private static void fillEvent(Absence absence, Event event) {
  event.setSummary(absence.getEventSubject());
  EventAttendee eventAttendee = new EventAttendee();
  eventAttendee.setEmail(absence.getPerson().getEmail());
  eventAttendee.setDisplayName(absence.getPerson().getNiceName());
  event.setAttendees(Collections.singletonList(eventAttendee));
  EventDateTime startEventDateTime;
  EventDateTime endEventDateTime;
  if (absence.isAllDay()) {
    // To create an all-day event, you must use setDate() having created DateTime objects using a String
    DateFormat dateFormat = new SimpleDateFormat(DATE_PATTERN_YYYY_MM_DD);
    String startDateStr = dateFormat.format(absence.getStartDate());
    String endDateStr = dateFormat.format(absence.getEndDate());
    DateTime startDateTime = new DateTime(startDateStr);
    DateTime endDateTime = new DateTime(endDateStr);
    startEventDateTime = new EventDateTime().setDate(startDateTime);
    endEventDateTime = new EventDateTime().setDate(endDateTime);
  } else {
    DateTime dateTimeStart = new DateTime(absence.getStartDate());
    DateTime dateTimeEnd = new DateTime(absence.getEndDate());
    startEventDateTime = new EventDateTime().setDateTime(dateTimeStart);
    endEventDateTime = new EventDateTime().setDateTime(dateTimeEnd);
  }
  event.setStart(startEventDateTime);
  event.setEnd(endEventDateTime);
}
origin: gdenning/exchange-sync

event.setDescription(appointmentDto.getDescription());
event.setStart(convertToEventDateTime(appointmentDto.getStart(), appointmentDto.isAllDay(), calendarTimeZone));
event.setEnd(convertToEventDateTime(appointmentDto.getEnd(), appointmentDto.isAllDay(), calendarTimeZone));
event.setLocation(appointmentDto.getLocation());
if (syncOrganizerAndAttendees) {
com.google.api.services.calendar.modelEventsetEnd

Popular methods of Event

  • <init>
  • getStart
  • getSummary
  • getEnd
  • getId
  • setStart
  • setSummary
  • getDescription
  • getLocation
  • setDescription
  • setLocation
  • getRecurrence
  • setLocation,
  • getRecurrence,
  • getColorId,
  • setAttendees,
  • setRecurrence,
  • getAttendees,
  • getLocked,
  • setColorId,
  • setId

Popular in Java

  • Making http post requests using okhttp
  • getContentResolver (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • notifyDataSetChanged (ArrayAdapter)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now