/[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/09 12:23:27	81
+++ trunk/libxmltv/Interfaces/Interfaces.cs	2013/03/09 13:51:58	86
@@ -36,16 +36,25 @@
         string Name { get; }
         string ToString();
     }
-    public interface IXMLTVProgram
+
+    public interface IPropertyDictionary : IPropertyDictionary<string, object>    {    }
+    public interface IPropertyDictionary<TKey,TValue>
     {
-        int Id { get; }
-        DateTime Start { get; }
-        DateTime Stop { get; }
-        IXMLTVChannel Channel { get; }
-        string Title { get; }
-        string SubTitle { get; }
-        string Description { get; }
-        string ToString();
+        Dictionary<TKey, TValue> Properties { get; }
+        TValue GetProperty(TKey name);
+        void SetProperty(TKey name, TValue value);
+    }
+    public interface IXMLTVProgram : IPropertyDictionary
+    {
+        //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 IXMLTVProgramCollection : IXMLTVDictionaryCollection<string, IXMLTVProgram> { }

 

  ViewVC Help
Powered by ViewVC 1.1.22