/[xmltv_parser]/trunk/libxmltv/Interfaces/Interfaces.cs
ViewVC logotype

Diff of /trunk/libxmltv/Interfaces/Interfaces.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/libxmltv/Interfaces/Interfaces.cs	2013/03/07 11:08:48	23
+++ trunk/libxmltv/Interfaces/Interfaces.cs	2013/03/08 02:13:59	36
@@ -4,17 +4,49 @@
 using System.Text;
 using System.IO;
 using System.Xml.Linq;
+using libxmltv.Core;
 
 namespace libxmltv.Interfaces
 {
-    public interface IXMLTV_LOADER
+    public interface IXMLTVLoader
     {
         FileInfo XmlFile { get; }
         XDocument XmlDoc { get; }
     }
-    public interface IXMLTV_PARSER
+    public interface IXMLTVParser
     {
-        IXMLTV_LOADER XMLTV_LOADER { get; }
-        void TestParse();
+        //IXMLTV_LOADER XMLTV_LOADER { get; }
+        //void TestParse();
+        IXMLTVSource Source { get; }
+        Dictionary<string, IXMLTVChannel> Channels { get; }
+        Dictionary<int, IXMLTVProgram> Programs { get; }
     }
-}
+
+    public interface IXMLTVSource
+    {
+        string SourceName { get; }
+        string GeneratorName { get; }
+        string GeneratorUrl { get; }
+        string ToString();
+    }
+    public interface IXMLTVChannel
+    {
+        string Id { get; }
+        int Number { get; }
+        string CallSign { get; }
+        string Name { get; }
+        string ToString();
+    }    
+    public interface IXMLTVProgram
+    {
+        int Id { get; }
+        DateTime Start { get; }
+        DateTime Stop { get; }
+        IXMLTVChannel Channel { get; }
+        string Title { get; }
+        string SubTitle { get; }
+        string Description { get; }
+        string ToString();
+    }
+    public interface IXMLTVRuntimeInstance : IXMLTVLoader, IXMLTVParser { }
+}
\ No newline at end of file

 

  ViewVC Help
Powered by ViewVC 1.1.22