private static CalendarEventModel convertToCalendarEventModel(String id, Event eventData) { List<EventAttendee> attendees = eventData.getAttendees(); List<String> recurrenceRulesStrings = eventData.getRecurrence(); return new CalendarEventModel( id, eventData.getDescription(), eventData.getSummary(), attendees == null ? null : attendees .stream() .map(GoogleCalendarExporter::transformToModelAttendee) .collect(Collectors.toList()), eventData.getLocation(), getEventTime(eventData.getStart()), getEventTime(eventData.getEnd()), recurrenceRulesStrings == null ? null : getRecurrenceRule(recurrenceRulesStrings)); }
model.setDescription(event.getDescription()); if (ObjectHelper.isNotEmpty(event.getAttendees())) { model.setAttendees(getAttendeesString(event.getAttendees()));
model.setDescription(event.getDescription()); if (ObjectHelper.isNotEmpty(event.getAttendees())) { model.setAttendees(getAttendeesString(event.getAttendees()));
model.setDescription(event.getDescription()); if (ObjectHelper.isNotEmpty(event.getAttendees())) { model.setAttendees(getAttendeesString(event.getAttendees()));
model.setDescription(event.getDescription()); if (ObjectHelper.isNotEmpty(event.getAttendees())) { model.setAttendees(getAttendeesString(event.getAttendees()));
result.setOrganizer(person); if (event.getAttendees() != null) { final Set<PersonDto> attendees = new HashSet<PersonDto>(); for (final EventAttendee eventAttendee : event.getAttendees()) { final PersonDto person = new PersonDto(); person.setName(eventAttendee.getDisplayName());