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.setTitle(event.getSummary()); if (ObjectHelper.isNotEmpty(event.getDescription())) { model.setDescription(event.getDescription());
model.setTitle(event.getSummary()); if (ObjectHelper.isNotEmpty(event.getDescription())) { model.setDescription(event.getDescription());
model.setTitle(event.getSummary()); if (ObjectHelper.isNotEmpty(event.getDescription())) { model.setDescription(event.getDescription());
model.setTitle(event.getSummary()); if (ObjectHelper.isNotEmpty(event.getDescription())) { model.setDescription(event.getDescription());
jo.put("timezone", tz); jo.put("summary", e.getSummary()); jo.put("description", e.getDescription()); if (e.getLocked() != null) jo.put("location", e.getLocation());
jo.put("timezone", tz); jo.put("summary", e.getSummary()); jo.put("description", e.getDescription()); if (e.getLocked() != null) jo.put("location", e.getLocation());
jo.put("timezone", tz); jo.put("summary", e.getSummary()); jo.put("description", e.getDescription()); if (e.getLocked() != null) jo.put("location", e.getLocation());
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; } }
summary = e.getSummary(); if (e.getDescription() != null) description = e.getDescription();
result.setDescription(event.getDescription()); result.setStart(convertToJodaDateTime(event.getStart())); result.setEnd(convertToJodaDateTime(event.getEnd()));