EventWriter

class EventWriter(prodId: ProdId)

Writes an Event data class to a stream that contains an iCalendar (VCALENDAR with VEVENTs and optional VTIMEZONEs).

Parameters

prodId

PRODID to use in iCalendar

Constructors

Link copied to clipboard
constructor(prodId: ProdId)

Functions

Link copied to clipboard
fun write(event: Event, to: Writer)

Applies error correction over EventValidator to an Event and generates an iCalendar from it.