com.google.api.services.calendar.model.Event.getEnd()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(5.8k)|赞(0)|评价(0)|浏览(187)

本文整理了Java中com.google.api.services.calendar.model.Event.getEnd()方法的一些代码示例,展示了Event.getEnd()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Event.getEnd()方法的具体详情如下:
包路径:com.google.api.services.calendar.model.Event
类名称:Event
方法名:getEnd

Event.getEnd介绍

暂无

代码示例

代码示例来源:origin: google/data-transfer-project

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));
}

代码示例来源:origin: google/google-api-java-client-samples

static void display(Event event) {
  if (event.getStart() != null) {
   System.out.println("Start Time: " + event.getStart());
  }
  if (event.getEnd() != null) {
   System.out.println("End Time: " + event.getEnd());
  }
 }
}

代码示例来源:origin: io.syndesis.connector/connector-google-calendar

if (ObjectHelper.isNotEmpty(event.getEnd())) {
  if (event.getEnd().getDateTime() != null) {
    model.setEndDate(dateFormat.format(new Date(event.getEnd().getDateTime().getValue())));
    model.setEndTime(timeFormat.format(new Date(event.getEnd().getDateTime().getValue())));
  } else {
    model.setEndDate(dateFormat.format(new Date(event.getEnd().getDate().getValue())));

代码示例来源:origin: io.syndesis.connector/connector-google-calendar

if (ObjectHelper.isNotEmpty(event.getEnd())) {
  if (event.getEnd().getDateTime() != null) {
    model.setEndDate(dateFormat.format(new Date(event.getEnd().getDateTime().getValue())));
    model.setEndTime(timeFormat.format(new Date(event.getEnd().getDateTime().getValue())));
  } else {
    model.setEndDate(dateFormat.format(new Date(event.getEnd().getDate().getValue())));

代码示例来源:origin: io.syndesis.connector/connector-google-calendar

if (ObjectHelper.isNotEmpty(event.getEnd())) {
  if (event.getEnd().getDateTime() != null) {
    model.setEndDate(dateFormat.format(new Date(event.getEnd().getDateTime().getValue())));
    model.setEndTime(timeFormat.format(new Date(event.getEnd().getDateTime().getValue())));
  } else {
    model.setEndDate(dateFormat.format(new Date(event.getEnd().getDate().getValue())));

代码示例来源:origin: io.syndesis.connector/connector-google-calendar

if (ObjectHelper.isNotEmpty(event.getEnd())) {
  if (event.getEnd().getDateTime() != null) {
    model.setEndDate(dateFormat.format(new Date(event.getEnd().getDateTime().getValue())));
    model.setEndTime(timeFormat.format(new Date(event.getEnd().getDateTime().getValue())));
  } else {
    model.setEndDate(dateFormat.format(new Date(event.getEnd().getDate().getValue())));

代码示例来源:origin: gdenning/exchange-sync

for (final Event event : feed.getItems()) {
  final org.joda.time.DateTime eventStartDate = convertToJodaDateTime(event.getStart());
  final org.joda.time.DateTime eventEndDate = coalesce(convertToJodaDateTime(event.getEnd()),
      convertToJodaDateTime(event.getStart()));
  if (eventStartDate != null && eventEndDate != null

代码示例来源:origin: NovaFox161/DisCal-Discord-Bot

jo.put("id", e.getId());
jo.put("epochStart", e.getStart().getDateTime().getValue());
jo.put("epochEnd", e.getEnd().getDateTime().getValue());

代码示例来源:origin: NovaFox161/DisCal-Discord-Bot

ed.setEventEnd(event.getEnd().getDateTime().getValue());

代码示例来源:origin: NovaFox161/DisCal-Discord-Bot

ed.setImageLink(body.getString("image"));
ed.setEventId(eventId);
ed.setEventEnd(event.getEnd().getDateTime().getValue());

代码示例来源:origin: NovaFox161/DisCal-Discord-Bot

jo.put("id", e.getId());
jo.put("epochStart", e.getStart().getDateTime().getValue());
jo.put("epochEnd", e.getEnd().getDateTime().getValue());

代码示例来源:origin: NovaFox161/DisCal-Discord-Bot

jo.put("id", e.getId());
jo.put("epochStart", e.getStart().getDateTime().getValue());
jo.put("epochEnd", e.getEnd().getDateTime().getValue());

代码示例来源:origin: NovaFox161/DisCal-Discord-Bot

ed.setImageLink(body.getString("image"));
ed.setEventId(eventId);
ed.setEventEnd(event.getEnd().getDateTime().getValue());

代码示例来源:origin: NovaFox161/DisCal-Discord-Bot

ed.setEventEnd(event.getEnd().getDateTime().getValue());

代码示例来源:origin: NovaFox161/DisCal-Discord-Bot

ed.setEventEnd(event.getEnd().getDateTime().getValue());

代码示例来源:origin: NovaFox161/DisCal-Discord-Bot

ed.setImageLink(body.getString("image"));
ed.setEventId(eventId);
ed.setEventEnd(event.getEnd().getDateTime().getValue());

代码示例来源:origin: NovaFox161/DisCal-Discord-Bot

jo.put("id", e.getId());
jo.put("epochStart", e.getStart().getDateTime().getValue());
jo.put("epochEnd", e.getEnd().getDateTime().getValue());
jo.put("timezone", tz);
jo.put("summary", e.getSummary());

代码示例来源:origin: NovaFox161/DisCal-Discord-Bot

jo.put("id", e.getId());
jo.put("epochStart", e.getStart().getDateTime().getValue());
jo.put("epochEnd", e.getEnd().getDateTime().getValue());
jo.put("timezone", tz);
jo.put("summary", e.getSummary());

代码示例来源:origin: gdenning/exchange-sync

result.setDescription(event.getDescription());
result.setStart(convertToJodaDateTime(event.getStart()));
result.setEnd(convertToJodaDateTime(event.getEnd()));
if (event.getEnd().getDateTime() != null) {
  result.setAllDay(event.getEnd().getDateTime().isDateOnly());

代码示例来源:origin: NovaFox161/DisCal-Discord-Bot

endDateTime = e.getEnd();
    viewableEndDate = new EventDateTime().setDateTime(new DateTime(TimeUtils.applyTimeZoneOffset(e.getEnd().getDateTime().getValue(), cal.getTimeZone())));
  } else {
    viewableEndDate = new EventDateTime().setDate(new DateTime(TimeUtils.applyTimeZoneOffset(e.getEnd().getDate().getValue(), cal.getTimeZone())));
  viewableEndDate = e.getEnd();

相关文章