C# Class AK.F1.Timing.Service.Utility.IcsConverter

Converts http://www.f1calendar.com/ ICS files to the race XML document schema as expected by the service. This class is .
Show file Open project: simoneb/ak-f1-timing

Public Methods

Method Description
ToXDocument ( string path, int startTimeOffset = -2 ) : System.Xml.Linq.XDocument

Converts the specified http://www.f1calendar.com/ ICS file to a race XML document schema expected by the service.

Private Methods

Method Description
GetRaceId ( IEvent e ) : string
GetRaceName ( IEvent e ) : string
GetSessionId ( IEvent e ) : string
GetSessionName ( IEvent e ) : string
GetSessionType ( IEvent e ) : SessionType

Method Details

ToXDocument() public static method

Converts the specified http://www.f1calendar.com/ ICS file to a race XML document schema expected by the service.
/// Thrown when is . /// /// Thrown when is of zero length. ///
public static ToXDocument ( string path, int startTimeOffset = -2 ) : System.Xml.Linq.XDocument
path string The path of the ICS file.
startTimeOffset int The start time offset (in minutes).
return System.Xml.Linq.XDocument