getInt(data.get(1)), getInt(data.get(2)),
getInt(data.get(3)), getInt(data.get(4)));
}
public static CalendarsEvent getUpdateEvent(AuRequest request) {
final JSONArray data = (JSONArray) request.getData().get("data");
final Calendars cmp = verifyEvent(request, data, 7);
CalendarEvent ce = cmp.getCalendarEventById(String.valueOf(data.get(0)));
if (ce == null) return null;
TimeZone tz = cmp.getDefaultTimeZone();
Date eventBegin = Util.fixDSTTime(tz, new Date(getLong(data.get(1))));
Date eventEnd = Util.fixDSTTime(tz, new Date(getLong(data.get(2))));
return new CalendarsEvent(ON_EVENT_UPDATE, cmp, ce,
eventBegin, eventEnd,
getInt(data.get(3)), getInt(data.get(4)),
getInt(data.get(5)),getInt(data.get(6)));
}