AttendeeMappings

Defines mappings between Android Attendees and iCalendar parameters.

Because the available Android values are quite different from the one in iCalendar, the mapping is very lossy. Some special mapping rules are defined:

  • ROLE=CHAIR ⇄ ATTENDEE_TYPE=TYPE_SPEAKER

  • CUTYPE=GROUP ⇄ ATTENDEE_TYPE=TYPE_PERFORMER

  • CUTYPE=ROOM ⇄ ATTENDEE_TYPE=TYPE_RESOURCE, ATTENDEE_RELATIONSHIP=RELATIONSHIP_PERFORMER

Functions

Link copied to clipboard
fun androidToICalendar(row: ContentValues, attendee: Attendee)

Maps Android Attendees.ATTENDEE_TYPE and Attendees.ATTENDEE_RELATIONSHIP to iCalendar CuType and Role according to this matrix:

Link copied to clipboard
fun iCalendarToAndroid(attendee: Attendee, row: BatchOperation.CpoBuilder, organizer: String)

Maps iCalendar CuType and Role to Android CalendarContract.AttendeesColumns.ATTENDEE_TYPE and CalendarContract.AttendeesColumns.ATTENDEE_RELATIONSHIP according to this matrix: