C# Class Emby.XmlTv.Classes.XmlTvReader

Mostrar archivo Open project: MediaBrowser/Emby.XmlTv Class Usage Examples

Public Properties

Property Type Description
_regDateWithOffset System.Text.RegularExpressions.Regex

Public Methods

Method Description
GetChannels ( ) : IEnumerable

Gets the list of channels present in the XML

GetLanguages ( CancellationToken cancellationToken ) : List

Gets the list of supported languages in the XML

GetProgramme ( XmlReader reader, string channelNumber, System.DateTime startDateUtc, System.DateTime endDateUtc ) : XmlTvProgram
GetProgrammes ( string channelNumber, System.DateTime startDateUtc, System.DateTime endDateUtc, CancellationToken cancellationToken ) : IEnumerable

Gets the programmes for a specified channel

ParseDate ( string dateValue ) : DateTime?
ParseEpisodeDataForOnScreen ( XmlReader reader, XmlTvProgram result ) : void
ParseEpisodeDataForXmlTvNs ( XmlReader reader, XmlTvProgram result ) : void
ProcessCategory ( XmlReader reader, XmlTvProgram result ) : void
ProcessCountry ( XmlReader reader, XmlTvProgram result ) : void
ProcessCredits ( XmlReader xmlProg, XmlTvProgram result ) : void
ProcessDescription ( XmlReader reader, XmlTvProgram result ) : void
ProcessEpisodeNum ( XmlReader reader, XmlTvProgram result ) : void
ProcessIconNode ( XmlReader reader ) : XmlTvIcon
ProcessMultipleNodes ( XmlReader reader, Action setter, string languageRequired = null ) : void
ProcessMultipleNodesWithLanguage ( XmlReader reader, Action setter ) : void
ProcessNode ( XmlReader reader, Action setter, string languageRequired = null ) : void
ProcessPremiereNode ( XmlReader reader, XmlTvProgram result ) : void
ProcessPreviouslyShown ( XmlReader reader, XmlTvProgram result ) : void
ProcessRating ( XmlReader reader, XmlTvProgram result ) : void
ProcessStarRating ( XmlReader reader, XmlTvProgram result ) : void
ProcessSubTitle ( XmlReader reader, XmlTvProgram result ) : void
ProcessTitleNode ( XmlReader reader, XmlTvProgram result ) : void
StandardiseDate ( string value ) : string
XmlTvReader ( string fileName, string language = null ) : System

Initializes a new instance of the XmlTvReader class.

Private Methods

Method Description
CreateXmlTextReader ( string path ) : XmlReader
GetChannel ( XmlReader reader ) : XmlTvChannel
LogChannelProgress ( XmlReader reader, XmlTvChannel channel ) : void
PopulateHeader ( XmlReader reader, XmlTvProgram result ) : void
ProcessCopyrightDate ( XmlReader xmlProg, XmlTvProgram result ) : void

Method Details

GetChannels() public method

Gets the list of channels present in the XML
public GetChannels ( ) : IEnumerable
return IEnumerable

GetLanguages() public method

Gets the list of supported languages in the XML
public GetLanguages ( CancellationToken cancellationToken ) : List
cancellationToken System.Threading.CancellationToken
return List

GetProgramme() public method

public GetProgramme ( XmlReader reader, string channelNumber, System.DateTime startDateUtc, System.DateTime endDateUtc ) : XmlTvProgram
reader System.Xml.XmlReader
channelNumber string
startDateUtc System.DateTime
endDateUtc System.DateTime
return XmlTvProgram

GetProgrammes() public method

Gets the programmes for a specified channel
public GetProgrammes ( string channelNumber, System.DateTime startDateUtc, System.DateTime endDateUtc, CancellationToken cancellationToken ) : IEnumerable
channelNumber string The channel number.
startDateUtc System.DateTime The UTC start date.
endDateUtc System.DateTime The UTC end date.
cancellationToken System.Threading.CancellationToken A cancellation token.
return IEnumerable

