/[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/13 16:59:40	137
+++ trunk/libxmltv/Interfaces/Interfaces.cs	2013/05/18 02:45:35	256
@@ -31,25 +31,32 @@
         string ToString();
     }
 
-    public interface IProgramDefinitionList : IList<IProgramDefinition>, IDataSourceSortable, IDataSourceFilterable { }
-    public interface IChannelDefintionList : IList<IChannelDefintion>, IDataSourceSortable, IDataSourceFilterable { }
+    public interface IRawDataSource : IRawDataSource<object> { }
+    public interface IRawDataSource<T> {
+         [Browsable(false)]
+        T RawDataSource { get; } }
+    public interface IProgramDefinitionList : IList<IProgramDefinition>, IDataSourceSortable, IDataSourceFilterable { } //, IRawDataSource<IProgramDefinitionList> { }
+    public interface IChannelDefintionList : IList<IChannelDefintion>, IDataSourceSortable, IDataSourceFilterable { }//, IRawDataSource<IChannelDefintionList> { }
 
 
-    public interface IChannelDefintion
+    public interface IChannelDefintion : IEquatable<IChannelDefintion>, IRawDataSource<IXMLTVChannel>
     {
         string ChannelId { get; }
         string ChannelName { get; }
+        string ToString();
     }
-    public interface IProgramDefinition
+    public interface IProgramDefinition : IEquatable<IProgramDefinition>, IRawDataSource<IXMLTVProgram>
     {
         //string ChannelId { get;  }
         int ChannelNumber { get; } // column index: 0
         string ChannelName { get; }// column index: 1
-        DateTime Start { get; }// column index: 2
-        DateTime Stop { get; }// column index: 3
+        string Start { get; }// column index: 2
+        string Stop { get; }// column index: 3
         string Title { get; }// column index: 4
         string SubTitle { get; }// column index: 5
         string Description { get; }// column index: 6
+        string Rating { get; }// column index: 7
+        string ToString();
     }
     public interface IXMLTVChannel
     {
@@ -63,7 +70,7 @@
     public interface IXMLTVProgram 
     {
         IPropertyDictionary MetaData { get; }
-        ExtraList GetExtraMetaData();
+        List<IExtraMetaData> GetExtraMetaData();
     }
 
     public interface IExtraMetaData : IExtraMetaData<string, string> { }

 

  ViewVC Help
Powered by ViewVC 1.1.22