Codota Logo
Event.setEnd
Code IndexAdd Codota 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)

  • Common ways to obtain Event
private void myMethod () {
Event e =
  • Codota Iconnew Event()
  • Smart code suggestions by Codota
}
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

  • Creating JSON documents from java classes using gson
  • getSupportFragmentManager (FragmentActivity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • TreeSet (java.util)
    A NavigableSet implementation based on a TreeMap. The elements are ordered using their Comparable, o
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • JTextField (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now