1.0
This commit is contained in:
Binary file not shown.
@@ -97,10 +97,6 @@ public class CalendarQuickstart {
|
|||||||
System.out.println("ID " + entry.getId() + ", Description " + entry.getDescription() + ", Summary: " + entry.getSummary());
|
System.out.println("ID " + entry.getId() + ", Description " + entry.getDescription() + ", Summary: " + entry.getSummary());
|
||||||
}
|
}
|
||||||
|
|
||||||
// List the next 10 events from the primary calendar.
|
|
||||||
DateTime now = new DateTime(System.currentTimeMillis());
|
|
||||||
|
|
||||||
// System.exit(0);
|
|
||||||
|
|
||||||
System.out.println("\nEvents:");
|
System.out.println("\nEvents:");
|
||||||
int ct = 0;
|
int ct = 0;
|
||||||
@@ -177,13 +173,18 @@ public class CalendarQuickstart {
|
|||||||
|
|
||||||
ct++;
|
ct++;
|
||||||
|
|
||||||
|
// XXX Restart from number
|
||||||
|
// if (ct < 1300)
|
||||||
|
// continue;
|
||||||
|
|
||||||
|
// XXX This event is not updatable for some reason
|
||||||
|
if (event.getId().equals("6cqj2d3265h34bb574qj4b9kcgr36bb2ckrjebb160rj4e3465imcdr26g"))
|
||||||
|
continue;
|
||||||
|
|
||||||
if (event.getColorId() != null) {
|
if (event.getColorId() != null) {
|
||||||
|
|
||||||
colCt++;
|
colCt++;
|
||||||
|
|
||||||
// if (!event.getSummary().equals("T Freier Abend"))
|
|
||||||
// continue;
|
|
||||||
|
|
||||||
String startStr = null;
|
String startStr = null;
|
||||||
if (event.getStart() != null && event.getStart().getDateTime() != null)
|
if (event.getStart() != null && event.getStart().getDateTime() != null)
|
||||||
startStr = event.getStart().getDateTime().toString();
|
startStr = event.getStart().getDateTime().toString();
|
||||||
@@ -211,18 +212,6 @@ public class CalendarQuickstart {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// try {
|
|
||||||
// Event eventCopy = service.events().insert(trgId, event).execute();
|
|
||||||
// System.out.println("Copy: " + "ID: " + eventCopy.getId()
|
|
||||||
// + ", Created: " + eventCopy.getCreated()
|
|
||||||
// + ", Updated: " + eventCopy.getUpdated()
|
|
||||||
// + ", "+ eventCopy.getSummary());
|
|
||||||
// }
|
|
||||||
// catch (Exception e) {
|
|
||||||
// System.out.println((++ex) + " Exception while copying " + event.getId() + ", " + e.getMessage());
|
|
||||||
// }
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user