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)); }
if (ObjectHelper.isNotEmpty(event.getLocation())) { model.setLocation(event.getLocation());
if (ObjectHelper.isNotEmpty(event.getLocation())) { model.setLocation(event.getLocation());
if (ObjectHelper.isNotEmpty(event.getLocation())) { model.setLocation(event.getLocation());
if (ObjectHelper.isNotEmpty(event.getLocation())) { model.setLocation(event.getLocation());
jo.put("description", e.getDescription()); if (e.getLocked() != null) jo.put("location", e.getLocation()); else jo.put("location", "N/a");
jo.put("description", e.getDescription()); if (e.getLocked() != null) jo.put("location", e.getLocation()); else jo.put("location", "N/a");
jo.put("description", e.getDescription()); if (e.getLocked() != null) jo.put("location", e.getLocation()); else jo.put("location", "N/a");
public static PreEvent copyEvent(long guildId, Event event) { PreEvent pe = new PreEvent(guildId); pe.setSummary(event.getSummary()); pe.setDescription(event.getDescription()); pe.setLocation(event.getLocation()); if (event.getColorId() != null) pe.setColor(EventColor.fromNameOrHexOrID(event.getColorId())); else pe.setColor(EventColor.RED); pe.setEventData(DatabaseManager.getManager().getEventData(guildId, event.getId())); return pe; } }
description = e.getDescription(); if (e.getLocation() != null) location = e.getLocation();
result.setAllDay(event.getEnd().getDateTime().isDateOnly()); result.setLocation(event.getLocation()); if (event.getOrganizer() != null) { final PersonDto person = new PersonDto();