ese-unibe-ch/ese2011-team2 — Issue #34: multi day event
Author: retobg
Created: 2011-11-04 12:29:18+00:00
State: open

The current EseCalendar API doesn't allow to browse all events that intersect a day (at least according to the api doc).

getEventsAt is defined to return all events starting within the specified day.

To get all events intersecting a specific day I see two possibilities:

- Iterate back a defined number of days and check the events starting on these days last till after the beginning of the evaluated day -> this approach is easy to implement but requires a arbitrary limitation of the length of the even (longer events wont show up after the maxLength period)

- Introduce a class EventDay, every event is associated to 1 or more EventDayS which have a reference to the event they belong to. Instead of having a SortedSet of Events we would have one of EventDays, similarly an Event Series computes the repetion of its EventDays

Certainly the first approach is easier to implement, if we can live with its limitation