C# 클래스 Rozvrh.Exporters.ImportExport

Class exporting to ICal and SVG format via ActionResult File. It also imports and exports lectures using XML serialization.
파일 보기 프로젝트 열기: jandoubek/fjfi-rozvrh 1 사용 예제들

공개 메소드들

메소드 설명
DownloadAsBITMAP ( List lectures, string title, System.DateTime created, string linkToInfo, string path, string format ) : System.Web.Mvc.FileResult

Exports lectures to bitmap format.

DownloadAsICAL ( List lectures, System.DateTime semStart, System.DateTime semEnd ) : System.Web.Mvc.ActionResult

Exports lectures to ICal format.

DownloadAsSVG ( List lectures, string title, System.DateTime created, string linkToInfo ) : System.Web.Mvc.ActionResult

Exports lectures to SVG file.

DownloadAsXML ( List lectures ) : System.Web.Mvc.ActionResult

Serializes lectures to XML file.

ImportExport ( ) : System
ImportXML ( System.Web.HttpPostedFileBase file ) : List

Deserialize XML of lectures.

비공개 메소드들

메소드 설명
convertToExportFormat ( List lectures ) : List

메소드 상세

DownloadAsBITMAP() 공개 메소드

Exports lectures to bitmap format.
public DownloadAsBITMAP ( List lectures, string title, System.DateTime created, string linkToInfo, string path, string format ) : System.Web.Mvc.FileResult
lectures List List of lectures.
title string Title displayed at top-left corner of the image.
created System.DateTime Date the timetable was created from config.
linkToInfo string Hyperlink to webpage with additional information.
path string Path to folder where temp files will be created and where Inkspace folder is.
format string Bitmap format to export ie. png jpg pdf
리턴 System.Web.Mvc.FileResult

DownloadAsICAL() 공개 메소드

Exports lectures to ICal format.
public DownloadAsICAL ( List lectures, System.DateTime semStart, System.DateTime semEnd ) : System.Web.Mvc.ActionResult
lectures List List of lectures.
semStart System.DateTime Beginning of the semester. Only Year, Month and Day are used.
semEnd System.DateTime End of the semester. Only Year, Month and Day are used.
리턴 System.Web.Mvc.ActionResult

DownloadAsSVG() 공개 메소드

Exports lectures to SVG file.
public DownloadAsSVG ( List lectures, string title, System.DateTime created, string linkToInfo ) : System.Web.Mvc.ActionResult
lectures List List of lectures.
title string Title displayed at top-left corner of the SVG.
created System.DateTime Date the timetable was created from config.
linkToInfo string Hyperlink to webpage with additional information.
리턴 System.Web.Mvc.ActionResult

DownloadAsXML() 공개 메소드

Serializes lectures to XML file.
public DownloadAsXML ( List lectures ) : System.Web.Mvc.ActionResult
lectures List List of lectures.
리턴 System.Web.Mvc.ActionResult

ImportExport() 공개 메소드

public ImportExport ( ) : System
리턴 System

ImportXML() 공개 메소드

Deserialize XML of lectures.
The XML cannot be deserialized.
public ImportXML ( System.Web.HttpPostedFileBase file ) : List
file System.Web.HttpPostedFileBase File posted by HTTP POST.
리턴 List