Skip to content

Latest commit

 

History

History

ICS-data-convertion

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Scheduler Create appointments from an ICS file

This example shows one way to convert iCalendar appointment to a C# model and pass them to the Scheduler.

Key points of interest (comments in the code also offer some insights):

  1. Setup a Scheduler
  2. Create an appointment model class with the appropriate fields (see here)
  3. Use a service to read the ICS file and convert the data between BEGIN:VEVENT and END:VEVENT to the model
    1. Parse the ICS format strings to extract the data so you can populate it in the appointment model
    2. Convert the dates to a suitable C# format
  4. Pass the data to the Scheduler