ParseDate() public method

public ParseDate ( string dateValue ) : DateTime?
dateValue string
return DateTime?

ParseEpisodeDataForOnScreen() public method

public ParseEpisodeDataForOnScreen ( XmlReader reader, XmlTvProgram result ) : void
reader System.Xml.XmlReader
result XmlTvProgram
return void

ParseEpisodeDataForXmlTvNs() public method

public ParseEpisodeDataForXmlTvNs ( XmlReader reader, XmlTvProgram result ) : void
reader System.Xml.XmlReader
result XmlTvProgram
return void

ProcessCategory() public method

public ProcessCategory ( XmlReader reader, XmlTvProgram result ) : void
reader System.Xml.XmlReader
result XmlTvProgram
return void

ProcessCountry() public method

public ProcessCountry ( XmlReader reader, XmlTvProgram result ) : void
reader System.Xml.XmlReader
result XmlTvProgram
return void

ProcessCredits() public method

public ProcessCredits ( XmlReader xmlProg, XmlTvProgram result ) : void
xmlProg System.Xml.XmlReader
result XmlTvProgram
return void

ProcessDescription() public method

public ProcessDescription ( XmlReader reader, XmlTvProgram result ) : void
reader System.Xml.XmlReader
result XmlTvProgram
return void

ProcessEpisodeNum() public method

public ProcessEpisodeNum ( XmlReader reader, XmlTvProgram result ) : void
reader System.Xml.XmlReader
result XmlTvProgram
return void

ProcessIconNode() public method

public ProcessIconNode ( XmlReader reader ) : XmlTvIcon
reader System.Xml.XmlReader
return Emby.XmlTv.Entities.XmlTvIcon

ProcessMultipleNodes() public method

public ProcessMultipleNodes ( XmlReader reader, Action setter, string languageRequired = null ) : void
reader System.Xml.XmlReader
setter Action
languageRequired string
return void

ProcessMultipleNodesWithLanguage() public method

public ProcessMultipleNodesWithLanguage ( XmlReader reader, Action setter ) : void
reader System.Xml.XmlReader
setter Action
return void

ProcessNode() public method

public ProcessNode ( XmlReader reader, Action setter, string languageRequired = null ) : void
reader System.Xml.XmlReader
setter Action
languageRequired string
return void

ProcessPremiereNode() public method

public ProcessPremiereNode ( XmlReader reader, XmlTvProgram result ) : void
reader System.Xml.XmlReader
result XmlTvProgram
return void

ProcessPreviouslyShown() public method

public ProcessPreviouslyShown ( XmlReader reader, XmlTvProgram result ) : void
reader System.Xml.XmlReader
result XmlTvProgram
return void

ProcessRating() public method

public ProcessRating ( XmlReader reader, XmlTvProgram result ) : void
reader System.Xml.XmlReader
result XmlTvProgram
return void

ProcessStarRating() public method

public ProcessStarRating ( XmlReader reader, XmlTvProgram result ) : void
reader System.Xml.XmlReader
result XmlTvProgram
return void

ProcessSubTitle() public method

public ProcessSubTitle ( XmlReader reader, XmlTvProgram result ) : void
reader System.Xml.XmlReader
result XmlTvProgram
return void

ProcessTitleNode() public method

public ProcessTitleNode ( XmlReader reader, XmlTvProgram result ) : void
reader System.Xml.XmlReader
result XmlTvProgram
return void

StandardiseDate() public method

public StandardiseDate ( string value ) : string
value string
return string

XmlTvReader() public method

Initializes a new instance of the XmlTvReader class.
public XmlTvReader ( string fileName, string language = null ) : System
fileName string Name of the file.
language string The specific language to return.
return System

Property Details

_regDateWithOffset public_oe static_oe property

public static Regex,System.Text.RegularExpressions _regDateWithOffset
return System.Text.RegularExpressions.Regex