process
Takes specific data from an event (= event row plus data rows, taken from the content provider) and maps it to the Event data class.
If from references the same object as main, this method is called for a main event (not an exception). If from references another object as main, this method is called for an exception (not a main event).
So you can use (note the referential equality operator):
val isMainEvent = from === main // or
val isException = from !== main
In a later step of refactoring, it should map to net.fortuna.ical4j.model.component.VEvent.
Parameters
event from content provider
main event from content provider
destination object where the mapped data are stored (no explicit null
values needed for fields that are not present)
Throws
on missing or invalid required fields (like android.provider.CalendarContract.Events.DTSTART)