calendarAnoymizer function

Data calendarAnoymizer(
  1. Data data
)

A Calendar anonymizer function. Anonymizes each CalendarEvent entry in the calendar using the calendarEventAnoymizer function.

Implementation

Data calendarAnoymizer(Data data) {
  assert(data is Calendar);
  Calendar calendar = data as Calendar;
  for (var event in calendar.calendarEvents) {
    calendarEventAnoymizer(event);
  }
  return calendar;
}